From 9d1137d9197552439af937fee4b9ec5368f562bf Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Tue, 25 Jun 2013 16:22:19 +0200 Subject: 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 --- include/pwr.h | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'include/pwr.h') 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 + * Copyright (C) 2011 Simon Busch * Copyright (C) 2010-2011 Joerie de Gram - * 2011 Simon Busch * * 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 -#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 -- cgit v1.1