Rename usbatapi.h to UsbAtapi.h
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 17 Sep 2007 02:35:15 +0000 (02:35 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 17 Sep 2007 02:35:15 +0000 (02:35 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3857 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Include/Protocol/UsbAtapi.h [new file with mode: 0644]

diff --git a/MdeModulePkg/Include/Protocol/UsbAtapi.h b/MdeModulePkg/Include/Protocol/UsbAtapi.h
new file mode 100644 (file)
index 0000000..daa0529
--- /dev/null
@@ -0,0 +1,83 @@
+/*++\r
+\r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+Module Name:\r
+\r
+    UsbAtapi.h\r
+\r
+Abstract:\r
+\r
+    EFI Atapi Protocol definition.\r
+\r
+Revision History\r
+\r
+--*/\r
+\r
+#ifndef __EFI_USB_ATAPI_H__\r
+#define __EFI_USB_ATAPI_H__\r
+\r
+//\r
+// Transfer protocol types\r
+//\r
+#define BOT    0x50\r
+#define CBI0  0x00\r
+#define CBI1  0x01\r
+\r
+//\r
+// SubClass Code (defines command set)\r
+//\r
+#define EFI_USB_SUBCLASS_RBC            0x01\r
+#define EFI_USB_SUBCLASS_ATAPI          0x02\r
+#define EFI_USB_SUBCLASS_QIC_157        0x03\r
+#define EFI_USB_SUBCLASS_UFI            0x04\r
+#define EFI_USB_SUBCLASS_SFF_8070i      0x05\r
+#define EFI_USB_SUBCLASS_SCSI           0x06\r
+#define EFI_USB_SUBCLASS_RESERVED_LOW   0x07\r
+#define EFI_USB_SUBCLASS_RESERVED_HIGH  0xff\r
+//\r
+// Global GUID for transfer protocol interface\r
+//\r
+#define EFI_USB_ATAPI_PROTOCOL_GUID \\r
+    { 0x2B2F68DA, 0x0CD2, 0x44cf, {0x8E, 0x8B, 0xBB, 0xA2, 0x0B, 0x1B, 0x5B, 0x75 } }\r
+\r
+typedef struct _EFI_USB_ATAPI_PROTOCOL EFI_USB_ATAPI_PROTOCOL;\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_USB_ATAPI_PACKET_CMD) (\r
+  IN EFI_USB_ATAPI_PROTOCOL  *This,\r
+  IN  VOID                            *Command,\r
+  IN  UINT8                            CommandSize,\r
+  IN  VOID                            *DataBuffer,\r
+  IN  UINT32                          BufferLength,\r
+  IN  EFI_USB_DATA_DIRECTION          Direction,\r
+  IN  UINT16                          TimeOutInMilliSeconds\r
+);\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_USB_MASS_STORAGE_RESET) (\r
+  IN EFI_USB_ATAPI_PROTOCOL  *This,\r
+  IN  BOOLEAN                         ExtendedVerification\r
+);\r
+\r
+//\r
+//  Protocol Interface Structure\r
+//\r
+struct _EFI_USB_ATAPI_PROTOCOL {\r
+  EFI_USB_ATAPI_PACKET_CMD        UsbAtapiPacketCmd;\r
+  EFI_USB_MASS_STORAGE_RESET      UsbAtapiReset;\r
+  UINT32                          CommandProtocol;\r
+};\r
+\r
+extern EFI_GUID gEfiUsbAtapiProtocolGuid;\r
+\r
+#endif\r