]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h
IntelSiliconPkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMassStorageDxe / UsbMassCbi.h
index ec4c3e14dab146ffd01a213bccd3ba0a7c466415..b414a46fdece28c9c59d9d639d98fe54c4e38463 100644 (file)
@@ -2,8 +2,8 @@
   Defination for the USB mass storage Control/Bulk/Interrupt (CBI) transport,\r
   according to USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport, Revision 1.1.\r
 \r
-Copyright (c) 2007 - 2008, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2007 - 2011, 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
@@ -19,25 +19,20 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 extern USB_MASS_TRANSPORT mUsbCbi0Transport;\r
 extern USB_MASS_TRANSPORT mUsbCbi1Transport;\r
 \r
-typedef enum {\r
-  USB_CBI_MAX_PACKET_NUM        = 16,\r
-  USB_CBI_RESET_CMD_LEN         = 12,\r
-\r
-  //\r
-  // USB CBI retry C/B/I transport times, set by experience\r
-  //\r
-  USB_CBI_MAX_RETRY             = 3,\r
-\r
-  //\r
-  // Time to wait for USB CBI reset to complete, set by experience\r
-  //  \r
-  USB_CBI_RESET_DEVICE_STALL    = 50 * USB_MASS_1_MILLISECOND,\r
-\r
-  //\r
-  // USB CBI transport timeout, set by experience\r
-  //\r
-  USB_CBI_RESET_DEVICE_TIMEOUT  = 1 * USB_MASS_1_SECOND\r
-} USB_CBI_DATA;\r
+#define USB_CBI_MAX_PACKET_NUM        16\r
+#define USB_CBI_RESET_CMD_LEN         12\r
+//\r
+// USB CBI retry C/B/I transport times, set by experience\r
+//\r
+#define USB_CBI_MAX_RETRY             3\r
+//\r
+// Time to wait for USB CBI reset to complete, set by experience\r
+//  \r
+#define USB_CBI_RESET_DEVICE_STALL    (50 * USB_MASS_1_MILLISECOND)\r
+//\r
+// USB CBI transport timeout, set by experience\r
+//\r
+#define USB_CBI_RESET_DEVICE_TIMEOUT  (1 * USB_MASS_1_SECOND)\r
 \r
 typedef struct {\r
   //\r