]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | BOT.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | --*/\r | |
19 | \r | |
20 | #ifndef _BOT_H\r | |
21 | #define _BOT_H\r | |
22 | \r | |
23 | \r | |
f0ec738d | 24 | #include <IndustryStandard/Usb.h>\r |
878ddf1f | 25 | \r |
26 | #pragma pack(1)\r | |
27 | //\r | |
28 | // Bulk Only device protocol\r | |
29 | //\r | |
30 | typedef struct {\r | |
31 | UINT32 dCBWSignature;\r | |
32 | UINT32 dCBWTag;\r | |
33 | UINT32 dCBWDataTransferLength;\r | |
34 | UINT8 bmCBWFlags;\r | |
35 | UINT8 bCBWLUN;\r | |
36 | UINT8 bCBWCBLength;\r | |
37 | UINT8 CBWCB[16];\r | |
38 | } CBW;\r | |
39 | \r | |
40 | typedef struct {\r | |
41 | UINT32 dCSWSignature;\r | |
42 | UINT32 dCSWTag;\r | |
43 | UINT32 dCSWDataResidue;\r | |
44 | UINT8 bCSWStatus;\r | |
45 | } CSW;\r | |
46 | \r | |
47 | #pragma pack()\r | |
48 | \r | |
49 | #define USB_BOT_DEVICE_SIGNATURE EFI_SIGNATURE_32 ('u', 'b', 'o', 't')\r | |
50 | \r | |
51 | typedef struct {\r | |
52 | UINTN Signature;\r | |
53 | EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r | |
54 | EFI_USB_ATAPI_PROTOCOL UsbAtapiProtocol;\r | |
55 | EFI_USB_IO_PROTOCOL *UsbIo;\r | |
56 | EFI_USB_INTERFACE_DESCRIPTOR *InterfaceDescriptor;\r | |
57 | EFI_USB_ENDPOINT_DESCRIPTOR *BulkInEndpointDescriptor;\r | |
58 | EFI_USB_ENDPOINT_DESCRIPTOR *BulkOutEndpointDescriptor;\r | |
59 | EFI_UNICODE_STRING_TABLE *ControllerNameTable;\r | |
60 | } USB_BOT_DEVICE;\r | |
61 | \r | |
62 | #define USB_BOT_DEVICE_FROM_THIS(a) \\r | |
63 | CR(a, USB_BOT_DEVICE, UsbAtapiProtocol, USB_BOT_DEVICE_SIGNATURE)\r | |
64 | \r | |
65 | //\r | |
66 | // Status code, see Usb Bot device spec\r | |
67 | //\r | |
68 | #define CSWSIG 0x53425355\r | |
69 | #define CBWSIG 0x43425355\r | |
70 | \r | |
71 | //\r | |
72 | // Global Variables\r | |
73 | //\r | |
74 | extern EFI_DRIVER_BINDING_PROTOCOL gUsbBotDriverBinding;\r | |
75 | extern EFI_COMPONENT_NAME_PROTOCOL gUsbBotComponentName;\r | |
76 | extern EFI_GUID gUsbBotDriverGuid;\r | |
77 | \r | |
78 | #endif\r |