]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorageData.h
1. UsbMassStorage: Increase the timeout of USBFloppyRead10 and USBFloppyWrite10 for...
[mirror_edk2.git] / EdkModulePkg / Bus / Usb / UsbMassStorage / Dxe / UsbMassStorageData.h
index 598c82e220e1f2b8e0d0e4e3909facfeee68e41e..56dbcd8e402bfba2ada032d3b213e248f9663f27 100644 (file)
@@ -1,12 +1,12 @@
 /*++\r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. 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
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -25,14 +25,15 @@ Revision History
 //\r
 // bit definition\r
 //\r
-#define bit(a)  1 << (a)\r
+#define bit(a)  (1 << (a))\r
 \r
 //\r
 // timeout unit is in millisecond.\r
 //\r
-#define USBFLPTIMEOUT         2000\r
-#define STALL_1_MILLI_SECOND  1000\r
 \r
+#define STALL_1_MILLI_SECOND  1000\r
+#define USBFLPTIMEOUT         STALL_1_MILLI_SECOND\r
+#define USBDATATIMEOUT        2 * STALL_1_MILLI_SECOND\r
 //\r
 // ATAPI Packet Command\r
 //\r