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:
lgao4
2008-09-08 04:59:00 +00:00
parent 7f932291b5
commit 11ceade4ba
3 changed files with 40 additions and 34 deletions

View File

@@ -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
//