usb_hid_subdriver_mapping Struct Reference
[USB HID driver]

Structure representing the mapping between device requirements and the subdriver supposed to handle this device. More...

#include <subdrivers.h>


Data Fields

int compare
 Compare type for the Usage path.
int product_id
 Product ID (set to -1 if not specified).
int report_id
 Report ID for which the path should apply.
usb_hid_subdriver_t subdriver
 Subdriver for controlling this device.
const usb_hid_subdriver_usage_tusage_path
 Usage path that the device's Input reports must contain.
int vendor_id
 Vendor ID (set to -1 if not specified).


Detailed Description

Structure representing the mapping between device requirements and the subdriver supposed to handle this device.

By filling in this structure and adding it to the usb_hid_subdrivers array, a new subdriver mapping will be created and used by the HID driver when it searches for appropriate subdrivers for a device.

Definition at line 58 of file subdrivers.h.


Field Documentation

const usb_hid_subdriver_usage_t* usage_path

Usage path that the device's Input reports must contain.

It is an array of pairs <usage_page, usage>, terminated by a <0, 0> pair. If you do not wish to specify the device in this way, set this to NULL.

Definition at line 65 of file subdrivers.h.


The documentation for this struct was generated from the following file:
Generated on Thu Jun 2 07:46:00 2011 for HelenOS/USB by  doxygen 1.4.7