2003-02-19 06:55:36 +08:00
|
|
|
STRUCT_SPECIAL(termios)
|
|
|
|
|
|
|
|
STRUCT(winsize,
|
|
|
|
TYPE_SHORT, TYPE_SHORT, TYPE_SHORT, TYPE_SHORT)
|
|
|
|
|
|
|
|
STRUCT(serial_multiport_struct,
|
|
|
|
TYPE_INT, TYPE_INT, TYPE_CHAR, TYPE_CHAR, TYPE_INT, TYPE_CHAR, TYPE_CHAR,
|
2007-09-17 05:08:06 +08:00
|
|
|
TYPE_INT, TYPE_CHAR, TYPE_CHAR, TYPE_INT, TYPE_CHAR, TYPE_CHAR, TYPE_INT,
|
2003-02-19 06:55:36 +08:00
|
|
|
MK_ARRAY(TYPE_INT, 32))
|
|
|
|
|
|
|
|
STRUCT(serial_icounter_struct,
|
|
|
|
TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT, MK_ARRAY(TYPE_INT, 16))
|
|
|
|
|
|
|
|
STRUCT(sockaddr,
|
|
|
|
TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 14))
|
|
|
|
|
|
|
|
STRUCT(rtentry,
|
2007-09-17 05:08:06 +08:00
|
|
|
TYPE_ULONG, MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr),
|
|
|
|
TYPE_SHORT, TYPE_SHORT, TYPE_ULONG, TYPE_PTRVOID, TYPE_SHORT, TYPE_PTRVOID,
|
2003-02-19 06:55:36 +08:00
|
|
|
TYPE_ULONG, TYPE_ULONG, TYPE_SHORT)
|
|
|
|
|
|
|
|
STRUCT(ifmap,
|
2007-09-17 05:08:06 +08:00
|
|
|
TYPE_ULONG, TYPE_ULONG, TYPE_SHORT, TYPE_CHAR, TYPE_CHAR, TYPE_CHAR,
|
2003-02-19 06:55:36 +08:00
|
|
|
/* Spare 3 bytes */
|
|
|
|
TYPE_CHAR, TYPE_CHAR, TYPE_CHAR)
|
|
|
|
|
|
|
|
/* The *_ifreq_list arrays deal with the fact that struct ifreq has unions */
|
|
|
|
|
|
|
|
STRUCT(sockaddr_ifreq,
|
|
|
|
MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_STRUCT(STRUCT_sockaddr))
|
2007-09-17 16:09:54 +08:00
|
|
|
|
2003-02-19 06:55:36 +08:00
|
|
|
STRUCT(short_ifreq,
|
|
|
|
MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_SHORT)
|
|
|
|
|
|
|
|
STRUCT(int_ifreq,
|
|
|
|
MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_INT)
|
|
|
|
|
|
|
|
STRUCT(ifmap_ifreq,
|
|
|
|
MK_ARRAY(TYPE_CHAR, IFNAMSIZ), MK_STRUCT(STRUCT_ifmap))
|
|
|
|
|
|
|
|
STRUCT(char_ifreq,
|
|
|
|
MK_ARRAY(TYPE_CHAR, IFNAMSIZ),
|
|
|
|
MK_ARRAY(TYPE_CHAR, IFNAMSIZ))
|
|
|
|
|
|
|
|
STRUCT(ptr_ifreq,
|
|
|
|
MK_ARRAY(TYPE_CHAR, IFNAMSIZ), TYPE_PTRVOID)
|
|
|
|
|
|
|
|
STRUCT(ifconf,
|
|
|
|
TYPE_INT, TYPE_PTRVOID)
|
|
|
|
|
|
|
|
STRUCT(arpreq,
|
2007-09-17 05:08:06 +08:00
|
|
|
MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), TYPE_INT, MK_STRUCT(STRUCT_sockaddr),
|
2003-02-19 06:55:36 +08:00
|
|
|
MK_ARRAY(TYPE_CHAR, 16))
|
|
|
|
|
|
|
|
STRUCT(arpreq_old,
|
|
|
|
MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), TYPE_INT, MK_STRUCT(STRUCT_sockaddr))
|
|
|
|
|
|
|
|
STRUCT(cdrom_read_audio,
|
|
|
|
TYPE_CHAR, TYPE_CHAR, TYPE_CHAR, TYPE_CHAR, TYPE_CHAR, TYPE_INT, TYPE_PTRVOID,
|
|
|
|
TYPE_NULL)
|
|
|
|
|
|
|
|
STRUCT(hd_geometry,
|
|
|
|
TYPE_CHAR, TYPE_CHAR, TYPE_SHORT, TYPE_ULONG)
|
2003-03-17 04:28:50 +08:00
|
|
|
|
|
|
|
STRUCT(dirent,
|
|
|
|
TYPE_LONG, TYPE_LONG, TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 256))
|
2003-05-10 20:38:16 +08:00
|
|
|
|
|
|
|
STRUCT(kbentry,
|
|
|
|
TYPE_CHAR, TYPE_CHAR, TYPE_SHORT)
|
2003-06-16 03:58:13 +08:00
|
|
|
|
2006-03-26 03:31:22 +08:00
|
|
|
STRUCT(kbsentry,
|
|
|
|
TYPE_CHAR, MK_ARRAY(TYPE_CHAR, 512))
|
|
|
|
|
2003-06-16 03:58:13 +08:00
|
|
|
STRUCT(audio_buf_info,
|
|
|
|
TYPE_INT, TYPE_INT, TYPE_INT, TYPE_INT)
|
|
|
|
|
|
|
|
STRUCT(count_info,
|
|
|
|
TYPE_INT, TYPE_INT, TYPE_INT)
|
|
|
|
|
2012-07-23 16:06:15 +08:00
|
|
|
STRUCT(buffmem_desc,
|
|
|
|
TYPE_PTRVOID, TYPE_INT)
|
|
|
|
|
2003-06-16 03:58:13 +08:00
|
|
|
STRUCT(mixer_info,
|
|
|
|
MK_ARRAY(TYPE_CHAR, 16), MK_ARRAY(TYPE_CHAR, 32), TYPE_INT, MK_ARRAY(TYPE_INT, 10))
|
2008-04-26 22:44:49 +08:00
|
|
|
|
|
|
|
/* loop device ioctls */
|
|
|
|
STRUCT(loop_info,
|
|
|
|
TYPE_INT, /* lo_number */
|
2012-02-01 02:44:41 +08:00
|
|
|
TYPE_OLDDEVT, /* lo_device */
|
2008-04-26 22:44:49 +08:00
|
|
|
TYPE_ULONG, /* lo_inode */
|
2012-02-01 02:44:41 +08:00
|
|
|
TYPE_OLDDEVT, /* lo_rdevice */
|
2008-04-26 22:44:49 +08:00
|
|
|
TYPE_INT, /* lo_offset */
|
|
|
|
TYPE_INT, /* lo_encrypt_type */
|
|
|
|
TYPE_INT, /* lo_encrypt_key_size */
|
|
|
|
TYPE_INT, /* lo_flags */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 64), /* lo_name */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 32), /* lo_encrypt_key */
|
|
|
|
MK_ARRAY(TYPE_ULONG, 2), /* lo_init */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 4)) /* reserved */
|
|
|
|
|
|
|
|
STRUCT(loop_info64,
|
|
|
|
TYPE_ULONGLONG, /* lo_device */
|
|
|
|
TYPE_ULONGLONG, /* lo_inode */
|
|
|
|
TYPE_ULONGLONG, /* lo_rdevice */
|
|
|
|
TYPE_ULONGLONG, /* lo_offset */
|
2016-07-05 23:36:29 +08:00
|
|
|
TYPE_ULONGLONG, /* lo_sizelimit */
|
|
|
|
TYPE_INT, /* lo_number */
|
|
|
|
TYPE_INT, /* lo_encrypt_type */
|
|
|
|
TYPE_INT, /* lo_encrypt_key_size */
|
|
|
|
TYPE_INT, /* lo_flags */
|
2008-04-26 22:44:49 +08:00
|
|
|
MK_ARRAY(TYPE_CHAR, 64), /* lo_name */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 64), /* lo_crypt_name */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 32), /* lo_encrypt_key */
|
|
|
|
MK_ARRAY(TYPE_ULONGLONG, 2)) /* lo_init */
|
2008-09-20 11:03:09 +08:00
|
|
|
|
|
|
|
/* mag tape ioctls */
|
|
|
|
STRUCT(mtop, TYPE_SHORT, TYPE_INT)
|
|
|
|
STRUCT(mtget, TYPE_LONG, TYPE_LONG, TYPE_LONG, TYPE_LONG, TYPE_LONG,
|
|
|
|
TYPE_INT, TYPE_INT)
|
|
|
|
STRUCT(mtpos, TYPE_LONG)
|
2009-10-16 23:00:44 +08:00
|
|
|
|
|
|
|
STRUCT(fb_fix_screeninfo,
|
|
|
|
MK_ARRAY(TYPE_CHAR, 16), /* id */
|
|
|
|
TYPE_ULONG, /* smem_start */
|
|
|
|
TYPE_INT, /* smem_len */
|
|
|
|
TYPE_INT, /* type */
|
|
|
|
TYPE_INT, /* type_aux */
|
|
|
|
TYPE_INT, /* visual */
|
|
|
|
TYPE_SHORT, /* xpanstep */
|
|
|
|
TYPE_SHORT, /* ypanstep */
|
|
|
|
TYPE_SHORT, /* ywrapstep */
|
|
|
|
TYPE_INT, /* line_length */
|
|
|
|
TYPE_ULONG, /* mmio_start */
|
|
|
|
TYPE_INT, /* mmio_len */
|
|
|
|
TYPE_INT, /* accel */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 3)) /* reserved */
|
|
|
|
|
|
|
|
STRUCT(fb_var_screeninfo,
|
|
|
|
TYPE_INT, /* xres */
|
|
|
|
TYPE_INT, /* yres */
|
|
|
|
TYPE_INT, /* xres_virtual */
|
|
|
|
TYPE_INT, /* yres_virtual */
|
|
|
|
TYPE_INT, /* xoffset */
|
|
|
|
TYPE_INT, /* yoffset */
|
|
|
|
TYPE_INT, /* bits_per_pixel */
|
|
|
|
TYPE_INT, /* grayscale */
|
|
|
|
MK_ARRAY(TYPE_INT, 3), /* red */
|
|
|
|
MK_ARRAY(TYPE_INT, 3), /* green */
|
|
|
|
MK_ARRAY(TYPE_INT, 3), /* blue */
|
|
|
|
MK_ARRAY(TYPE_INT, 3), /* transp */
|
|
|
|
TYPE_INT, /* nonstd */
|
|
|
|
TYPE_INT, /* activate */
|
|
|
|
TYPE_INT, /* height */
|
|
|
|
TYPE_INT, /* width */
|
|
|
|
TYPE_INT, /* accel_flags */
|
|
|
|
TYPE_INT, /* pixclock */
|
|
|
|
TYPE_INT, /* left_margin */
|
|
|
|
TYPE_INT, /* right_margin */
|
|
|
|
TYPE_INT, /* upper_margin */
|
|
|
|
TYPE_INT, /* lower_margin */
|
|
|
|
TYPE_INT, /* hsync_len */
|
|
|
|
TYPE_INT, /* vsync_len */
|
|
|
|
TYPE_INT, /* sync */
|
|
|
|
TYPE_INT, /* vmode */
|
|
|
|
TYPE_INT, /* rotate */
|
|
|
|
MK_ARRAY(TYPE_INT, 5)) /* reserved */
|
|
|
|
|
2011-06-29 21:09:11 +08:00
|
|
|
STRUCT(fb_cmap,
|
|
|
|
TYPE_INT, /* start */
|
|
|
|
TYPE_INT, /* len */
|
|
|
|
TYPE_PTRVOID, /* red */
|
|
|
|
TYPE_PTRVOID, /* green */
|
|
|
|
TYPE_PTRVOID, /* blue */
|
|
|
|
TYPE_PTRVOID) /* transp */
|
|
|
|
|
|
|
|
STRUCT(fb_con2fbmap,
|
|
|
|
TYPE_INT, /* console */
|
|
|
|
TYPE_INT) /* framebuffer */
|
|
|
|
|
|
|
|
|
2009-10-16 23:00:44 +08:00
|
|
|
STRUCT(vt_stat,
|
|
|
|
TYPE_SHORT, /* v_active */
|
|
|
|
TYPE_SHORT, /* v_signal */
|
|
|
|
TYPE_SHORT) /* v_state */
|
2011-01-06 23:04:18 +08:00
|
|
|
|
2011-06-29 21:09:10 +08:00
|
|
|
STRUCT(vt_mode,
|
|
|
|
TYPE_CHAR, /* mode */
|
|
|
|
TYPE_CHAR, /* waitv */
|
|
|
|
TYPE_SHORT, /* relsig */
|
|
|
|
TYPE_SHORT, /* acqsig */
|
|
|
|
TYPE_SHORT) /* frsig */
|
|
|
|
|
2012-02-01 01:42:06 +08:00
|
|
|
STRUCT(dm_ioctl,
|
|
|
|
MK_ARRAY(TYPE_INT, 3), /* version */
|
|
|
|
TYPE_INT, /* data_size */
|
|
|
|
TYPE_INT, /* data_start */
|
|
|
|
TYPE_INT, /* target_count*/
|
|
|
|
TYPE_INT, /* open_count */
|
|
|
|
TYPE_INT, /* flags */
|
|
|
|
TYPE_INT, /* event_nr */
|
|
|
|
TYPE_INT, /* padding */
|
|
|
|
TYPE_ULONGLONG, /* dev */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 128), /* name */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 129), /* uuid */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 7)) /* data */
|
|
|
|
|
|
|
|
STRUCT(dm_target_spec,
|
|
|
|
TYPE_ULONGLONG, /* sector_start */
|
|
|
|
TYPE_ULONGLONG, /* length */
|
|
|
|
TYPE_INT, /* status */
|
|
|
|
TYPE_INT, /* next */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 16)) /* target_type */
|
|
|
|
|
|
|
|
STRUCT(dm_target_deps,
|
|
|
|
TYPE_INT, /* count */
|
|
|
|
TYPE_INT) /* padding */
|
|
|
|
|
|
|
|
STRUCT(dm_name_list,
|
|
|
|
TYPE_ULONGLONG, /* dev */
|
|
|
|
TYPE_INT) /* next */
|
|
|
|
|
|
|
|
STRUCT(dm_target_versions,
|
|
|
|
TYPE_INT, /* next */
|
|
|
|
MK_ARRAY(TYPE_INT, 3)) /* version*/
|
|
|
|
|
|
|
|
STRUCT(dm_target_msg,
|
|
|
|
TYPE_ULONGLONG) /* sector */
|
|
|
|
|
2017-02-12 06:26:02 +08:00
|
|
|
STRUCT(file_clone_range,
|
|
|
|
TYPE_LONGLONG, /* src_fd */
|
|
|
|
TYPE_ULONGLONG, /* src_offset */
|
|
|
|
TYPE_ULONGLONG, /* src_length */
|
|
|
|
TYPE_ULONGLONG) /* dest_offset */
|
|
|
|
|
2011-01-06 23:04:18 +08:00
|
|
|
STRUCT(fiemap_extent,
|
|
|
|
TYPE_ULONGLONG, /* fe_logical */
|
|
|
|
TYPE_ULONGLONG, /* fe_physical */
|
|
|
|
TYPE_ULONGLONG, /* fe_length */
|
|
|
|
MK_ARRAY(TYPE_ULONGLONG, 2), /* fe_reserved64[2] */
|
|
|
|
TYPE_INT, /* fe_flags */
|
|
|
|
MK_ARRAY(TYPE_INT, 3)) /* fe_reserved[3] */
|
|
|
|
|
|
|
|
STRUCT(fiemap,
|
|
|
|
TYPE_ULONGLONG, /* fm_start */
|
|
|
|
TYPE_ULONGLONG, /* fm_length */
|
|
|
|
TYPE_INT, /* fm_flags */
|
|
|
|
TYPE_INT, /* fm_mapped_extents */
|
|
|
|
TYPE_INT, /* fm_extent_count */
|
|
|
|
TYPE_INT) /* fm_reserved */
|
2014-01-18 14:38:30 +08:00
|
|
|
|
|
|
|
STRUCT(blkpg_partition,
|
|
|
|
TYPE_LONGLONG, /* start */
|
|
|
|
TYPE_LONGLONG, /* length */
|
|
|
|
TYPE_INT, /* pno */
|
|
|
|
MK_ARRAY(TYPE_CHAR, BLKPG_DEVNAMELTH), /* devname */
|
|
|
|
MK_ARRAY(TYPE_CHAR, BLKPG_VOLNAMELTH)) /* volname */
|
|
|
|
|
2020-01-16 03:36:36 +08:00
|
|
|
STRUCT(rtc_time,
|
|
|
|
TYPE_INT, /* tm_sec */
|
|
|
|
TYPE_INT, /* tm_min */
|
|
|
|
TYPE_INT, /* tm_hour */
|
|
|
|
TYPE_INT, /* tm_mday */
|
|
|
|
TYPE_INT, /* tm_mon */
|
|
|
|
TYPE_INT, /* tm_year */
|
|
|
|
TYPE_INT, /* tm_wday */
|
|
|
|
TYPE_INT, /* tm_yday */
|
|
|
|
TYPE_INT) /* tm_isdst */
|
|
|
|
|
2020-01-16 03:36:38 +08:00
|
|
|
STRUCT(rtc_wkalrm,
|
|
|
|
TYPE_CHAR, /* enabled */
|
|
|
|
TYPE_CHAR, /* pending */
|
|
|
|
MK_STRUCT(STRUCT_rtc_time)) /* time */
|
|
|
|
|
2020-01-16 03:36:39 +08:00
|
|
|
STRUCT(rtc_pll_info,
|
|
|
|
TYPE_INT, /* pll_ctrl */
|
|
|
|
TYPE_INT, /* pll_value */
|
|
|
|
TYPE_INT, /* pll_max */
|
|
|
|
TYPE_INT, /* pll_min */
|
|
|
|
TYPE_INT, /* pll_posmult */
|
|
|
|
TYPE_INT, /* pll_negmult */
|
|
|
|
TYPE_LONG) /* pll_clock */
|
|
|
|
|
2014-01-18 14:38:30 +08:00
|
|
|
STRUCT(blkpg_ioctl_arg,
|
|
|
|
TYPE_INT, /* op */
|
|
|
|
TYPE_INT, /* flags */
|
|
|
|
TYPE_INT, /* datalen */
|
2014-08-22 19:15:50 +08:00
|
|
|
TYPE_PTRVOID) /* data */
|
2018-10-09 00:35:20 +08:00
|
|
|
|
2020-01-17 06:49:47 +08:00
|
|
|
STRUCT(format_descr,
|
|
|
|
TYPE_INT, /* device */
|
|
|
|
TYPE_INT, /* head */
|
|
|
|
TYPE_INT) /* track */
|
|
|
|
|
2020-01-17 06:49:46 +08:00
|
|
|
STRUCT(floppy_max_errors,
|
|
|
|
TYPE_INT, /* abort */
|
|
|
|
TYPE_INT, /* read_track */
|
|
|
|
TYPE_INT, /* reset */
|
|
|
|
TYPE_INT, /* recal */
|
|
|
|
TYPE_INT) /* reporting */
|
|
|
|
|
2018-10-09 00:35:20 +08:00
|
|
|
#if defined(CONFIG_USBFS)
|
|
|
|
/* usb device ioctls */
|
|
|
|
STRUCT(usbdevfs_ctrltransfer,
|
|
|
|
TYPE_CHAR, /* bRequestType */
|
|
|
|
TYPE_CHAR, /* bRequest */
|
|
|
|
TYPE_SHORT, /* wValue */
|
|
|
|
TYPE_SHORT, /* wIndex */
|
|
|
|
TYPE_SHORT, /* wLength */
|
|
|
|
TYPE_INT, /* timeout */
|
|
|
|
TYPE_PTRVOID) /* data */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_bulktransfer,
|
|
|
|
TYPE_INT, /* ep */
|
|
|
|
TYPE_INT, /* len */
|
|
|
|
TYPE_INT, /* timeout */
|
|
|
|
TYPE_PTRVOID) /* data */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_setinterface,
|
|
|
|
TYPE_INT, /* interface */
|
|
|
|
TYPE_INT) /* altsetting */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_disconnectsignal,
|
|
|
|
TYPE_INT, /* signr */
|
|
|
|
TYPE_PTRVOID) /* context */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_getdriver,
|
|
|
|
TYPE_INT, /* interface */
|
|
|
|
MK_ARRAY(TYPE_CHAR, USBDEVFS_MAXDRIVERNAME + 1)) /* driver */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_connectinfo,
|
|
|
|
TYPE_INT, /* devnum */
|
|
|
|
TYPE_CHAR) /* slow */
|
|
|
|
|
2018-10-09 00:35:21 +08:00
|
|
|
STRUCT(usbdevfs_iso_packet_desc,
|
|
|
|
TYPE_INT, /* length */
|
|
|
|
TYPE_INT, /* actual_length */
|
|
|
|
TYPE_INT) /* status */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_urb,
|
|
|
|
TYPE_CHAR, /* type */
|
|
|
|
TYPE_CHAR, /* endpoint */
|
|
|
|
TYPE_INT, /* status */
|
|
|
|
TYPE_INT, /* flags */
|
|
|
|
TYPE_PTRVOID, /* buffer */
|
|
|
|
TYPE_INT, /* buffer_length */
|
|
|
|
TYPE_INT, /* actual_length */
|
|
|
|
TYPE_INT, /* start_frame */
|
|
|
|
TYPE_INT, /* union number_of_packets stream_id */
|
|
|
|
TYPE_INT, /* error_count */
|
|
|
|
TYPE_INT, /* signr */
|
|
|
|
TYPE_PTRVOID, /* usercontext */
|
|
|
|
MK_ARRAY(MK_STRUCT(STRUCT_usbdevfs_iso_packet_desc), 0)) /* desc */
|
|
|
|
|
2018-10-09 00:35:20 +08:00
|
|
|
STRUCT(usbdevfs_ioctl,
|
|
|
|
TYPE_INT, /* ifno */
|
|
|
|
TYPE_INT, /* ioctl_code */
|
|
|
|
TYPE_PTRVOID) /* data */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_hub_portinfo,
|
|
|
|
TYPE_CHAR, /* nports */
|
|
|
|
MK_ARRAY(TYPE_CHAR, 127)) /* port */
|
|
|
|
|
|
|
|
STRUCT(usbdevfs_disconnect_claim,
|
|
|
|
TYPE_INT, /* interface */
|
|
|
|
TYPE_INT, /* flags */
|
|
|
|
MK_ARRAY(TYPE_CHAR, USBDEVFS_MAXDRIVERNAME + 1)) /* driver */
|
|
|
|
#endif /* CONFIG_USBFS */
|