]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Protocol/UsbAtapi/UsbAtapi.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Protocol / UsbAtapi / UsbAtapi.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 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 UsbAtapi.h\r
15 \r
16Abstract:\r
17\r
18 EFI Atapi Protocol definition.\r
19\r
20Revision 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
7ccf38a3 49 { 0x2B2F68DA, 0x0CD2, 0x44cf, {0x8E, 0x8B, 0xBB, 0xA2, 0x0B, 0x1B, 0x5B, 0x75} }\r
3eb9473e 50\r
51EFI_FORWARD_DECLARATION (EFI_USB_ATAPI_PROTOCOL);\r
52\r
53typedef\r
54EFI_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
65typedef\r
66EFI_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
9c092841 75struct _EFI_USB_ATAPI_PROTOCOL {\r
3eb9473e 76 EFI_USB_ATAPI_PACKET_CMD UsbAtapiPacketCmd;\r
77 EFI_USB_MASS_STORAGE_RESET UsbAtapiReset;\r
78 UINT32 CommandProtocol;\r
9c092841 79};\r
3eb9473e 80\r
81extern EFI_GUID gEfiUsbAtapiProtocolGuid;\r
82\r
83#endif\r