diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-02-26 19:30:16 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-02-26 19:30:16 +0100 |
commit | eb927f93563a69c834a09d92ca7c4ffc15027496 (patch) | |
tree | 99c6049b8628b997acb204822f30f17e4cc3abba /include | |
parent | db9cb928daf02a4caf99f6c732221eb9e2d78243 (diff) | |
download | external_libsamsung-ipc-eb927f93563a69c834a09d92ca7c4ffc15027496.zip external_libsamsung-ipc-eb927f93563a69c834a09d92ca7c4ffc15027496.tar.gz external_libsamsung-ipc-eb927f93563a69c834a09d92ca7c4ffc15027496.tar.bz2 |
pwr: Proper request/response values and structures
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include')
-rw-r--r-- | include/pwr.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/pwr.h b/include/pwr.h index 2b7f278..02db260 100644 --- a/include/pwr.h +++ b/include/pwr.h @@ -40,8 +40,23 @@ * Values */ -#define IPC_PWR_PHONE_STATE_LPM 0x0001 -#define IPC_PWR_PHONE_STATE_NORMAL 0x0202 +#define IPC_PWR_PHONE_STATE_REQUEST_LPM 0x0001 +#define IPC_PWR_PHONE_STATE_REQUEST_NORMAL 0x0202 + +#define IPC_PWR_PHONE_STATE_RESPONSE_LPM 0x01 +#define IPC_PWR_PHONE_STATE_RESPONSE_NORMAL 0x02 + +/* + * Structures + */ + +struct ipc_pwr_phone_state_request_data { + unsigned short state; // IPC_PWR_PHONE_REQUEST_STATE +} __attribute__((__packed__)); + +struct ipc_pwr_phone_state_response_data { + unsigned char state; // IPC_PWR_PHONE_RESPONSE_STATE +} __attribute__((__packed__)); #endif |