]>
Commit | Line | Data |
---|---|---|
88f20127 | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006 - 2007, 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 | UsbAtapi.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | EFI Atapi Protocol definition.\r | |
19 | \r | |
20 | Revision History\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef __EFI_USB_ATAPI_H__\r | |
25 | #define __EFI_USB_ATAPI_H__\r | |
26 | \r | |
27 | //\r | |
28 | // Transfer protocol types\r | |
29 | //\r | |
30 | #define BOT 0x50\r | |
31 | #define CBI0 0x00\r | |
32 | #define CBI1 0x01\r | |
33 | \r | |
34 | //\r | |
35 | // SubClass Code (defines command set)\r | |
36 | //\r | |
37 | #define EFI_USB_SUBCLASS_RBC 0x01\r | |
38 | #define EFI_USB_SUBCLASS_ATAPI 0x02\r | |
39 | #define EFI_USB_SUBCLASS_QIC_157 0x03\r | |
40 | #define EFI_USB_SUBCLASS_UFI 0x04\r | |
41 | #define EFI_USB_SUBCLASS_SFF_8070i 0x05\r | |
42 | #define EFI_USB_SUBCLASS_SCSI 0x06\r | |
43 | #define EFI_USB_SUBCLASS_RESERVED_LOW 0x07\r | |
44 | #define EFI_USB_SUBCLASS_RESERVED_HIGH 0xff\r | |
45 | //\r | |
46 | // Global GUID for transfer protocol interface\r | |
47 | //\r | |
48 | #define EFI_USB_ATAPI_PROTOCOL_GUID \\r | |
49 | { 0x2B2F68DA, 0x0CD2, 0x44cf, {0x8E, 0x8B, 0xBB, 0xA2, 0x0B, 0x1B, 0x5B, 0x75 } }\r | |
50 | \r | |
51 | typedef struct _EFI_USB_ATAPI_PROTOCOL EFI_USB_ATAPI_PROTOCOL;\r | |
52 | \r | |
53 | typedef\r | |
54 | EFI_STATUS\r | |
55 | (EFIAPI *EFI_USB_ATAPI_PACKET_CMD) (\r | |
56 | IN EFI_USB_ATAPI_PROTOCOL *This,\r | |
57 | IN VOID *Command,\r | |
58 | IN UINT8 CommandSize,\r | |
59 | IN VOID *DataBuffer,\r | |
60 | IN UINT32 BufferLength,\r | |
61 | IN EFI_USB_DATA_DIRECTION Direction,\r | |
62 | IN UINT16 TimeOutInMilliSeconds\r | |
63 | );\r | |
64 | \r | |
65 | typedef\r | |
66 | EFI_STATUS\r | |
67 | (EFIAPI *EFI_USB_MASS_STORAGE_RESET) (\r | |
68 | IN EFI_USB_ATAPI_PROTOCOL *This,\r | |
69 | IN BOOLEAN ExtendedVerification\r | |
70 | );\r | |
71 | \r | |
72 | //\r | |
73 | // Protocol Interface Structure\r | |
74 | //\r | |
75 | struct _EFI_USB_ATAPI_PROTOCOL {\r | |
76 | EFI_USB_ATAPI_PACKET_CMD UsbAtapiPacketCmd;\r | |
77 | EFI_USB_MASS_STORAGE_RESET UsbAtapiReset;\r | |
78 | UINT32 CommandProtocol;\r | |
79 | };\r | |
80 | \r | |
81 | extern EFI_GUID gEfiUsbAtapiProtocolGuid;\r | |
82 | \r | |
83 | #endif\r |