_IO
ioctl(0, _IO('S', VGLOldMode), 0);
#define SESIOC_GETNOBJ _IO(SESIOC, 1)
#define SESIOC_GETOBJMAP _IO(SESIOC, 2)
#define SESIOC_GETENCSTAT _IO(SESIOC, 3)
#define SESIOC_SETENCSTAT _IO(SESIOC, 4)
#define SESIOC_GETOBJSTAT _IO(SESIOC, 5)
#define SESIOC_SETOBJSTAT _IO(SESIOC, 6)
#define SESIOC_GETTEXT _IO(SESIOC, 7)
#define SESIOC_INIT _IO(SESIOC, 8)
#define SG_SET_TIMEOUT _IO(SGIOC, 0x01)
#define SG_GET_TIMEOUT _IO(SGIOC, 0x02)
#define SG_EMULATED_HOST _IO(SGIOC, 0x03)
#define SG_SET_TRANSFORM _IO(SGIOC, 0x04)
#define SG_GET_TRANSFORM _IO(SGIOC, 0x05)
#define SG_GET_COMMAND_Q _IO(SGIOC, 0x70)
#define SG_SET_COMMAND_Q _IO(SGIOC, 0x71)
#define SG_GET_RESERVED_SIZE _IO(SGIOC, 0x72)
#define SG_SET_RESERVED_SIZE _IO(SGIOC, 0x75)
#define SG_GET_SCSI_ID _IO(SGIOC, 0x76)
#define SG_SET_FORCE_LOW_DMA _IO(SGIOC, 0x79)
#define SG_GET_LOW_DMA _IO(SGIOC, 0x7a)
#define SG_SET_FORCE_PACK_ID _IO(SGIOC, 0x7b)
#define SG_GET_PACK_ID _IO(SGIOC, 0x7c)
#define SG_GET_NUM_WAITING _IO(SGIOC, 0x7d)
#define SG_SET_DEBUG _IO(SGIOC, 0x7e)
#define SG_GET_SG_TABLESIZE _IO(SGIOC, 0x7f)
#define SG_GET_VERSION_NUM _IO(SGIOC, 0x82)
#define SG_NEXT_CMD_LEN _IO(SGIOC, 0x83)
#define SG_SCSI_RESET _IO(SGIOC, 0x84)
#define SG_IO _IO(SGIOC, 0x85)
#define SG_GET_REQUEST_TABLE _IO(SGIOC, 0x86)
#define SG_SET_KEEP_ORPHAN _IO(SGIOC, 0x87)
#define SG_GET_KEEP_ORPHAN _IO(SGIOC, 0x88)
#define SG_GET_ACCESS_COUNT _IO(SGIOC, 0x89)
#define TARGIOCDISABLE _IO('C', 6)
#define I2CSTOP _IO('i', 2) /* stop condition */
#define USB_DISCOVER _IO ('U', 3)
#define ISCSIPING _IO('i', 20)
#define ISCSISTART _IO('i', 30)
#define ISCSIRESTART _IO('i', 31)
#define ISCSISTOP _IO('i', 32)
#define ISP_CLR_STATS _IO(ISP_IOC, 7)
#define ISP_FC_LIP _IO(ISP_IOC, 8)
#define ISP_GET_FW_CRASH_DUMP _IO(ISP_IOC, 10)
#define ISP_FORCE_CRASH_DUMP _IO(ISP_IOC, 11)
#define ISP_FC_GETDLIST _IO(ISP_IOC, 14)
#define ISP_RESETHBA _IO(ISP_IOC, 2)
#define ISP_RESCAN _IO(ISP_IOC, 3)
#define DRM_IO(nr) _IO(DRM_IOCTL_BASE,nr)
#define I915_PERF_IOCTL_ENABLE _IO('i', 0x0)
#define I915_PERF_IOCTL_DISABLE _IO('i', 0x1)
case _IO('K', 7):
case _IO('K', 66):
case _IO('K', 20):
case _IO('K', 67):
#define FSACTL_SENDFIB _IO('8', 2)
#define FSACTL_SEND_RAW_SRB _IO('8', 19)
#define FSACTL_GET_COMM_PERF_DATA _IO('8', 36)
#define FSACTL_OPENCLS_COMM_PERF_DATA _IO('8', 37)
#define FSACTL_OPEN_GET_ADAPTER_FIB _IO('8', 52)
#define FSACTL_GET_NEXT_ADAPTER_FIB _IO('8', 53)
#define FSACTL_CLOSE_GET_ADAPTER_FIB _IO('8', 54)
#define FSACTL_CLOSE_ADAPTER_CONFIG _IO('8', 56)
#define FSACTL_OPEN_ADAPTER_CONFIG _IO('8', 57)
#define FSACTL_MINIPORT_REV_CHECK _IO('8', 59)
#define FSACTL_QUERY_ADAPTER_CONFIG _IO('8', 65)
#define FSACTL_GET_PCI_INFO _IO('8', 71)
#define FSACTL_FORCE_DELETE_DISK _IO('8', 72)
#define FSACTL_AIF_THREAD _IO('8', 79)
#define FSACTL_SEND_LARGE_FIB _IO('8', 90)
#define FSACTL_GET_FEATURES _IO('8', 91)
#define FSACTL_NULL_IO_TEST _IO('8', 67)
#define FSACTL_SIM_IO_TEST _IO('8', 83)
#define FSACTL_DOWNLOAD _IO('8', 131)
#define FSACTL_GET_VAR _IO('8', 147)
#define FSACTL_SET_VAR _IO('8', 163)
#define FSACTL_GET_FIBTIMES _IO('8', 179)
#define FSACTL_ZERO_FIBTIMES _IO('8', 195)
#define FSACTL_DELETE_DISK _IO('8', 99)
#define FSACTL_QUERY_DISK _IO('9', 115)
#define FSACTL_PROBE_CONTAINERS _IO('9', 83) /* Just guessing */
#ifndef _IO
#define DPT_STATS_CLEAR _IO('D',81)
#define I2OUSRCMD _IO('D',76)
#define I2ORESCANCMD _IO('D',77)
#define I2ORESETCMD _IO('D',78)
#ifndef _IO
#define DPT_STATINFO _IO('D',70)
#define DPT_CLRSTAT _IO('D',71)
#define DPT_TIMEOUT _IO('D',73)
#define DPT_CONFIG _IO('D',74)
#define DPT_STATS_CLEAR _IO('D',81)
#define I2OUSRCMD _IO('D',76)
#define I2ORESCANCMD _IO('D',77)
#define I2ORESETCMD _IO('D',78)
#define CCISS_REVALIDVOLS _IO ('C', 209)
#define HPT_SCAN_BUS _IO('H', 1)
#define HPT_SCAN_BUS _IO('H', 1)
#define HPT_SCAN_BUS _IO('H', 1)
#define MLX_RESCAN_DRIVES _IO ('M', 1)
#define MPTIOCTL_RESET_ADAPTER _IO(MPTIOCTL, 3)
#define MPTIOCTL_RESET_ADAPTER _IO(MPTIOCTL, 3)
#define MRSAS_IOC_SCAN_BUS _IO('M', 10)
_IO('T', 200)
#define TWEIO_RESET _IO ('T', 106)
_IO('T', 200)
#define BT848_MSP_RESET _IO('x', 76) /* MSP chip reset */
#define BIOCFLUSH _IO('B',104)
#define BIOCPROMISC _IO('B',105)
#define BIOCLOCK _IO('B', 122)
#define NIOCUNREGIF _IO('i', 147) /* deprecated. Was interface unregister */
#define NIOCTXSYNC _IO('i', 148) /* sync tx queues */
#define NIOCRXSYNC _IO('i', 149) /* sync rx queues */
#define DIOCSTART _IO ('D', 1)
#define DIOCSTOP _IO ('D', 2)
#define DIOCCLRSTATUS _IO ('D', 22)
#define DIOCCLRRULECTRS _IO ('D', 38)
#define DIOCSTARTALTQ _IO ('D', 42)
#define DIOCSTOPALTQ _IO ('D', 43)
#define DIOCOSFPFLUSH _IO('D', 78)
#define DIOCCLRSRCNODES _IO('D', 85)
#define TUNSIFPID _IO('t', 95)
_IO('b', NGM_HCI_NODE_RESET_STAT)
_IO('b', NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE)
_IO('b', NGM_HCI_NODE_INIT)
#define AGPIOC_CHIPSET_FLUSH _IO (AGPIOC_BASE, 10)
#define AGPIOC_ACQUIRE _IO (AGPIOC_BASE, 1)
#define AGPIOC_RELEASE _IO (AGPIOC_BASE, 2)
#define CDIOCSETMONO _IO('c',12)
#define CDIOCSETSTEREO _IO('c',13)
#define CDIOCSETMUTE _IO('c',14)
#define CDIOCSETLEFT _IO('c',15)
#define CDIOCSETRIGHT _IO('c',16)
#define CDIOCSETDEBUG _IO('c',17)
#define CDIOCCLRDEBUG _IO('c',18)
#define CDIOCPAUSE _IO('c',19)
#define CDIOCRESUME _IO('c',20)
#define CDIOCRESET _IO('c',21)
#define CDIOCSTART _IO('c',22)
#define CDIOCSTOP _IO('c',23)
#define CDIOCEJECT _IO('c',24)
#define CDIOCALLOW _IO('c',26)
#define CDIOCPREVENT _IO('c',27)
#define CDIOCCLOSE _IO('c',28) /*<1>*/
#define CDRIOCFLUSH _IO('c', 105)
#define CONS_CLRHIST _IO('c', 10)
#define CONS_SETWINORG _IO('c', 104 /*, u_int */)
#define CONS_SETKBD _IO('c', 110 /*, int */)
#define CONS_RELKBD _IO('c', 111)
#define VT_RELDISP _IO('v', 4 /*, int */)
#define VT_ACTIVATE _IO('v', 5 /*, int */)
#define VT_WAITACTIVE _IO('v', 6 /*, int */)
#define KDSETMODE _IO('K', 10 /*, int */)
#define KDSBORDER _IO('K', 13 /*, int */)
#define FIOCLEX _IO('f', 1) /* set close on exec on fd */
#define FIONCLEX _IO('f', 2) /* remove close on exec */
#define KDSKBMODE _IO('K', 7 /*, int */)
#define KDMKTONE _IO('K', 8 /*, int */)
#define KDSETMODE _IO('K', 10 /*, int */)
#define KDSBORDER _IO('K', 13 /*, int */)
#define KDSKBSTATE _IO('K', 20 /*, int */)
#define KDENABIO _IO('K', 60)
#define KDDISABIO _IO('K', 61)
#define KIOCSOUND _IO('K', 63 /*, int */)
#define KDSETLED _IO('K', 66 /*, int */)
#define KDSETRAD _IO('K', 67 /*, int */)
#define MAPPED_IOCTL_IO(c,f) MAPPED_IOCTL_MAPF((c), _IO(0, 0), (f))
#define MTIOCIEOT _IO('m', 3) /* ignore EOT error */
#define MTIOCEEOT _IO('m', 4) /* enable EOT error */
#define SNDCTL_DSP_SILENCE _IO ('P', 31)
#define SNDCTL_DSP_SKIP _IO ('P', 32)
#define SNDCTL_DSP_HALT_INPUT _IO ('P', 33)
#define SNDCTL_DSP_HALT_OUTPUT _IO ('P', 34)
#define SNDCTL_SEQ_RESET _IO ('Q', 0)
#define SNDCTL_SEQ_SYNC _IO ('Q', 1)
#define SNDCTL_SEQ_PANIC _IO ('Q',17)
#define SNDCTL_TMR_START _IO ('T', 2)
#define SNDCTL_TMR_STOP _IO ('T', 3)
#define SNDCTL_TMR_CONTINUE _IO ('T', 4)
#define SNDCTL_DSP_RESET _IO ('P', 0)
#define SNDCTL_DSP_SYNC _IO ('P', 1)
#define SNDCTL_DSP_POST _IO ('P', 8)
#define SNDCTL_DSP_NONBLOCK _IO ('P',14)
#define SNDCTL_DSP_SETSYNCRO _IO ('P', 21)
#define SNDCTL_DSP_SETDUPLEX _IO ('P', 22)
#define SNDCTL_COPR_RESET _IO ('C', 0)
#define PPS_IOC_CREATE _IO('1', 1)
#define PPS_IOC_DESTROY _IO('1', 2)
#define TIOCSTOP _IO('t', 111) /* stop output, like ^S */
#define TIOCSTART _IO('t', 110) /* start output, like ^Q */
#define TIOCSTAT _IO('t', 101) /* simulate ^T status message */
#define UIOCCMD(n) _IO('u', n) /* usr cntl op "n" */
#define TIOCSCTTY _IO('t', 97) /* become controlling tty */
#define TIOCSIG _IO('t', 95) /* pty: generate signal */
#define TIOCDRAIN _IO('t', 94) /* wait till output drained */
#define TIOCISPTMASTER _IO('t', 85) /* is pty master */
#define TIOCEXCL _IO('t', 13) /* set exclusive use of tty */
#define TIOCNXCL _IO('t', 14) /* reset exclusive use of tty */
#define TIOCSBRK _IO('t', 123) /* set break bit */
#define TIOCCBRK _IO('t', 122) /* clear break bit */
#define TIOCSDTR _IO('t', 121) /* set data terminal ready */
#define TIOCCDTR _IO('t', 120) /* clear data terminal ready */
#define TIOCNOTTY _IO('t', 113) /* void tty association */
#define PKTGENSTART _IO('G', 19)
#define PKTGENMQSTART _IO('G', 21)
#define MPTIOCTL_RESET_ADAPTER _IO(MPTIOCTL, 3)
#define MPTIOCTL_RESET_ADAPTER _IO(MPTIOCTL, 3)