patch-1.3.37 linux/include/asm-alpha/ioctl.h
Next file: linux/include/asm-alpha/lca.h
Previous file: linux/include/asm-alpha/io.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Sat Oct 28 15:19:02 1995
- Orig file:
v1.3.36/linux/include/asm-alpha/ioctl.h
- Orig date:
Fri Jun 2 13:51:16 1995
diff -u --recursive --new-file v1.3.36/linux/include/asm-alpha/ioctl.h linux/include/asm-alpha/ioctl.h
@@ -54,4 +54,12 @@
#define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
#define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK)
+/* ...and for the drivers/sound files... */
+
+#define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT)
+#define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT)
+#define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT)
+#define IOCSIZE_MASK (_IOC_SIZEMASK << _IOC_SIZESHIFT)
+#define IOCSIZE_SHIFT (_IOC_SIZESHIFT)
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this