diff options
author | Tim Chu <Tim.Chu@quantatw.com> | 2022-11-01 11:23:19 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-04 19:12:26 +0000 |
commit | 55d11577dbb1b20e1a33732ad84b5a5714ffd3ad (patch) | |
tree | 7a4487b5862e81ffa9b0417a8d9e227a719a2965 | |
parent | e141f358eb1b4386c041ed433e8977c4cdf409c1 (diff) |
include/device/pci_def.h: Add some PCIe DPC/AER definitions
* Add DPC related definitions which are defined in 7.9.14 of PCIe
6.0 spec.
* Add AER related definitions which are defined in 7.8.4 of PCIe
6.0 spec.
Signed-off-by: Tim Chu <Tim.Chu@quantatw.com>
Change-Id: Ifb6722c326ef69ef1bf3b1c2c1d5bc0cb29d7c12
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69106
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
-rw-r--r-- | src/include/device/pci_def.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/device/pci_def.h b/src/include/device/pci_def.h index 64c1ac24b1..39369f82ed 100644 --- a/src/include/device/pci_def.h +++ b/src/include/device/pci_def.h @@ -478,6 +478,7 @@ #define PCI_ERR_UNCOR_STATUS 4 /* Uncorrectable Error Status */ #define PCI_ERR_UNC_TRAIN 0x00000001 /* Training */ #define PCI_ERR_UNC_DLP 0x00000010 /* Data Link Protocol */ +#define PCI_ERR_SURPRISE_DN 0x00000020 /* Surprise Down */ #define PCI_ERR_UNC_POISON_TLP 0x00001000 /* Poisoned TLP */ #define PCI_ERR_UNC_FCP 0x00002000 /* Flow Control Protocol */ #define PCI_ERR_UNC_COMP_TIME 0x00004000 /* Completion Timeout */ @@ -487,6 +488,8 @@ #define PCI_ERR_UNC_MALF_TLP 0x00040000 /* Malformed TLP */ #define PCI_ERR_UNC_ECRC 0x00080000 /* ECRC Error Status */ #define PCI_ERR_UNC_UNSUP 0x00100000 /* Unsupported Request */ +#define PCI_ERR_UNC_INTL_ERR 0x00400000 /* Uncorrectable Internal Error */ +#define PCI_ERR_UNC_POISON_BLK 0x04000000 /* Poisoned TLP Egress Blocked */ #define PCI_ERR_UNCOR_MASK 8 /* Uncorrectable Error Mask */ /* Same bits as above */ #define PCI_ERR_UNCOR_SEVER 12 /* Uncorrectable Error Severity */ @@ -497,6 +500,9 @@ #define PCI_ERR_COR_BAD_DLLP 0x00000080 /* Bad DLLP Status */ #define PCI_ERR_COR_REP_ROLL 0x00000100 /* REPLAY_NUM Rollover */ #define PCI_ERR_COR_REP_TIMER 0x00001000 /* Replay Timer Timeout */ +#define PCI_ERR_COR_ANF 0x00002000 /* Advisory Non-Fatal Error */ +#define PCI_ERR_COR_INTL_ERR 0x00004000 /* Corrected Internal Error */ +#define PCI_ERR_COR_LOG_OVER 0x00008000 /* Header Log Overflow Error */ #define PCI_ERR_COR_MASK 20 /* Correctable Error Mask */ /* Same bits as above */ #define PCI_ERR_CAP 24 /* Advanced Error Capabilities */ @@ -507,10 +513,23 @@ #define PCI_ERR_CAP_ECRC_CHKE 0x00000100 /* ECRC Check Enable */ #define PCI_ERR_HEADER_LOG 28 /* Header Log Register (16 bytes) */ #define PCI_ERR_ROOT_COMMAND 44 /* Root Error Command */ +#define PCI_EXP_ROOT_CERE 0x0001 /* Correctable Error Reporting Enable */ +#define PCI_EXP_ROOT_NFERE 0x0002 /* Non-Fatal Error Reporting Enable */ +#define PCI_EXP_ROOT_FERE 0x0004 /* Fatal Error Reporting Enable */ #define PCI_ERR_ROOT_STATUS 48 #define PCI_ERR_ROOT_COR_SRC 52 #define PCI_ERR_ROOT_SRC 54 +/* DPC Capability Structure */ +#define PCIE_DPC_CAP_ID 0x1d +#define PCIE_DPC_CTL 0x6 +#define DPC_TRIGGER_EN (1 << 1) +#define DPC_INT_EN (1 << 3) +#define DPC_ERR_COR_EN (1 << 4) +#define DPC_POISON_TLP (1 << 5) +#define PCIE_DPC_RP_PIO_MASK 0x10 +#define PCIE_DPC_SEV 0x14 + /* Virtual Channel */ #define PCI_VC_PORT_REG1 4 #define PCI_VC_PORT_REG2 8 |