Changeset 378bf85 in mainline for uspace/drv/bus/usb/usbhid/subdrivers.h
- Timestamp:
- 2014-05-16T23:32:05Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d68e5c7
- Parents:
- 2040d5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/subdrivers.h
r2040d5f r378bf85 40 40 #include "kbd/kbddev.h" 41 41 42 43 44 42 typedef struct usb_hid_subdriver_usage { 45 43 int usage_page; … … 47 45 } usb_hid_subdriver_usage_t; 48 46 49 50 51 /** Structure representing the mapping between device requirements and the 47 /** Structure representing the mapping between device requirements and the 52 48 * subdriver supposed to handle this device. 53 49 * … … 55 51 * a new subdriver mapping will be created and used by the HID driver when it 56 52 * searches for appropriate subdrivers for a device. 53 * 57 54 */ 58 55 typedef struct usb_hid_subdriver_mapping { 59 /** Usage path that the device's Input reports must contain.56 /** Usage path that the device's input reports must contain. 60 57 * 61 58 * It is an array of pairs <usage_page, usage>, terminated by a <0, 0> … … 64 61 */ 65 62 const usb_hid_subdriver_usage_t *usage_path; 66 63 67 64 /** Report ID for which the path should apply. */ 68 65 int report_id; 69 70 /** Compare type for the Usage path. */66 67 /** Compare type for the usage path. */ 71 68 int compare; 72 69 73 70 /** Vendor ID (set to -1 if not specified). */ 74 71 int vendor_id; 75 72 76 73 /** Product ID (set to -1 if not specified). */ 77 74 int product_id; 78 75 79 76 /** Subdriver for controlling this device. */ 80 77 const usb_hid_subdriver_t subdriver; 81 78 } usb_hid_subdriver_mapping_t; 82 79 83 84 85 80 extern const usb_hid_subdriver_mapping_t usb_hid_subdrivers[]; 86 81 extern const size_t USB_HID_MAX_SUBDRIVERS; 87 88 89 82 90 83 #endif /* USB_HID_SUBDRIVERS_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.