Home | History | Annotate | Download | only in linux
      1 #ifndef _ARCH_ARM_MACH_MSM_MDM_IOCTLS_H
      2 #define _ARXH_ARM_MACH_MSM_MDM_IOCTLS_H
      3 
      4 
      5 #define CHARM_CODE		0xCC
      6 #define WAKE_CHARM		_IO(CHARM_CODE, 1)
      7 #define RESET_CHARM		_IO(CHARM_CODE, 2)
      8 #define CHECK_FOR_BOOT		_IOR(CHARM_CODE, 3, int)
      9 #define WAIT_FOR_BOOT		_IO(CHARM_CODE, 4)
     10 #define NORMAL_BOOT_DONE	_IOW(CHARM_CODE, 5, int)
     11 #define RAM_DUMP_DONE		_IOW(CHARM_CODE, 6, int)
     12 #define WAIT_FOR_RESTART	_IOR(CHARM_CODE, 7, int)
     13 #define GET_DLOAD_STATUS	_IOR(CHARM_CODE, 8, int)
     14 #define IMAGE_UPGRADE		_IOW(CHARM_CODE, 9, int)
     15 #define SHUTDOWN_CHARM		_IOW(CHARM_CODE, 10, int)
     16 
     17 enum charm_boot_type {
     18 	CHARM_NORMAL_BOOT = 0,
     19 	CHARM_RAM_DUMPS,
     20 };
     21 
     22 enum image_upgrade_type {
     23 	APQ_CONTROLLED_UPGRADE = 0,
     24 	MDM_CONTROLLED_UPGRADE,
     25 };
     26 #endif
     27