1 STRUCT_SPECIAL(termios
)
4 TYPE_SHORT
, TYPE_SHORT
, TYPE_SHORT
, TYPE_SHORT
)
6 STRUCT(serial_multiport_struct
,
7 TYPE_INT
, TYPE_INT
, TYPE_CHAR
, TYPE_CHAR
, TYPE_INT
, TYPE_CHAR
, TYPE_CHAR
,
8 TYPE_INT
, TYPE_CHAR
, TYPE_CHAR
, TYPE_INT
, TYPE_CHAR
, TYPE_CHAR
, TYPE_INT
,
9 MK_ARRAY(TYPE_INT
, 32))
11 STRUCT(serial_icounter_struct
,
12 TYPE_INT
, TYPE_INT
, TYPE_INT
, TYPE_INT
, MK_ARRAY(TYPE_INT
, 16))
15 TYPE_SHORT
, MK_ARRAY(TYPE_CHAR
, 14))
18 TYPE_ULONG
, MK_STRUCT(STRUCT_sockaddr
), MK_STRUCT(STRUCT_sockaddr
), MK_STRUCT(STRUCT_sockaddr
),
19 TYPE_SHORT
, TYPE_SHORT
, TYPE_ULONG
, TYPE_PTRVOID
, TYPE_SHORT
, TYPE_PTRVOID
,
20 TYPE_ULONG
, TYPE_ULONG
, TYPE_SHORT
)
23 TYPE_ULONG
, TYPE_ULONG
, TYPE_SHORT
, TYPE_CHAR
, TYPE_CHAR
, TYPE_CHAR
,
25 TYPE_CHAR
, TYPE_CHAR
, TYPE_CHAR
)
27 /* The *_ifreq_list arrays deal with the fact that struct ifreq has unions */
29 STRUCT(sockaddr_ifreq
,
30 MK_ARRAY(TYPE_CHAR
, IFNAMSIZ
), MK_STRUCT(STRUCT_sockaddr
))
33 MK_ARRAY(TYPE_CHAR
, IFNAMSIZ
), TYPE_SHORT
)
36 MK_ARRAY(TYPE_CHAR
, IFNAMSIZ
), TYPE_INT
)
39 MK_ARRAY(TYPE_CHAR
, IFNAMSIZ
), MK_STRUCT(STRUCT_ifmap
))
42 MK_ARRAY(TYPE_CHAR
, IFNAMSIZ
),
43 MK_ARRAY(TYPE_CHAR
, IFNAMSIZ
))
46 MK_ARRAY(TYPE_CHAR
, IFNAMSIZ
), TYPE_PTRVOID
)
49 TYPE_INT
, TYPE_PTRVOID
)
52 MK_STRUCT(STRUCT_sockaddr
), MK_STRUCT(STRUCT_sockaddr
), TYPE_INT
, MK_STRUCT(STRUCT_sockaddr
),
53 MK_ARRAY(TYPE_CHAR
, 16))
56 MK_STRUCT(STRUCT_sockaddr
), MK_STRUCT(STRUCT_sockaddr
), TYPE_INT
, MK_STRUCT(STRUCT_sockaddr
))
58 STRUCT(cdrom_read_audio
,
59 TYPE_CHAR
, TYPE_CHAR
, TYPE_CHAR
, TYPE_CHAR
, TYPE_CHAR
, TYPE_INT
, TYPE_PTRVOID
,
63 TYPE_CHAR
, TYPE_CHAR
, TYPE_SHORT
, TYPE_ULONG
)
66 TYPE_LONG
, TYPE_LONG
, TYPE_SHORT
, MK_ARRAY(TYPE_CHAR
, 256))
69 TYPE_CHAR
, TYPE_CHAR
, TYPE_SHORT
)
72 TYPE_CHAR
, MK_ARRAY(TYPE_CHAR
, 512))
74 STRUCT(audio_buf_info
,
75 TYPE_INT
, TYPE_INT
, TYPE_INT
, TYPE_INT
)
78 TYPE_INT
, TYPE_INT
, TYPE_INT
)
81 TYPE_PTRVOID
, TYPE_INT
)
84 MK_ARRAY(TYPE_CHAR
, 16), MK_ARRAY(TYPE_CHAR
, 32), TYPE_INT
, MK_ARRAY(TYPE_INT
, 10))
86 /* loop device ioctls */
88 TYPE_INT
, /* lo_number */
89 TYPE_OLDDEVT
, /* lo_device */
90 TYPE_ULONG
, /* lo_inode */
91 TYPE_OLDDEVT
, /* lo_rdevice */
92 TYPE_INT
, /* lo_offset */
93 TYPE_INT
, /* lo_encrypt_type */
94 TYPE_INT
, /* lo_encrypt_key_size */
95 TYPE_INT
, /* lo_flags */
96 MK_ARRAY(TYPE_CHAR
, 64), /* lo_name */
97 MK_ARRAY(TYPE_CHAR
, 32), /* lo_encrypt_key */
98 MK_ARRAY(TYPE_ULONG
, 2), /* lo_init */
99 MK_ARRAY(TYPE_CHAR
, 4)) /* reserved */
102 TYPE_ULONGLONG
, /* lo_device */
103 TYPE_ULONGLONG
, /* lo_inode */
104 TYPE_ULONGLONG
, /* lo_rdevice */
105 TYPE_ULONGLONG
, /* lo_offset */
106 TYPE_ULONGLONG
, /* lo_sizelimit */
107 TYPE_INT
, /* lo_number */
108 TYPE_INT
, /* lo_encrypt_type */
109 TYPE_INT
, /* lo_encrypt_key_size */
110 TYPE_INT
, /* lo_flags */
111 MK_ARRAY(TYPE_CHAR
, 64), /* lo_name */
112 MK_ARRAY(TYPE_CHAR
, 64), /* lo_crypt_name */
113 MK_ARRAY(TYPE_CHAR
, 32), /* lo_encrypt_key */
114 MK_ARRAY(TYPE_ULONGLONG
, 2)) /* lo_init */
116 /* mag tape ioctls */
117 STRUCT(mtop
, TYPE_SHORT
, TYPE_INT
)
118 STRUCT(mtget
, TYPE_LONG
, TYPE_LONG
, TYPE_LONG
, TYPE_LONG
, TYPE_LONG
,
120 STRUCT(mtpos
, TYPE_LONG
)
122 STRUCT(fb_fix_screeninfo
,
123 MK_ARRAY(TYPE_CHAR
, 16), /* id */
124 TYPE_ULONG
, /* smem_start */
125 TYPE_INT
, /* smem_len */
127 TYPE_INT
, /* type_aux */
128 TYPE_INT
, /* visual */
129 TYPE_SHORT
, /* xpanstep */
130 TYPE_SHORT
, /* ypanstep */
131 TYPE_SHORT
, /* ywrapstep */
132 TYPE_INT
, /* line_length */
133 TYPE_ULONG
, /* mmio_start */
134 TYPE_INT
, /* mmio_len */
135 TYPE_INT
, /* accel */
136 MK_ARRAY(TYPE_CHAR
, 3)) /* reserved */
138 STRUCT(fb_var_screeninfo
,
141 TYPE_INT
, /* xres_virtual */
142 TYPE_INT
, /* yres_virtual */
143 TYPE_INT
, /* xoffset */
144 TYPE_INT
, /* yoffset */
145 TYPE_INT
, /* bits_per_pixel */
146 TYPE_INT
, /* grayscale */
147 MK_ARRAY(TYPE_INT
, 3), /* red */
148 MK_ARRAY(TYPE_INT
, 3), /* green */
149 MK_ARRAY(TYPE_INT
, 3), /* blue */
150 MK_ARRAY(TYPE_INT
, 3), /* transp */
151 TYPE_INT
, /* nonstd */
152 TYPE_INT
, /* activate */
153 TYPE_INT
, /* height */
154 TYPE_INT
, /* width */
155 TYPE_INT
, /* accel_flags */
156 TYPE_INT
, /* pixclock */
157 TYPE_INT
, /* left_margin */
158 TYPE_INT
, /* right_margin */
159 TYPE_INT
, /* upper_margin */
160 TYPE_INT
, /* lower_margin */
161 TYPE_INT
, /* hsync_len */
162 TYPE_INT
, /* vsync_len */
164 TYPE_INT
, /* vmode */
165 TYPE_INT
, /* rotate */
166 MK_ARRAY(TYPE_INT
, 5)) /* reserved */
169 TYPE_INT
, /* start */
171 TYPE_PTRVOID
, /* red */
172 TYPE_PTRVOID
, /* green */
173 TYPE_PTRVOID
, /* blue */
174 TYPE_PTRVOID
) /* transp */
177 TYPE_INT
, /* console */
178 TYPE_INT
) /* framebuffer */
182 TYPE_SHORT
, /* v_active */
183 TYPE_SHORT
, /* v_signal */
184 TYPE_SHORT
) /* v_state */
187 TYPE_CHAR
, /* mode */
188 TYPE_CHAR
, /* waitv */
189 TYPE_SHORT
, /* relsig */
190 TYPE_SHORT
, /* acqsig */
191 TYPE_SHORT
) /* frsig */
194 MK_ARRAY(TYPE_INT
, 3), /* version */
195 TYPE_INT
, /* data_size */
196 TYPE_INT
, /* data_start */
197 TYPE_INT
, /* target_count*/
198 TYPE_INT
, /* open_count */
199 TYPE_INT
, /* flags */
200 TYPE_INT
, /* event_nr */
201 TYPE_INT
, /* padding */
202 TYPE_ULONGLONG
, /* dev */
203 MK_ARRAY(TYPE_CHAR
, 128), /* name */
204 MK_ARRAY(TYPE_CHAR
, 129), /* uuid */
205 MK_ARRAY(TYPE_CHAR
, 7)) /* data */
207 STRUCT(dm_target_spec
,
208 TYPE_ULONGLONG
, /* sector_start */
209 TYPE_ULONGLONG
, /* length */
210 TYPE_INT
, /* status */
212 MK_ARRAY(TYPE_CHAR
, 16)) /* target_type */
214 STRUCT(dm_target_deps
,
215 TYPE_INT
, /* count */
216 TYPE_INT
) /* padding */
219 TYPE_ULONGLONG
, /* dev */
222 STRUCT(dm_target_versions
,
224 MK_ARRAY(TYPE_INT
, 3)) /* version*/
226 STRUCT(dm_target_msg
,
227 TYPE_ULONGLONG
) /* sector */
229 STRUCT(file_clone_range
,
230 TYPE_LONGLONG
, /* src_fd */
231 TYPE_ULONGLONG
, /* src_offset */
232 TYPE_ULONGLONG
, /* src_length */
233 TYPE_ULONGLONG
) /* dest_offset */
235 STRUCT(fiemap_extent
,
236 TYPE_ULONGLONG
, /* fe_logical */
237 TYPE_ULONGLONG
, /* fe_physical */
238 TYPE_ULONGLONG
, /* fe_length */
239 MK_ARRAY(TYPE_ULONGLONG
, 2), /* fe_reserved64[2] */
240 TYPE_INT
, /* fe_flags */
241 MK_ARRAY(TYPE_INT
, 3)) /* fe_reserved[3] */
244 TYPE_ULONGLONG
, /* fm_start */
245 TYPE_ULONGLONG
, /* fm_length */
246 TYPE_INT
, /* fm_flags */
247 TYPE_INT
, /* fm_mapped_extents */
248 TYPE_INT
, /* fm_extent_count */
249 TYPE_INT
) /* fm_reserved */
251 STRUCT(blkpg_partition
,
252 TYPE_LONGLONG
, /* start */
253 TYPE_LONGLONG
, /* length */
255 MK_ARRAY(TYPE_CHAR
, BLKPG_DEVNAMELTH
), /* devname */
256 MK_ARRAY(TYPE_CHAR
, BLKPG_VOLNAMELTH
)) /* volname */
259 TYPE_INT
, /* tm_sec */
260 TYPE_INT
, /* tm_min */
261 TYPE_INT
, /* tm_hour */
262 TYPE_INT
, /* tm_mday */
263 TYPE_INT
, /* tm_mon */
264 TYPE_INT
, /* tm_year */
265 TYPE_INT
, /* tm_wday */
266 TYPE_INT
, /* tm_yday */
267 TYPE_INT
) /* tm_isdst */
270 TYPE_CHAR
, /* enabled */
271 TYPE_CHAR
, /* pending */
272 MK_STRUCT(STRUCT_rtc_time
)) /* time */
275 TYPE_INT
, /* pll_ctrl */
276 TYPE_INT
, /* pll_value */
277 TYPE_INT
, /* pll_max */
278 TYPE_INT
, /* pll_min */
279 TYPE_INT
, /* pll_posmult */
280 TYPE_INT
, /* pll_negmult */
281 TYPE_LONG
) /* pll_clock */
283 STRUCT(blkpg_ioctl_arg
,
285 TYPE_INT
, /* flags */
286 TYPE_INT
, /* datalen */
287 TYPE_PTRVOID
) /* data */
290 TYPE_INT
, /* device */
292 TYPE_INT
) /* track */
294 STRUCT(floppy_max_errors
,
295 TYPE_INT
, /* abort */
296 TYPE_INT
, /* read_track */
297 TYPE_INT
, /* reset */
298 TYPE_INT
, /* recal */
299 TYPE_INT
) /* reporting */
301 #if defined(CONFIG_USBFS)
302 /* usb device ioctls */
303 STRUCT(usbdevfs_ctrltransfer
,
304 TYPE_CHAR
, /* bRequestType */
305 TYPE_CHAR
, /* bRequest */
306 TYPE_SHORT
, /* wValue */
307 TYPE_SHORT
, /* wIndex */
308 TYPE_SHORT
, /* wLength */
309 TYPE_INT
, /* timeout */
310 TYPE_PTRVOID
) /* data */
312 STRUCT(usbdevfs_bulktransfer
,
315 TYPE_INT
, /* timeout */
316 TYPE_PTRVOID
) /* data */
318 STRUCT(usbdevfs_setinterface
,
319 TYPE_INT
, /* interface */
320 TYPE_INT
) /* altsetting */
322 STRUCT(usbdevfs_disconnectsignal
,
323 TYPE_INT
, /* signr */
324 TYPE_PTRVOID
) /* context */
326 STRUCT(usbdevfs_getdriver
,
327 TYPE_INT
, /* interface */
328 MK_ARRAY(TYPE_CHAR
, USBDEVFS_MAXDRIVERNAME
+ 1)) /* driver */
330 STRUCT(usbdevfs_connectinfo
,
331 TYPE_INT
, /* devnum */
332 TYPE_CHAR
) /* slow */
334 STRUCT(usbdevfs_iso_packet_desc
,
335 TYPE_INT
, /* length */
336 TYPE_INT
, /* actual_length */
337 TYPE_INT
) /* status */
340 TYPE_CHAR
, /* type */
341 TYPE_CHAR
, /* endpoint */
342 TYPE_INT
, /* status */
343 TYPE_INT
, /* flags */
344 TYPE_PTRVOID
, /* buffer */
345 TYPE_INT
, /* buffer_length */
346 TYPE_INT
, /* actual_length */
347 TYPE_INT
, /* start_frame */
348 TYPE_INT
, /* union number_of_packets stream_id */
349 TYPE_INT
, /* error_count */
350 TYPE_INT
, /* signr */
351 TYPE_PTRVOID
, /* usercontext */
352 MK_ARRAY(MK_STRUCT(STRUCT_usbdevfs_iso_packet_desc
), 0)) /* desc */
354 STRUCT(usbdevfs_ioctl
,
356 TYPE_INT
, /* ioctl_code */
357 TYPE_PTRVOID
) /* data */
359 STRUCT(usbdevfs_hub_portinfo
,
360 TYPE_CHAR
, /* nports */
361 MK_ARRAY(TYPE_CHAR
, 127)) /* port */
363 STRUCT(usbdevfs_disconnect_claim
,
364 TYPE_INT
, /* interface */
365 TYPE_INT
, /* flags */
366 MK_ARRAY(TYPE_CHAR
, USBDEVFS_MAXDRIVERNAME
+ 1)) /* driver */
367 #endif /* CONFIG_USBFS */