pwr: Proper request/response values and structures
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 26 Feb 2014 18:30:16 +0000 (19:30 +0100)
committerPaul Kocialkowski <contact@paulk.fr>
Wed, 26 Feb 2014 18:30:16 +0000 (19:30 +0100)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
include/pwr.h

index 2b7f278..02db260 100644 (file)
  * 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