1 | /** @file
|
---|
2 | ATA ATAPI Policy protocol is produced by platform and consumed by AtaAtapiPassThruDxe
|
---|
3 | driver.
|
---|
4 |
|
---|
5 | Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 | #ifndef __ATA_ATAPI_POLICY_H__
|
---|
10 | #define __ATA_ATAPI_POLICY_H__
|
---|
11 |
|
---|
12 | #define EDKII_ATA_ATAPI_POLICY_PROTOCOL_GUID \
|
---|
13 | { \
|
---|
14 | 0xe59cd769, 0x5083, 0x4f26,{ 0x90, 0x94, 0x6c, 0x91, 0x9f, 0x91, 0x6c, 0x4e } \
|
---|
15 | }
|
---|
16 |
|
---|
17 | typedef struct {
|
---|
18 | ///
|
---|
19 | /// Protocol version.
|
---|
20 | ///
|
---|
21 | UINT32 Version;
|
---|
22 |
|
---|
23 | ///
|
---|
24 | /// 0: Disable Power-up in Standby;
|
---|
25 | /// 1: Enable Power-up in Standby;
|
---|
26 | /// others: Since PUIS setting is non-volatile, platform can use other value than 0/1 to keep hardware PUIS setting.
|
---|
27 | ///
|
---|
28 | UINT8 PuisEnable;
|
---|
29 |
|
---|
30 | ///
|
---|
31 | /// 0: Disable Device Sleep;
|
---|
32 | /// 1: Enable Device Sleep;
|
---|
33 | /// others: Ignored.
|
---|
34 | ///
|
---|
35 | UINT8 DeviceSleepEnable;
|
---|
36 |
|
---|
37 | ///
|
---|
38 | /// 0: Disable Aggressive Device Sleep;
|
---|
39 | /// 1: Enable Aggressive Device Sleep;
|
---|
40 | /// others: Ignored.
|
---|
41 | ///
|
---|
42 | UINT8 AggressiveDeviceSleepEnable;
|
---|
43 |
|
---|
44 | UINT8 Reserved;
|
---|
45 | } EDKII_ATA_ATAPI_POLICY_PROTOCOL;
|
---|
46 |
|
---|
47 | #define EDKII_ATA_ATAPI_POLICY_VERSION 0x00010000
|
---|
48 |
|
---|
49 |
|
---|
50 | extern EFI_GUID gEdkiiAtaAtapiPolicyProtocolGuid;
|
---|
51 |
|
---|
52 | #endif
|
---|
53 |
|
---|