xref: /freebsd/sys/dev/ida/idaio.h (revision b740c88bfb6453416926271c089262e7164dace3)
1 /*
2  * $FreeBSD$
3  */
4 
5 #include <sys/ioccom.h>
6 
7 struct ida_user_command {
8 	int		command;
9 	int		drive;
10 	u_int32_t	blkno;
11 	union {
12 		struct ida_drive_info		di;
13 		struct ida_drive_info_ext	die;
14 		struct ida_controller_info	ci;
15 		struct ida_drive_status		ds;
16 		struct ida_phys_drv_info	pdi;
17 		struct ida_blink_drv_leds	bdl;
18 		struct ida_label_logical	ll;
19 		u_int8_t buf;
20 	} d;
21 };
22 
23 #define	IDAIO_COMMAND	_IOWR('I', 100, struct ida_user_command)
24