LinuxKPI: implement _IOC_TYPE and _IOC_NR macros in linux/ioctl.h
They are used by drm-kmod Reviewed by: emaste, hselasky, manu MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D31674
This commit is contained in:
parent
66ea390652
commit
b58c916f11
@ -33,6 +33,8 @@
|
||||
|
||||
#include <sys/ioccom.h>
|
||||
|
||||
#define _IOC_SIZE(cmd) IOCPARM_LEN(cmd)
|
||||
#define _IOC_SIZE(cmd) IOCPARM_LEN(cmd)
|
||||
#define _IOC_TYPE(cmd) IOCGROUP(cmd)
|
||||
#define _IOC_NR(cmd) ((cmd) & 0xff)
|
||||
|
||||
#endif /* _LINUX_IOCTL_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user