]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/Usb.h
add #pragma pack(1) for some structures.
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Usb.h
index 419b1b375d032a77171eb59f2486afab1e514814..5ec270c7a118840d6240967019f4d91f32cd164c 100644 (file)
@@ -96,6 +96,7 @@ typedef struct {
   UINT8           NumConfigurations;\r
 } USB_DEVICE_DESCRIPTOR;\r
 \r
+#pragma pack(1)\r
 ///\r
 /// Standard Configuration Descriptor\r
 /// USB 2.0 spec, Section 9.6.3\r
@@ -110,6 +111,7 @@ typedef struct {
   UINT8           Attributes;\r
   UINT8           MaxPower;\r
 } USB_CONFIG_DESCRIPTOR;\r
+#pragma pack()\r
 \r
 ///\r
 /// Standard Interface Descriptor\r
@@ -127,6 +129,7 @@ typedef struct {
   UINT8           Interface;\r
 } USB_INTERFACE_DESCRIPTOR;\r
 \r
+#pragma pack(1)\r
 ///\r
 /// Standard Endpoint Descriptor\r
 /// USB 2.0 spec, Section 9.6.6\r
@@ -139,6 +142,7 @@ typedef struct {
   UINT16          MaxPacketSize;\r
   UINT8           Interval;\r
 } USB_ENDPOINT_DESCRIPTOR;\r
+#pragma pack()\r
 \r
 ///\r
 /// UNICODE String Descriptor\r
@@ -335,7 +339,6 @@ typedef struct hid_class_descriptor {
   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
@@ -349,5 +352,6 @@ typedef struct hid_descriptor {
   UINT8                         NumDescriptors;\r
   EFI_USB_HID_CLASS_DESCRIPTOR  HidClassDesc[1];\r
 } EFI_USB_HID_DESCRIPTOR;\r
+#pragma pack()\r
 \r
 #endif\r