xref: /haiku/src/add-ons/kernel/busses/scsi/usb/settings.h (revision 71452e98334eaac603bf542d159e24788a46bebb)
1 /**
2  *
3  * TODO: description
4  *
5  * This file is a part of USB SCSI CAM for Haiku.
6  * May be used under terms of the MIT License
7  *
8  * Author(s):
9  * 	Siarzhuk Zharski <imker@gmx.li>
10  *
11  *
12  */
13 /** driver settings support definitions */
14 
15 #ifndef _USB_SCSI_SETTINGS_H_
16 	#define _USB_SCSI_SETTINGS_H_
17 
18 void load_module_settings(void);
19 
20 typedef struct{
21 	uint16 vendor_id;
22 	uint16 product_id;
23 	uint32 properties;
24 #define VENDOR_PROP_NAME_LEN	0x08
25 	char vendor_protocol[VENDOR_PROP_NAME_LEN + 1];
26 	char vendor_commandset[VENDOR_PROP_NAME_LEN + 1];
27 }usb_device_settings;
28 
29 bool lookup_device_settings(const usb_device_descriptor *udd,
30 											usb_device_settings *uds);
31 
32 extern int	reserved_devices;
33 extern int	reserved_luns;
34 extern bool b_reservation_on;
35 extern bool b_ignore_sysinit2;
36 
37 #endif /*_USB_SCSI_SETTINGS_H_*/
38 
39