TM stands for Trademark symbol, SM stands for unregistered service mark where R, normally written within a circle, stands for registered trademark. Depending on if your trademark is registered or not, you can choose the concerned symbols.