//\r
// USB standard descriptors and reqeust\r
//\r
+#pragma pack(1)\r
\r
///\r
/// Format of Setup Data for USB Device Requests\r
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
UINT8 Attributes;\r
UINT8 MaxPower;\r
} USB_CONFIG_DESCRIPTOR;\r
-#pragma pack()\r
\r
///\r
/// Standard Interface Descriptor\r
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
UINT16 MaxPacketSize;\r
UINT8 Interval;\r
} USB_ENDPOINT_DESCRIPTOR;\r
-#pragma pack()\r
\r
///\r
/// UNICODE String Descriptor\r
CHAR16 String[1];\r
} EFI_USB_STRING_DESCRIPTOR;\r
\r
+#pragma pack()\r
+\r
+\r
typedef enum {\r
//\r
// USB request type\r
UINT8 NumDescriptors;\r
EFI_USB_HID_CLASS_DESCRIPTOR HidClassDesc[1];\r
} EFI_USB_HID_DESCRIPTOR;\r
+\r
#pragma pack()\r
\r
#endif\r