]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/Usb.h
MdePkg: add missing #defines for decoding PCIe 2.1 extended capability structures
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Usb.h
index 419b1b375d032a77171eb59f2486afab1e514814..c4367b58bb8861a6f7f79676961df2f317c59b75 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Support for USB 2.0 standard.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
@@ -62,6 +62,7 @@
 //\r
 // USB standard descriptors and reqeust\r
 //\r
+#pragma pack(1)\r
 \r
 ///\r
 /// Format of Setup Data for USB Device Requests\r
@@ -150,6 +151,9 @@ typedef struct {
   CHAR16          String[1];\r
 } EFI_USB_STRING_DESCRIPTOR;\r
 \r
+#pragma pack()\r
+\r
+\r
 typedef enum {\r
   //\r
   // USB request type\r
@@ -330,16 +334,17 @@ typedef enum {
 #pragma pack(1)\r
 ///\r
 /// Descriptor header for Report/Physical Descriptors\r
+/// HID 1.1, section 6.2.1\r
 ///\r
 typedef struct hid_class_descriptor {\r
   UINT8   DescriptorType;\r
   UINT16  DescriptorLength;\r
 } EFI_USB_HID_CLASS_DESCRIPTOR;\r
-#pragma pack()\r
 \r
 ///\r
 /// The HID descriptor identifies the length and type\r
 /// of subordinate descriptors for a device.\r
+/// HID 1.1, section 6.2.1\r
 ///\r
 typedef struct hid_descriptor {\r
   UINT8                         Length;\r
@@ -350,4 +355,6 @@ typedef struct hid_descriptor {
   EFI_USB_HID_CLASS_DESCRIPTOR  HidClassDesc[1];\r
 } EFI_USB_HID_DESCRIPTOR;\r
 \r
+#pragma pack()\r
+\r
 #endif\r