From dbfe5ed512963ad172d4b79e7369f60f69877ff4 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Wed, 25 Dec 2019 10:51:18 +0800 Subject: [PATCH] dm: misc: add ioctl request command definition Available for caller to call misc_ioctl(...). Signed-off-by: Joseph Chen Signed-off-by: Jason Zhu Change-Id: Ibac22caf80968ecc7f952d04aa2a1a0f8ad3417a --- include/misc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/misc.h b/include/misc.h index 03ef55cdc8..3b25b95378 100644 --- a/include/misc.h +++ b/include/misc.h @@ -7,6 +7,15 @@ #ifndef _MISC_H_ #define _MISC_H_ +#include + +/* + * Request command to be sent for misc_ioctl(). + */ +#define IOCTL_REQ_START _IO('m', 0x01) +#define IOCTL_REQ_STOP _IO('m', 0x02) +#define IOCTL_REQ_POLL _IO('m', 0x03) + /* * Read the device to buffer, optional. *