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