_IOC_NONE
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
case _IOC_NONE:
case _IOC_NONE: dir = "--"; break;
else if (_IOC_DIR(cmd) == _IOC_NONE)
if (_IOC_DIR(cmd) != _IOC_NONE) {
if ((_IOC_DIR(cmd) != _IOC_NONE) && !arg)
if (_IOC_DIR(cmd) != _IOC_NONE) {
#define LPIOC_SOFT_RESET _IOC(_IOC_NONE, 'P', IOCNR_SOFT_RESET, 0)
#ifndef _IOC_NONE
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
#define _SIOC_NONE _IOC_NONE
_IOC(_IOC_NONE, 'E', 7, sizeof(struct ioctl_evtchn_bind))
_IOC(_IOC_NONE, 'E', 0, sizeof(struct ioctl_evtchn_bind_virq))
_IOC(_IOC_NONE, 'E', 1, sizeof(struct ioctl_evtchn_bind_interdomain))
_IOC(_IOC_NONE, 'E', 2, sizeof(struct ioctl_evtchn_bind_unbound_port))
_IOC(_IOC_NONE, 'E', 3, sizeof(struct ioctl_evtchn_unbind))
_IOC(_IOC_NONE, 'E', 4, sizeof(struct ioctl_evtchn_notify))
_IOC(_IOC_NONE, 'E', 5, 0)
_IOC(_IOC_NONE, 'E', 6, sizeof(struct ioctl_evtchn_restrict_domid))
_IOC(_IOC_NONE, 'G', 5, sizeof(struct ioctl_gntalloc_alloc_gref))
_IOC(_IOC_NONE, 'G', 6, sizeof(struct ioctl_gntalloc_dealloc_gref))
_IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntalloc_unmap_notify))
_IOC(_IOC_NONE, 'G', 2, sizeof(struct ioctl_gntdev_get_offset_for_vaddr))
_IOC(_IOC_NONE, 'G', 3, sizeof(struct ioctl_gntdev_set_max_grants))
_IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntdev_unmap_notify))
_IOC(_IOC_NONE, 'G', 8, sizeof(struct ioctl_gntdev_grant_copy))
_IOC(_IOC_NONE, 'G', 9, \
_IOC(_IOC_NONE, 'G', 10, \
_IOC(_IOC_NONE, 'G', 11, \
_IOC(_IOC_NONE, 'G', 12, \
_IOC(_IOC_NONE, 'G', 0, sizeof(struct ioctl_gntdev_map_grant_ref))
_IOC(_IOC_NONE, 'G', 1, sizeof(struct ioctl_gntdev_unmap_grant_ref))
_IOC(_IOC_NONE, 'P', 0, sizeof(struct privcmd_hypercall))
_IOC(_IOC_NONE, 'P', 2, sizeof(struct privcmd_mmap))
_IOC(_IOC_NONE, 'P', 3, sizeof(struct privcmd_mmapbatch))
_IOC(_IOC_NONE, 'P', 4, sizeof(struct privcmd_mmapbatch_v2))
_IOC(_IOC_NONE, 'P', 5, sizeof(struct privcmd_dm_op))
_IOC(_IOC_NONE, 'P', 6, sizeof(domid_t))
_IOC(_IOC_NONE, 'P', 7, sizeof(struct privcmd_mmap_resource))
_IOC(_IOC_NONE, 'P', 10, sizeof(struct privcmd_pcidev_get_gsi))
_IOC(_IOC_NONE, 'B', 0, 0)
_IOC(_IOC_NONE, 'B', 1, 0)
if (dir == _IOC_NONE) {