Kaynağa Gözat

[pci] Add definitions for Advanced Error Reporting registers

Signed-off-by: Michael Brown <mcb30@etherboot.org>
tags/v0.9.8
Joshua Oreman 15 yıl önce
ebeveyn
işleme
993f8ba9bc
1 değiştirilmiş dosya ile 27 ekleme ve 0 silme
  1. 27
    0
      src/include/gpxe/pci.h

+ 27
- 0
src/include/gpxe/pci.h Dosyayı Görüntüle

@@ -235,6 +235,33 @@ FILE_LICENCE ( GPL2_ONLY );
235 235
 #define PCI_MSI_DATA_32		8	/* 16 bits of data for 32-bit devices */
236 236
 #define PCI_MSI_DATA_64		12	/* 16 bits of data for 64-bit devices */
237 237
 
238
+/* Advanced Error Reporting */
239
+
240
+#define PCI_ERR_UNCOR_STATUS	4	/* Uncorrectable Error Status */
241
+#define  PCI_ERR_UNC_TRAIN	0x00000001	/* Training */
242
+#define  PCI_ERR_UNC_DLP	0x00000010	/* Data Link Protocol */
243
+#define  PCI_ERR_UNC_POISON_TLP	0x00001000	/* Poisoned TLP */
244
+#define  PCI_ERR_UNC_FCP	0x00002000	/* Flow Control Protocol */
245
+#define  PCI_ERR_UNC_COMP_TIME	0x00004000	/* Completion Timeout */
246
+#define  PCI_ERR_UNC_COMP_ABORT	0x00008000	/* Completer Abort */
247
+#define  PCI_ERR_UNC_UNX_COMP	0x00010000	/* Unexpected Completion */
248
+#define  PCI_ERR_UNC_RX_OVER	0x00020000	/* Receiver Overflow */
249
+#define  PCI_ERR_UNC_MALF_TLP	0x00040000	/* Malformed TLP */
250
+#define  PCI_ERR_UNC_ECRC	0x00080000	/* ECRC Error Status */
251
+#define  PCI_ERR_UNC_UNSUP	0x00100000	/* Unsupported Request */
252
+#define PCI_ERR_UNCOR_MASK	8	/* Uncorrectable Error Mask */
253
+	/* Same bits as above */
254
+#define PCI_ERR_UNCOR_SEVER	12	/* Uncorrectable Error Severity */
255
+	/* Same bits as above */
256
+#define PCI_ERR_COR_STATUS	16	/* Correctable Error Status */
257
+#define  PCI_ERR_COR_RCVR	0x00000001	/* Receiver Error Status */
258
+#define  PCI_ERR_COR_BAD_TLP	0x00000040	/* Bad TLP Status */
259
+#define  PCI_ERR_COR_BAD_DLLP	0x00000080	/* Bad DLLP Status */
260
+#define  PCI_ERR_COR_REP_ROLL	0x00000100	/* REPLAY_NUM Rollover */
261
+#define  PCI_ERR_COR_REP_TIMER	0x00001000	/* Replay Timer Timeout */
262
+#define PCI_ERR_COR_MASK	20	/* Correctable Error Mask */
263
+	/* Same bits as above */
264
+
238 265
 /** A PCI device ID list entry */
239 266
 struct pci_device_id {
240 267
 	/** Name */

Loading…
İptal
Kaydet