Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / sh / include / mach-landisk / mach / gio.h
blobb954de617b497085e552d797d78640ea60225580
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SH_LANDISK_GIO_H
3 #define __ASM_SH_LANDISK_GIO_H
5 #include <linux/ioctl.h>
7 /* version */
8 #define VERSION_STR "1.00"
10 /* Driver name */
11 #define GIO_DRIVER_NAME "/dev/giodrv"
13 /* Use 'k' as magic number */
14 #define GIODRV_IOC_MAGIC 'k'
16 #define GIODRV_IOCRESET _IO(GIODRV_IOC_MAGIC, 0)
18 * S means "Set" through a ptr,
19 * T means "Tell" directly
20 * G means "Get" (to a pointed var)
21 * Q means "Query", response is on the return value
22 * X means "eXchange": G and S atomically
23 * H means "sHift": T and Q atomically
25 #define GIODRV_IOCSGIODATA1 _IOW(GIODRV_IOC_MAGIC, 1, unsigned char *)
26 #define GIODRV_IOCGGIODATA1 _IOR(GIODRV_IOC_MAGIC, 2, unsigned char *)
27 #define GIODRV_IOCSGIODATA2 _IOW(GIODRV_IOC_MAGIC, 3, unsigned short *)
28 #define GIODRV_IOCGGIODATA2 _IOR(GIODRV_IOC_MAGIC, 4, unsigned short *)
29 #define GIODRV_IOCSGIODATA4 _IOW(GIODRV_IOC_MAGIC, 5, unsigned long *)
30 #define GIODRV_IOCGGIODATA4 _IOR(GIODRV_IOC_MAGIC, 6, unsigned long *)
31 #define GIODRV_IOCSGIOSETADDR _IOW(GIODRV_IOC_MAGIC, 7, unsigned long *)
32 #define GIODRV_IOCHARDRESET _IO(GIODRV_IOC_MAGIC, 8) /* debugging tool */
33 #define GIODRV_IOC_MAXNR 8
35 #define GIO_READ 0x00000000
36 #define GIO_WRITE 0x00000001
38 #endif /* __ASM_SH_LANDISK_GIO_H */