Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60e77a6a authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta
Browse files

esoc: Move the esoc client hooks' definitions from uapi header



The definitions under 'enum esoc_client_hook_prio' and 'struct
esoc_link_data' are used only by kernel drivers, and not needed
by user-space. Hence, move the definitions from uapi header file
(uapi/linux/esoc_ctrl.h) to kernel internal header file
(linux/esoc_client.h).

Change-Id: I74b4f470ff61518fa2df2e872595b5e8e6e4c307
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent 0abb3e81
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -16,6 +16,17 @@
#include <linux/esoc_ctrl.h>
#include <linux/notifier.h>

enum esoc_client_hook_prio {
	ESOC_MHI_HOOK,
	ESOC_CNSS_HOOK,
	ESOC_MAX_HOOKS
};

struct esoc_link_data {
	enum esoc_client_hook_prio prio;
	__u64 link_id;
};

/* Flag values used with the power_on and power_off hooks */
#define ESOC_HOOK_MDM_CRASH	0x0001 /* In crash handling path */
#define ESOC_HOOK_MDM_DOWN	0x0002 /* MDM about to go down */
+2 −11
Original line number Diff line number Diff line
@@ -3,16 +3,6 @@

#include <linux/types.h>

enum esoc_client_hook_prio {
	ESOC_MHI_HOOK,
	ESOC_MAX_HOOKS
};

struct esoc_link_data {
	enum esoc_client_hook_prio prio;
	__u64 link_id;
};

#define ESOC_CODE		0xCC

#define ESOC_CMD_EXE		_IOW(ESOC_CODE, 1, unsigned int)
@@ -23,11 +13,12 @@ struct esoc_link_data {
#define ESOC_WAIT_FOR_CRASH	_IOR(ESOC_CODE, 6, unsigned int)
#define ESOC_REG_REQ_ENG	_IO(ESOC_CODE, 7)
#define ESOC_REG_CMD_ENG	_IO(ESOC_CODE, 8)
#define ESOC_GET_LINK_ID	_IOWR(ESOC_CODE, 9, struct esoc_link_data)
#define ESOC_GET_LINK_ID	_IOWR(ESOC_CODE, 9, __u64)

#define ESOC_REQ_SEND_SHUTDOWN	ESOC_REQ_SEND_SHUTDOWN
#define ESOC_REQ_CRASH_SHUTDOWN ESOC_REQ_CRASH_SHUTDOWN
#define ESOC_PON_RETRY		ESOC_PON_RETRY
#define ESOC_LINK_ID

enum esoc_evt {
	ESOC_RUN_STATE = 0x1,