From e237e7ae9fc23f32a25040d49cc9a16f2a7f3b4c Mon Sep 17 00:00:00 2001 From: vanjeff Date: Wed, 11 Jul 2007 08:47:37 +0000 Subject: Import Usb/UsbBusDxe and Usb/UsbMassStorageDxe into MdeModulePkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3193 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h (limited to 'MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h') diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h new file mode 100644 index 0000000000..d4a9f700ad --- /dev/null +++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h @@ -0,0 +1,64 @@ +/** @file + +Copyright (c) 2007, 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 +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + UsbMassCbi.h + +Abstract: + + Defination for the USB mass storage Control/Bulk/Interrupt transpor. + +Revision History + + +**/ + +#ifndef _EFI_USBMASS_CBI_H_ +#define _EFI_USBMASS_CBI_H_ + +enum { + USB_CBI_MAX_PACKET_NUM = 16, + USB_CBI_RESET_CMD_LEN = 12, + + // + // Usb CBI retry times + // + USB_CBI_MAX_RETRY = 3, + + // + // Usb Cbi transfer timeout + // + USB_CBI_RESET_TIMEOUT = 1 * USB_MASS_STALL_1_S, +}; + +// +// Put Interface at the first field is to make it easy to get by Context, which +// could be BOT/CBI Protocol instance +// +typedef struct { + EFI_USB_INTERFACE_DESCRIPTOR Interface; + EFI_USB_ENDPOINT_DESCRIPTOR *BulkInEndpoint; + EFI_USB_ENDPOINT_DESCRIPTOR *BulkOutEndpoint; + EFI_USB_ENDPOINT_DESCRIPTOR *InterruptEndpoint; + EFI_USB_IO_PROTOCOL *UsbIo; +} USB_CBI_PROTOCOL; + +#pragma pack(1) +typedef struct { + UINT8 Type; + UINT8 Value; +} USB_CBI_STATUS; +#pragma pack() + +extern USB_MASS_TRANSPORT mUsbCbi0Transport; +extern USB_MASS_TRANSPORT mUsbCbi1Transport; +#endif -- cgit v1.2.3