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:
Vladimir Kondratyev 2021-09-29 23:12:47 +03:00
parent 66ea390652
commit b58c916f11

View File

@ -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_ */