blob: 1d1f3bb3dd4addf3ca858a6343a836440b703535 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001#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 Kinge92eb872012-05-06 09:30:24 -070013#define GET_DLOAD_STATUS _IOR(CHARM_CODE, 8, int)
Ameya Thakur43248fd2012-07-10 18:50:52 -070014#define IMAGE_UPGRADE _IOW(CHARM_CODE, 9, int)
Joel Kingbf3e4b52012-09-26 09:10:34 -070015#define SHUTDOWN_CHARM _IOW(CHARM_CODE, 10, int)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070016
17enum charm_boot_type {
18 CHARM_NORMAL_BOOT = 0,
19 CHARM_RAM_DUMPS,
20};
21
Ameya Thakur43248fd2012-07-10 18:50:52 -070022enum image_upgrade_type {
23 APQ_CONTROLLED_UPGRADE = 0,
24 MDM_CONTROLLED_UPGRADE,
25};
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070026#endif