]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Add AtaAtapiPolicy protocol definition
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 29 May 2018 05:07:32 +0000 (13:07 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 8 Jun 2018 09:46:45 +0000 (17:46 +0800)
The patch adds AtaAtapiPolicy protocol which is produced by platform
and consumed by AtaAtapiPassThruDxe driver.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Include/Protocol/AtaAtapiPolicy.h [new file with mode: 0644]
MdeModulePkg/MdeModulePkg.dec

diff --git a/MdeModulePkg/Include/Protocol/AtaAtapiPolicy.h b/MdeModulePkg/Include/Protocol/AtaAtapiPolicy.h
new file mode 100644 (file)
index 0000000..12657d7
--- /dev/null
@@ -0,0 +1,59 @@
+/** @file\r
+  ATA ATAPI Policy protocol is produced by platform and consumed by AtaAtapiPassThruDxe\r
+  driver.\r
+\r
+  Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
+  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
+**/\r
+#ifndef __ATA_ATAPI_POLICY_H__\r
+#define __ATA_ATAPI_POLICY_H__\r
+\r
+#define EDKII_ATA_ATAPI_POLICY_PROTOCOL_GUID \\r
+  { \\r
+    0xe59cd769, 0x5083, 0x4f26,{ 0x90, 0x94, 0x6c, 0x91, 0x9f, 0x91, 0x6c, 0x4e } \\r
+  }\r
+\r
+typedef struct {\r
+  ///\r
+  /// Protocol version.\r
+  ///\r
+  UINT32  Version;\r
+\r
+  ///\r
+  /// 0: Disable Power-up in Standby;\r
+  /// 1: Enable Power-up in Standby;\r
+  /// others: Since PUIS setting is non-volatile, platform can use other value than 0/1 to keep hardware PUIS setting.\r
+  ///\r
+  UINT8   PuisEnable;\r
+\r
+  ///\r
+  /// 0: Disable Device Sleep;\r
+  /// 1: Enable Device Sleep;\r
+  /// others: Ignored.\r
+  ///\r
+  UINT8   DeviceSleepEnable;\r
+\r
+  ///\r
+  /// 0: Disable Aggressive Device Sleep;\r
+  /// 1: Enable Aggressive Device Sleep;\r
+  /// others: Ignored.\r
+  ///\r
+  UINT8   AggressiveDeviceSleepEnable;\r
+\r
+  UINT8   Reserved;\r
+} EDKII_ATA_ATAPI_POLICY_PROTOCOL;\r
+\r
+#define EDKII_ATA_ATAPI_POLICY_VERSION 0x00010000\r
+\r
+\r
+extern EFI_GUID gEdkiiAtaAtapiPolicyProtocolGuid;\r
+\r
+#endif\r
+\r
index 97ec87e1cf30f574ffedc0d8fc0839b7936b76bb..3802b6e0b86a781b3e99903e472599e351addb07 100644 (file)
   ## Include/Protocol/FirmwareManagementProgress.h\r
   gEdkiiFirmwareManagementProgressProtocolGuid = { 0x1849bda2, 0x6952, 0x4e86, { 0xa1, 0xdb, 0x55, 0x9a, 0x3c, 0x47, 0x9d, 0xf1 } }\r
 \r
   ## Include/Protocol/FirmwareManagementProgress.h\r
   gEdkiiFirmwareManagementProgressProtocolGuid = { 0x1849bda2, 0x6952, 0x4e86, { 0xa1, 0xdb, 0x55, 0x9a, 0x3c, 0x47, 0x9d, 0xf1 } }\r
 \r
+  ## Include/Protocol/AtaAtapiPolicy.h\r
+  gEdkiiAtaAtapiPolicyProtocolGuid = { 0xe59cd769, 0x5083, 0x4f26,{ 0x90, 0x94, 0x6c, 0x91, 0x9f, 0x91, 0x6c, 0x4e } }\r
 #\r
 # [Error.gEfiMdeModulePkgTokenSpaceGuid]\r
 #   0x80000001 | Invalid value provided.\r
 #\r
 # [Error.gEfiMdeModulePkgTokenSpaceGuid]\r
 #   0x80000001 | Invalid value provided.\r