xref: /freebsd/sys/dev/ida/idaio.h (revision 732a02b4e77866604a120a275c082bb6221bd2ff)
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