summaryrefslogtreecommitdiff
path: root/MdePkg/Include/IndustryStandard/Usb.h
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 22:21:08 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 22:21:08 +0000
commit766f4bc13745f77fbcd68efc7d689f493c67b833 (patch)
tree1a372a4fc15014535d578b7e4217254e88ca341d /MdePkg/Include/IndustryStandard/Usb.h
parent8e1ac15ab89d289a42bd687a91b94d1c4284d3f1 (diff)
downloadedk2-platforms-766f4bc13745f77fbcd68efc7d689f493c67b833.tar.xz
Revert all the #pramga(1) related patches to r6434, we need to review all the updates carefully.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6461 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/IndustryStandard/Usb.h')
-rw-r--r--MdePkg/Include/IndustryStandard/Usb.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/MdePkg/Include/IndustryStandard/Usb.h b/MdePkg/Include/IndustryStandard/Usb.h
index 5ec270c7a1..ec86d8b794 100644
--- a/MdePkg/Include/IndustryStandard/Usb.h
+++ b/MdePkg/Include/IndustryStandard/Usb.h
@@ -62,6 +62,7 @@
//
// USB standard descriptors and reqeust
//
+#pragma pack(1)
///
/// Format of Setup Data for USB Device Requests
@@ -96,7 +97,6 @@ typedef struct {
UINT8 NumConfigurations;
} USB_DEVICE_DESCRIPTOR;
-#pragma pack(1)
///
/// Standard Configuration Descriptor
/// USB 2.0 spec, Section 9.6.3
@@ -111,7 +111,6 @@ typedef struct {
UINT8 Attributes;
UINT8 MaxPower;
} USB_CONFIG_DESCRIPTOR;
-#pragma pack()
///
/// Standard Interface Descriptor
@@ -129,7 +128,6 @@ typedef struct {
UINT8 Interface;
} USB_INTERFACE_DESCRIPTOR;
-#pragma pack(1)
///
/// Standard Endpoint Descriptor
/// USB 2.0 spec, Section 9.6.6
@@ -142,7 +140,6 @@ typedef struct {
UINT16 MaxPacketSize;
UINT8 Interval;
} USB_ENDPOINT_DESCRIPTOR;
-#pragma pack()
///
/// UNICODE String Descriptor
@@ -154,6 +151,9 @@ typedef struct {
CHAR16 String[1];
} EFI_USB_STRING_DESCRIPTOR;
+#pragma pack()
+
+
typedef enum {
//
// USB request type
@@ -352,6 +352,7 @@ typedef struct hid_descriptor {
UINT8 NumDescriptors;
EFI_USB_HID_CLASS_DESCRIPTOR HidClassDesc[1];
} EFI_USB_HID_DESCRIPTOR;
+
#pragma pack()
#endif