Improve coding style in MdeModulePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9793 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
based on the "Universal Serial Bus Mass Storage Class Bulk-Only
|
||||
Transport" Revision 1.0, September 31, 1999.
|
||||
|
||||
Copyright (c) 2007 - 2008, Intel Corporation
|
||||
Copyright (c) 2007 - 2010, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -21,41 +21,39 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
extern USB_MASS_TRANSPORT mUsbBotTransport;
|
||||
|
||||
typedef enum {
|
||||
//
|
||||
// Usb Bulk-Only class specfic request
|
||||
//
|
||||
USB_BOT_RESET_REQUEST = 0xFF, ///< Bulk-Only Mass Storage Reset
|
||||
USB_BOT_GETLUN_REQUEST = 0xFE, ///< Get Max Lun
|
||||
USB_BOT_CBW_SIGNATURE = 0x43425355, ///< dCBWSignature, tag the packet as CBW
|
||||
USB_BOT_CSW_SIGNATURE = 0x53425355, ///< dCSWSignature, tag the packet as CSW
|
||||
USB_BOT_MAX_LUN = 0x0F, ///< Lun number is from 0 to 15
|
||||
USB_BOT_MAX_CMDLEN = 16, ///< Maxium number of command from command set
|
||||
//
|
||||
// Usb Bulk-Only class specfic request
|
||||
//
|
||||
#define USB_BOT_RESET_REQUEST 0xFF ///< Bulk-Only Mass Storage Reset
|
||||
#define USB_BOT_GETLUN_REQUEST 0xFE ///< Get Max Lun
|
||||
#define USB_BOT_CBW_SIGNATURE 0x43425355 ///< dCBWSignature, tag the packet as CBW
|
||||
#define USB_BOT_CSW_SIGNATURE 0x53425355 ///< dCSWSignature, tag the packet as CSW
|
||||
#define USB_BOT_MAX_LUN 0x0F ///< Lun number is from 0 to 15
|
||||
#define USB_BOT_MAX_CMDLEN 16 ///< Maxium number of command from command set
|
||||
|
||||
//
|
||||
// Usb BOT command block status values
|
||||
//
|
||||
USB_BOT_COMMAND_OK = 0x00, ///< Command passed, good status
|
||||
USB_BOT_COMMAND_FAILED = 0x01, ///< Command failed
|
||||
USB_BOT_COMMAND_ERROR = 0x02, ///< Phase error, need to reset the device
|
||||
//
|
||||
// Usb BOT command block status values
|
||||
//
|
||||
#define USB_BOT_COMMAND_OK 0x00 ///< Command passed, good status
|
||||
#define USB_BOT_COMMAND_FAILED 0x01 ///< Command failed
|
||||
#define USB_BOT_COMMAND_ERROR 0x02 ///< Phase error, need to reset the device
|
||||
|
||||
//
|
||||
// Usb Bot retry to get CSW, refers to specification[BOT10-5.3, it says 2 times]
|
||||
//
|
||||
USB_BOT_RECV_CSW_RETRY = 3,
|
||||
//
|
||||
// Usb Bot retry to get CSW, refers to specification[BOT10-5.3, it says 2 times]
|
||||
//
|
||||
#define USB_BOT_RECV_CSW_RETRY 3
|
||||
|
||||
//
|
||||
// Usb Bot wait device reset complete, set by experience
|
||||
//
|
||||
USB_BOT_RESET_DEVICE_STALL = 100 * USB_MASS_1_MILLISECOND,
|
||||
|
||||
//
|
||||
// Usb Bot transport timeout, set by experience
|
||||
//
|
||||
USB_BOT_SEND_CBW_TIMEOUT = 3 * USB_MASS_1_SECOND,
|
||||
USB_BOT_RECV_CSW_TIMEOUT = 3 * USB_MASS_1_SECOND,
|
||||
USB_BOT_RESET_DEVICE_TIMEOUT = 3 * USB_MASS_1_SECOND
|
||||
} USB_BOT_SUBCLASS;
|
||||
//
|
||||
// Usb Bot wait device reset complete, set by experience
|
||||
//
|
||||
#define USB_BOT_RESET_DEVICE_STALL (100 * USB_MASS_1_MILLISECOND)
|
||||
|
||||
//
|
||||
// Usb Bot transport timeout, set by experience
|
||||
//
|
||||
#define USB_BOT_SEND_CBW_TIMEOUT (3 * USB_MASS_1_SECOND)
|
||||
#define USB_BOT_RECV_CSW_TIMEOUT (3 * USB_MASS_1_SECOND)
|
||||
#define USB_BOT_RESET_DEVICE_TIMEOUT (3 * USB_MASS_1_SECOND)
|
||||
|
||||
#pragma pack(1)
|
||||
///
|
||||
|
Reference in New Issue
Block a user