aboutsummaryrefslogtreecommitdiffstats
path: root/include/pwr.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-06-25 16:22:19 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-06-25 16:22:19 +0200
commit9d1137d9197552439af937fee4b9ec5368f562bf (patch)
treeea7fc5e6a73761d414daa9f09eadf05a5937bb89 /include/pwr.h
parente207275718352c781c5ddcfdd1015fde36259e9b (diff)
downloadexternal_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.zip
external_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.tar.gz
external_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.tar.bz2
Drop support for the (incomplete) old protocol implementation used on H1.
Also refactor headers: values aligned to 16x4 spaces and other cosmetics Change-Id: I5a6f2c2471599c88c4be74591117d0ab2dfaaddf Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/pwr.h')
-rw-r--r--include/pwr.h43
1 files changed, 29 insertions, 14 deletions
diff --git a/include/pwr.h b/include/pwr.h
index 4fdbdd4..1256bfe 100644
--- a/include/pwr.h
+++ b/include/pwr.h
@@ -1,8 +1,9 @@
-/**
+/*
* This file is part of libsamsung-ipc.
*
+ * Copyright (C) 2013 Paul Kocialkowski <contact@paulk.fr>
+ * Copyright (C) 2011 Simon Busch <morphis@gravedo.de>
* Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
- * 2011 Simon Busch <morphis@gravedo.de>
*
* libsamsung-ipc is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,21 +20,35 @@
*
*/
-#ifndef __PWR_H__
-#define __PWR_H__
+#include <samsung-ipc.h>
-#define IPC_PWR_R(f) (f & 0xff)
+#ifndef __SAMSUNG_IPC_PWR_H__
+#define __SAMSUNG_IPC_PWR_H__
+
+/*
+ * Types
+ */
-#define IPC_PWR_PHONE_PWR_UP 0x0101
-#define IPC_PWR_PHONE_PWR_OFF 0x0102
-#define IPC_PWR_PHONE_RESET 0x0103
-#define IPC_PWR_BATT_STATUS 0x0104
-#define IPC_PWR_BATT_TYPE 0x0105
-#define IPC_PWR_BATT_COMP 0x0106
-#define IPC_PWR_PHONE_STATE 0x0107
+#define IPC_PWR_PHONE_PWR_UP 0x0101
+#define IPC_PWR_PHONE_PWR_OFF 0x0102
+#define IPC_PWR_PHONE_RESET 0x0103
+#define IPC_PWR_BATT_STATUS 0x0104
+#define IPC_PWR_BATT_TYPE 0x0105
+#define IPC_PWR_BATT_COMP 0x0106
+#define IPC_PWR_PHONE_STATE 0x0107
+
+/*
+ * Values
+ */
-#define IPC_PWR_PHONE_STATE_LPM 0x0001
-#define IPC_PWR_PHONE_STATE_NORMAL 0x0202
+#define IPC_PWR_PHONE_STATE_LPM 0x0001
+#define IPC_PWR_PHONE_STATE_NORMAL 0x0202
+
+/*
+ * Macros
+ */
+
+#define IPC_PWR_R(f) (f & 0xff)
#endif