hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/** @file
  Espi policy
 
  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _ESPI_CONFIG_H_
#define _ESPI_CONFIG_H_
 
#define ESPI_CONFIG_REVISION 2
extern EFI_GUID gEspiConfigGuid;
 
#pragma pack (push,1)
 
/**
  This structure contains the policies which are related to ESPI.
 
  <b>Revision 1</b>:
  - Initial revision
  <b>Revision 2</b>:
  - Added LockLinkConfiguration field to config block
**/
typedef struct {
  CONFIG_BLOCK_HEADER   Header;                   ///< Config Block Header
  /**
    LPC (eSPI) Memory Range Decode Enable. When TRUE, then the range
    specified in PCLGMR[31:16] is enabled for decoding to LPC (eSPI).
    <b>0: FALSE</b>, 1: TRUE
  **/
  UINT32    LgmrEnable            :  1;
  /**
    eSPI Master and Slave BME settings.
    When TRUE, then the BME bit enabled in eSPI Master and Slave.
    0: FALSE, <b>1: TRUE </b>
  **/
  UINT32    BmeMasterSlaveEnabled :  1;
  /**
    Master HOST_C10 (Virtual Wire) to Slave Enable (VWHC10OE)
    <b>0b: Disable HOST_C10 reporting (HOST_C10 indication from PMC is ignored)</b>
    1b: Enable HOST_C10 reporting to Slave via eSPI Virtual Wire (upon receiving a HOST_C10 indication from PMC)
  **/
  UINT32    HostC10ReportEnable   :  1;
  /**
    eSPI Link Configuration Lock (SBLCL)
    If set to TRUE then communication through SET_CONFIG/GET_CONFIG
    to eSPI slaves addresses from range 0x0 - 0x7FF
    <b>1: TRUE</b>, 0: FALSE
  **/
  UINT32    LockLinkConfiguration :  1;
  /**
   Hardware Autonomous Enable (HAE)
   If set to TRUE, then the IP may request a PG whenever it is idle
  **/
  UINT32    EspiPmHAE             :  1;
  UINT32    RsvdBits              : 27;     ///< Reserved bits
} PCH_ESPI_CONFIG;
 
#pragma pack (pop)
 
#endif // _ESPI_CONFIG_H_