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