diff options
author | Furquan Shaikh <furquan@google.com> | 2020-05-11 12:06:25 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-05-12 20:04:55 +0000 |
commit | f3ac812e022f70d54dfcb94510eafa3d14462627 (patch) | |
tree | 8a469b6d48bb6e9323c7df23a8e7a42a813e760a | |
parent | 62d13437e25721016f991a7314386a1e6bbbe778 (diff) | |
download | coreboot-f3ac812e022f70d54dfcb94510eafa3d14462627.tar.xz |
espi: Add definitions for eSPI VW index messsages
This change adds eSPI VW index message definitions as per per Enhanced
Serial Peripheral Interface Base Specification (document #
327432-004 Revision 1.0) Chapter 5 "Transaction Layer".
BUG=b:153675913
Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: I5c04d4de222e16d3b8e2a5fb2fc4107ea278a35b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41252
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/include/espi.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/espi.h b/src/include/espi.h index b1a51d9584..171b1b8831 100644 --- a/src/include/espi.h +++ b/src/include/espi.h @@ -189,4 +189,41 @@ #define ESPI_SLAVE_CHANNEL_READY (1 << 1) #define ESPI_SLAVE_CHANNEL_ENABLE (1 << 0) +/* ESPI Slave Registers (Document # 327432-004 Revision 1.0 Chapter 5) */ +#define ESPI_VW_INDEX_INTERRUPT_EVENT_0 0 /* Interrupt lines 0 - 127 */ +#define ESPI_VW_INDEX_INTERRUPT_EVENT_1 1 /* Interrupt lines 128-255 */ +#define ESPI_VW_INTERRUPT_LEVEL_HIGH (1 << 7) +#define ESPI_VW_INTERRUPT_LEVEL_LOW (0 << 7) + +#define ESPI_VW_INDEX_SYSTEM_EVENT_2 2 +#define ESPI_VW_SLP_S5 2 +#define ESPI_VW_SLP_S4 1 +#define ESPI_VW_SLP_S3 0 +#define ESPI_VW_INDEX_SYSTEM_EVENT_3 3 +#define ESPI_VW_OOB_RST_WARN 2 +#define ESPI_VW_PLTRST 1 +#define ESPI_VW_SUS_STAT 0 +#define ESPI_VW_INDEX_SYSTEM_EVENT_4 4 +#define ESPI_VW_PME 3 +#define ESPI_VW_WAKE 2 +#define ESPI_VW_OOB_RST_ACK 0 +#define ESPI_VW_INDEX_SYSTEM_EVENT_5 5 +#define ESPI_VW_SLAVE_BOOT_LOAD_STATUS 3 +#define ESPI_VW_ERROR_NON_FATAL 2 +#define ESPI_VW_ERROR_FATAL 1 +#define ESPI_VW_SLV_BOOT_LOAD_DONE 0 +#define ESPI_VW_INDEX_SYSTEM_EVENT_6 6 +#define ESPI_VW_HOST_RST_ACK 3 +#define ESPI_VW_RCIN 2 +#define ESPI_VW_SMI 1 +#define ESPI_VW_SCI 0 +#define ESPI_VW_INDEX_SYSTEM_EVENT_7 7 +#define ESPI_VW_NMIOUT 2 +#define ESPI_VW_SMIOUT 1 +#define ESPI_VW_HOST_RST_WARN 0 + +#define ESPI_VW_VALID(x) (1 << ((x) + 4)) +#define ESPI_VW_VALUE(x, v) ((v) << (x)) +#define ESPI_VW_SIGNAL_HIGH(x) (ESPI_VW_VALID(x) | ESPI_VW_VALUE(1, x)) +#define ESPI_VW_SIGNAL_LOW(x) (ESPI_VW_VALID(x) | ESPI_VW_VALUE(0, x)) #endif /* __ESPI_H__ */ |