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)
|
|
|
|
|
|
|
|
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 */
|
|
|
|
TYPE_SHORT, /* lo_device */
|
|
|
|
TYPE_ULONG, /* lo_inode */
|
|
|
|
TYPE_SHORT, /* lo_rdevice */
|
|
|
|
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 */
|
|
|
|
TYPE_ULONG, /* lo_number */
|
|
|
|
TYPE_ULONG, /* lo_encrypt_type */
|
|
|
|
TYPE_ULONG, /* lo_encrypt_key_size */
|
|
|
|
TYPE_ULONG, /* lo_flags */
|
|
|
|
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)
|