diff options
author | Geoffrey Blake <Geoffrey.Blake@arm.com> | 2014-10-16 05:49:57 -0400 |
---|---|---|
committer | Geoffrey Blake <Geoffrey.Blake@arm.com> | 2014-10-16 05:49:57 -0400 |
commit | 2d2006ddb3df926d79d0d744af81e8260f5c466c (patch) | |
tree | a6ac888662a8f0b1c90827f22c3abd260cba289c /src/dev/pcidev.hh | |
parent | d6732895a5c2e81da47ada339b5d9269c02e5e8b (diff) | |
download | gem5-2d2006ddb3df926d79d0d744af81e8260f5c466c.tar.xz |
dev: refactor pci config space for sysfs scanning
Sysfs on ubuntu scrapes the entire PCI config space
when it discovers a device using 4 byte accesses.
This was not supported by our devices, in particular the NIC
that implemented the extended PCI config space. This change
allows the extended PCI config space to be accessed by
sysfs properly.
Diffstat (limited to 'src/dev/pcidev.hh')
-rw-r--r-- | src/dev/pcidev.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dev/pcidev.hh b/src/dev/pcidev.hh index 4f3dfd219..1c29293a6 100644 --- a/src/dev/pcidev.hh +++ b/src/dev/pcidev.hh @@ -108,12 +108,23 @@ class PciDevice : public DmaDevice * @{ */ const int PMCAP_BASE; + const int PMCAP_ID_OFFSET; + const int PMCAP_PC_OFFSET; + const int PMCAP_PMCS_OFFSET; PMCAP pmcap; const int MSICAP_BASE; MSICAP msicap; const int MSIXCAP_BASE; + const int MSIXCAP_ID_OFFSET; + const int MSIXCAP_MXC_OFFSET; + const int MSIXCAP_MTAB_OFFSET; + const int MSIXCAP_MPBA_OFFSET; + int MSIX_TABLE_OFFSET; + int MSIX_TABLE_END; + int MSIX_PBA_OFFSET; + int MSIX_PBA_END; MSIXCAP msixcap; const int PXCAP_BASE; |