Subversion Repositories Kolibri OS

Rev

Rev 1970 | Rev 3120 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1970 Rev 3031
Line 76... Line 76...
76
 *	by the USB forum.  Products may choose to implement classes,
76
 *	by the USB forum.  Products may choose to implement classes,
77
 *	or be vendor-specific.  Interface classes specify behavior only
77
 *	or be vendor-specific.  Interface classes specify behavior only
78
 *	of a given interface; other interfaces may support other classes.
78
 *	of a given interface; other interfaces may support other classes.
79
 * @bInterfaceSubClass: Subclass of interface; associated with bInterfaceClass.
79
 * @bInterfaceSubClass: Subclass of interface; associated with bInterfaceClass.
80
 * @bInterfaceProtocol: Protocol of interface; associated with bInterfaceClass.
80
 * @bInterfaceProtocol: Protocol of interface; associated with bInterfaceClass.
-
 
81
 * @bInterfaceNumber: Number of interface; composite devices may use
-
 
82
 *	fixed interface numbers to differentiate between vendor-specific
-
 
83
 *	interfaces.
81
 * @driver_info: Holds information used by the driver.  Usually it holds
84
 * @driver_info: Holds information used by the driver.  Usually it holds
82
 *	a pointer to a descriptor understood by the driver, or perhaps
85
 *	a pointer to a descriptor understood by the driver, or perhaps
83
 *	device flags.
86
 *	device flags.
84
 *
87
 *
85
 * In most cases, drivers will create a table of device IDs by using
88
 * In most cases, drivers will create a table of device IDs by using
Line 128... Line 131...
128
#define USB_DEVICE_ID_MATCH_DEV_SUBCLASS	0x0020
131
#define USB_DEVICE_ID_MATCH_DEV_SUBCLASS	0x0020
129
#define USB_DEVICE_ID_MATCH_DEV_PROTOCOL	0x0040
132
#define USB_DEVICE_ID_MATCH_DEV_PROTOCOL	0x0040
130
#define USB_DEVICE_ID_MATCH_INT_CLASS		0x0080
133
#define USB_DEVICE_ID_MATCH_INT_CLASS		0x0080
131
#define USB_DEVICE_ID_MATCH_INT_SUBCLASS	0x0100
134
#define USB_DEVICE_ID_MATCH_INT_SUBCLASS	0x0100
132
#define USB_DEVICE_ID_MATCH_INT_PROTOCOL	0x0200
135
#define USB_DEVICE_ID_MATCH_INT_PROTOCOL	0x0200
-
 
136
#define USB_DEVICE_ID_MATCH_INT_NUMBER		0x0400
Line 133... Line 137...
133
 
137
 
-
 
138
#define HID_ANY_ID				(~0)
-
 
139
#define HID_BUS_ANY				0xffff
Line 134... Line 140...
134
#define HID_ANY_ID				(~0)
140
#define HID_GROUP_ANY				0x0000
135
 
141
 
136
struct hid_device_id {
142
struct hid_device_id {
137
	__u16 bus;
143
	__u16 bus;
138
	__u16 pad1;
144
	__u16 group;
139
	__u32 vendor;
145
	__u32 vendor;
140
	__u32 product;
146
	__u32 product;
141
	kernel_ulong_t driver_data
147
	kernel_ulong_t driver_data
Line 220... Line 226...
220
{
226
{
221
	char	name[32];
227
	char	name[32];
222
	char	type[32];
228
	char	type[32];
223
	char	compatible[128];
229
	char	compatible[128];
224
#ifdef __KERNEL__
230
#ifdef __KERNEL__
225
	void	*data;
231
	const void *data;
226
#else
232
#else
227
	kernel_ulong_t data;
233
	kernel_ulong_t data;
228
#endif
234
#endif
229
};
235
};