]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/Atapi.h
MdePkg: Add Eject/Read12/Write12 cmds to Atapi.h
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Atapi.h
index 0deb22b4db9244bfff7d1a305657ba0a1d848b18..3d6e5120713baa2134b67ff012ca06bc6e6ab3de 100644 (file)
@@ -2,7 +2,7 @@
   This file contains just some basic definitions that are needed by drivers\r
   that dealing with ATA/ATAPI interface.\r
 \r
-Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -472,6 +472,18 @@ typedef union {
 #define ATA_CMD_READ_CAPACITY               0x25   ///< defined in ATAPI Removable Rewritable Media Devcies\r
 #define ATA_CMD_READ_10                     0x28   ///< defined in ATAPI Removable Rewritable Media Devcies\r
 #define ATA_CMD_WRITE_10                    0x2A   ///< defined in ATAPI Removable Rewritable Media Devcies\r
+#define ATA_CMD_READ_12                     0xA8   ///< defined in ATAPI Removable Rewritable Media Devcies\r
+#define ATA_CMD_WRITE_12                    0xAA   ///< defined in ATAPI Removable Rewritable Media Devcies\r
+#define ATA_CMD_START_STOP_UNIT             0x1B   ///< defined in ATAPI Removable Rewritable Media Devcies\r
+///\r
+/// Start/Stop and Eject Operations\r
+///\r
+///@{\r
+#define   ATA_CMD_SUBOP_STOP_DISC           0x00   ///< Stop the Disc\r
+#define   ATA_CMD_SUBOP_START_DISC          0x01   ///< Start the Disc and acquire the format type\r
+#define   ATA_CMD_SUBOP_EJECT_DISC          0x02   ///< Eject the Disc if possible\r
+#define   ATA_CMD_SUBOP_CLOSE_TRAY          0x03   ///< Load the Disc (Close Tray)\r
+///@}\r
 \r
 //\r
 // ATA Commands Code\r