]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h
Support ICC build .
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMassStorageDxe / UsbMassCbi.h
... / ...
CommitLineData
1/** @file\r
2\r
3Copyright (c) 2007, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 UsbMassCbi.h\r
15\r
16Abstract:\r
17\r
18 Defination for the USB mass storage Control/Bulk/Interrupt transpor.\r
19\r
20Revision History\r
21\r
22\r
23**/\r
24\r
25#ifndef _EFI_USBMASS_CBI_H_\r
26#define _EFI_USBMASS_CBI_H_\r
27\r
28enum {\r
29 USB_CBI_MAX_PACKET_NUM = 16,\r
30 USB_CBI_RESET_CMD_LEN = 12,\r
31\r
32 //\r
33 // Usb Cbi retry C/B/I transport times, set by experience\r
34 //\r
35 USB_CBI_MAX_RETRY = 3,\r
36\r
37 //\r
38 // Usb Cbi wait device reset complete, set by experience\r
39 // \r
40 USB_CBI_RESET_DEVICE_STALL = 50 * USB_MASS_1_MILLISECOND,\r
41\r
42 //\r
43 // Usb Cbi transport timeout, set by experience\r
44 //\r
45 USB_CBI_RESET_DEVICE_TIMEOUT = 1 * USB_MASS_1_SECOND\r
46};\r
47\r
48//\r
49// Put Interface at the first field is to make it easy to get by Context, which\r
50// could be BOT/CBI Protocol instance\r
51//\r
52typedef struct {\r
53 EFI_USB_INTERFACE_DESCRIPTOR Interface;\r
54 EFI_USB_ENDPOINT_DESCRIPTOR *BulkInEndpoint;\r
55 EFI_USB_ENDPOINT_DESCRIPTOR *BulkOutEndpoint;\r
56 EFI_USB_ENDPOINT_DESCRIPTOR *InterruptEndpoint;\r
57 EFI_USB_IO_PROTOCOL *UsbIo;\r
58} USB_CBI_PROTOCOL;\r
59\r
60#pragma pack(1)\r
61typedef struct {\r
62 UINT8 Type;\r
63 UINT8 Value;\r
64} USB_CBI_STATUS;\r
65#pragma pack()\r
66\r
67extern USB_MASS_TRANSPORT mUsbCbi0Transport;\r
68extern USB_MASS_TRANSPORT mUsbCbi1Transport;\r
69#endif\r