Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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) |
Joel King | e92eb87 | 2012-05-06 09:30:24 -0700 | [diff] [blame] | 13 | #define GET_DLOAD_STATUS _IOR(CHARM_CODE, 8, int) |
Ameya Thakur | 43248fd | 2012-07-10 18:50:52 -0700 | [diff] [blame] | 14 | #define IMAGE_UPGRADE _IOW(CHARM_CODE, 9, int) |
Joel King | bf3e4b5 | 2012-09-26 09:10:34 -0700 | [diff] [blame^] | 15 | #define SHUTDOWN_CHARM _IOW(CHARM_CODE, 10, int) |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 16 | |
| 17 | enum charm_boot_type { |
| 18 | CHARM_NORMAL_BOOT = 0, |
| 19 | CHARM_RAM_DUMPS, |
| 20 | }; |
| 21 | |
Ameya Thakur | 43248fd | 2012-07-10 18:50:52 -0700 | [diff] [blame] | 22 | enum image_upgrade_type { |
| 23 | APQ_CONTROLLED_UPGRADE = 0, |
| 24 | MDM_CONTROLLED_UPGRADE, |
| 25 | }; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 26 | #endif |