diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-11-25 09:32:45 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-11-30 22:13:27 +0000 |
commit | ed18cd56789ff4484028995c17aef232e9cc8e83 (patch) | |
tree | 6f1b770bd22a4a22d9b61e278dd4ccd347eeb2ca /src/include | |
parent | 475cc92b0bfc3158514c5ec816a4d80f86ef51fc (diff) | |
download | ipxe-ed18cd56789ff4484028995c17aef232e9cc8e83.zip ipxe-ed18cd56789ff4484028995c17aef232e9cc8e83.tar.gz ipxe-ed18cd56789ff4484028995c17aef232e9cc8e83.tar.bz2 |
[pci] Add definitions for PCI Express function level reset (FLR)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/pci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h index a841e00..89d9d80 100644 --- a/src/include/ipxe/pci.h +++ b/src/include/ipxe/pci.h @@ -104,6 +104,10 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define PCI_PM_CTRL_PME_ENABLE 0x0100 /**< PME pin enable */ #define PCI_PM_CTRL_PME_STATUS 0x8000 /**< PME pin status */ +/** PCI Express */ +#define PCI_EXP_DEVCTL 0x08 +#define PCI_EXP_DEVCTL_FLR 0x8000 /**< Function level reset */ + /** Uncorrectable error status */ #define PCI_ERR_UNCOR_STATUS 0x04 @@ -128,6 +132,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); ( ( ( (base) & 0xff ) << 16 ) | ( ( (sub) & 0xff ) << 8 ) | \ ( ( (progif) & 0xff) << 0 ) ) +/** PCI Express function level reset delay (in ms) */ +#define PCI_EXP_FLR_DELAY_MS 100 + /** A PCI device ID list entry */ struct pci_device_id { /** Name */ |