diff options
Diffstat (limited to 'MdePkg/Include/IndustryStandard/Usb.h')
-rw-r--r-- | MdePkg/Include/IndustryStandard/Usb.h | 9 |
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
|