diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-11 06:22:39 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-11 06:22:39 +0000 |
commit | c76a83cc63a66462516252a8d15d0e6d0b2150bc (patch) | |
tree | 923b8632977e1d12cdb9aa1a2a04671839e95cba /MdePkg/Include | |
parent | c9c0c803ecde461695329acaeae6a4ed6a770a26 (diff) | |
download | edk2-platforms-c76a83cc63a66462516252a8d15d0e6d0b2150bc.tar.xz |
add #pragma pack(1) for some structures.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6449 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-rw-r--r-- | MdePkg/Include/IndustryStandard/Usb.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MdePkg/Include/IndustryStandard/Usb.h b/MdePkg/Include/IndustryStandard/Usb.h index 419b1b375d..5ec270c7a1 100644 --- a/MdePkg/Include/IndustryStandard/Usb.h +++ b/MdePkg/Include/IndustryStandard/Usb.h @@ -96,6 +96,7 @@ typedef struct { UINT8 NumConfigurations;
} USB_DEVICE_DESCRIPTOR;
+#pragma pack(1)
///
/// Standard Configuration Descriptor
/// USB 2.0 spec, Section 9.6.3
@@ -110,6 +111,7 @@ typedef struct { UINT8 Attributes;
UINT8 MaxPower;
} USB_CONFIG_DESCRIPTOR;
+#pragma pack()
///
/// Standard Interface Descriptor
@@ -127,6 +129,7 @@ typedef struct { UINT8 Interface;
} USB_INTERFACE_DESCRIPTOR;
+#pragma pack(1)
///
/// Standard Endpoint Descriptor
/// USB 2.0 spec, Section 9.6.6
@@ -139,6 +142,7 @@ typedef struct { UINT16 MaxPacketSize;
UINT8 Interval;
} USB_ENDPOINT_DESCRIPTOR;
+#pragma pack()
///
/// UNICODE String Descriptor
@@ -335,7 +339,6 @@ typedef struct hid_class_descriptor { UINT8 DescriptorType;
UINT16 DescriptorLength;
} EFI_USB_HID_CLASS_DESCRIPTOR;
-#pragma pack()
///
/// The HID descriptor identifies the length and type
@@ -349,5 +352,6 @@ typedef struct hid_descriptor { UINT8 NumDescriptors;
EFI_USB_HID_CLASS_DESCRIPTOR HidClassDesc[1];
} EFI_USB_HID_DESCRIPTOR;
+#pragma pack()
#endif
|