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