summaryrefslogtreecommitdiff
path: root/MdePkg/Include/IndustryStandard
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-08 04:59:00 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-08 04:59:00 +0000
commit11ceade4ba5ea80bfa660ea2c464c50593b9a993 (patch)
treeea9f95b31e40d673d3374ab32e22f6beeaa87fce /MdePkg/Include/IndustryStandard
parent7f932291b5070e44891d5b9128b40ca588c20472 (diff)
downloadedk2-platforms-11ceade4ba5ea80bfa660ea2c464c50593b9a993.tar.xz
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
Diffstat (limited to 'MdePkg/Include/IndustryStandard')
-rw-r--r--MdePkg/Include/IndustryStandard/Usb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/Usb.h b/MdePkg/Include/IndustryStandard/Usb.h
index ef4acc8999..0d6da311f6 100644
--- a/MdePkg/Include/IndustryStandard/Usb.h
+++ b/MdePkg/Include/IndustryStandard/Usb.h
@@ -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
@@ -199,6 +200,17 @@ typedef enum {
//
//
+// 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
//
#define HID_ITEM_FORMAT_SHORT 0