3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Defination for the USB mass storage Control/Bulk/Interrupt transpor.
25 #ifndef _EFI_USBMASS_CBI_H_
26 #define _EFI_USBMASS_CBI_H_
29 USB_CBI_MAX_PACKET_NUM
= 16,
30 USB_CBI_RESET_CMD_LEN
= 12,
33 // Usb Cbi retry C/B/I transport times, set by experience
35 USB_CBI_MAX_RETRY
= 3,
38 // Usb Cbi wait device reset complete, set by experience
40 USB_CBI_RESET_DEVICE_STALL
= 50 * USB_MASS_1_MILLISECOND
,
43 // Usb Cbi transport timeout, set by experience
45 USB_CBI_RESET_DEVICE_TIMEOUT
= 1 * USB_MASS_1_SECOND
,
49 // Put Interface at the first field is to make it easy to get by Context, which
50 // could be BOT/CBI Protocol instance
53 EFI_USB_INTERFACE_DESCRIPTOR Interface
;
54 EFI_USB_ENDPOINT_DESCRIPTOR
*BulkInEndpoint
;
55 EFI_USB_ENDPOINT_DESCRIPTOR
*BulkOutEndpoint
;
56 EFI_USB_ENDPOINT_DESCRIPTOR
*InterruptEndpoint
;
57 EFI_USB_IO_PROTOCOL
*UsbIo
;
67 extern USB_MASS_TRANSPORT mUsbCbi0Transport
;
68 extern USB_MASS_TRANSPORT mUsbCbi1Transport
;