]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.h
MdeModulePkg/UsbBusDxe: Add UsbControlTransfer() error check
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbBusDxe / UsbDesc.h
index dd7868bc1d40cd5de12cc7c8eb327ffed808b983..482a71f3386cc9d889b1551bf4f82c47a7b0ae60 100644 (file)
@@ -2,8 +2,8 @@
 \r
     Manage Usb Descriptor List\r
 \r
-Copyright (c) 2007, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -16,9 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef _USB_DESCRIPTOR_H_\r
 #define _USB_DESCRIPTOR_H_\r
 \r
-typedef enum {\r
-  USB_MAX_INTERFACE_SETTING  = 8\r
-}USB_INTERFACE_SETTING_MAX;\r
+#define USB_MAX_INTERFACE_SETTING  256\r
 \r
 //\r
 // The RequestType in EFI_USB_DEVICE_REQUEST is composed of\r
@@ -67,7 +65,7 @@ typedef struct {
 typedef struct {\r
   USB_INTERFACE_SETTING*        Settings[USB_MAX_INTERFACE_SETTING];\r
   UINTN                         NumOfSetting;\r
-  UINT8                         ActiveIndex;  // Index of active setting\r
+  UINTN                         ActiveIndex;  // Index of active setting\r
 } USB_INTERFACE_DESC;\r
 \r
 typedef struct {\r