diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-08-12 20:57:37 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-08-12 20:57:37 +0200 |
commit | 5001621745651443d3825a30a92897cac7f1ec53 (patch) | |
tree | 15522e3620947547a0c57a3b9a97c2729ac6fefb /pcilib/pci.h | |
parent | 55783eb24e983786056f4ba7925aa23fca13c79e (diff) | |
download | pcitool-5001621745651443d3825a30a92897cac7f1ec53.tar.gz pcitool-5001621745651443d3825a30a92897cac7f1ec53.tar.bz2 pcitool-5001621745651443d3825a30a92897cac7f1ec53.tar.xz pcitool-5001621745651443d3825a30a92897cac7f1ec53.zip |
Do not fail if PCI configuration is not fully available to unprivileged user
Diffstat (limited to 'pcilib/pci.h')
-rw-r--r-- | pcilib/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pcilib/pci.h b/pcilib/pci.h index 51bb352..340abd3 100644 --- a/pcilib/pci.h +++ b/pcilib/pci.h @@ -42,6 +42,7 @@ struct pcilib_s { int pci_cfg_space_fd; /**< File descriptor linking to PCI configuration space in sysfs */ uint32_t pci_cfg_space_cache[64]; /**< Cached PCI configuration space */ + size_t pci_cfg_space_size; /**< Size of the cached PCI configuration space, sometimes not fully is available for unpriveledged user */ const uint32_t *pcie_capabilities; /**< PCI Capbility structure (just a pointer at appropriate place in the pci_cfg_space) */ int reg_bar_mapped; /**< Indicates that all BARs used to access registers are mapped */ |