xref: /haiku/src/add-ons/kernel/busses/scsi/usb/settings.h (revision 25a7b01d15612846f332751841da3579db313082)
12db0303fSimker /**
22db0303fSimker  *
32db0303fSimker  * TODO: description
42db0303fSimker  *
5*06437987SMatt Madia  * This file is a part of USB SCSI CAM for Haiku.
62db0303fSimker  * May be used under terms of the MIT License
72db0303fSimker  *
82db0303fSimker  * Author(s):
92db0303fSimker  * 	Siarzhuk Zharski <imker@gmx.li>
102db0303fSimker  *
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 
182db0303fSimker 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_*/
382db0303fSimker 
39