Add Usb Hid class request type into IndustryStandard/Usb.h, and replace the hard value in UefiUsbLib by them.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5834 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -170,6 +170,7 @@ typedef enum {
|
||||
USB_DESC_TYPE_INTERFACE = 0x04,
|
||||
USB_DESC_TYPE_ENDPOINT = 0x05,
|
||||
USB_DESC_TYPE_HID = 0x21,
|
||||
USB_DESC_TYPE_REPORT = 0x22,
|
||||
|
||||
//
|
||||
// Features to be cleared by CLEAR_FEATURE requests
|
||||
@@ -198,6 +199,17 @@ typedef enum {
|
||||
// HID constants definition, see HID rev1.0
|
||||
//
|
||||
|
||||
//
|
||||
// HID standard GET_DESCRIPTOR request.
|
||||
//
|
||||
#define USB_HID_GET_DESCRIPTOR_REQ_TYPE 0x81
|
||||
|
||||
//
|
||||
// HID specific requests.
|
||||
//
|
||||
#define USB_HID_CLASS_GET_REQ_TYPE 0xa1
|
||||
#define USB_HID_CLASS_SET_REQ_TYPE 0x21
|
||||
|
||||
//
|
||||
// HID report item format
|
||||
//
|
||||
|
Reference in New Issue
Block a user