dm: misc: add ioctl request command definition

Available for caller to call misc_ioctl(...).

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ibac22caf80968ecc7f952d04aa2a1a0f8ad3417a
This commit is contained in:
Joseph Chen 2019-12-25 10:51:18 +08:00
parent 57be1825cb
commit dbfe5ed512
1 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,15 @@
#ifndef _MISC_H_
#define _MISC_H_
#include <asm-generic/ioctl.h>
/*
* 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.
*