Where are specified custom system modes?

Hello,

I’m analyzing traffic between drones and central station and I wonder where are specified custom system modes called by MAV_CMD_DO_SET_MODE… Can anybody give me a hint, in which file are they specified?