summaryrefslogtreecommitdiffstats
path: root/pcilib/pci.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-11-18 03:24:04 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-11-18 03:24:04 +0100
commitec667d49f84c45c261f050313d64f89ce88e4302 (patch)
treec016cba088cc680f5d7d43e06031bfd9b635ae2e /pcilib/pci.h
parent52e32b2c9f0e5ac7cfb31fd2306e6536340955e1 (diff)
downloadpcitool-ec667d49f84c45c261f050313d64f89ce88e4302.tar.gz
pcitool-ec667d49f84c45c261f050313d64f89ce88e4302.tar.bz2
pcitool-ec667d49f84c45c261f050313d64f89ce88e4302.tar.xz
pcitool-ec667d49f84c45c261f050313d64f89ce88e4302.zip
Provide pcilib_get_bar_info & pcilib_get_bar_list API calls, remove obsolete pcilib_resolve_register_address
Diffstat (limited to 'pcilib/pci.h')
-rw-r--r--pcilib/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcilib/pci.h b/pcilib/pci.h
index 1b61f70..50c6c0e 100644
--- a/pcilib/pci.h
+++ b/pcilib/pci.h
@@ -22,6 +22,7 @@
#include "timing.h"
#include "cpu.h"
+#include "bar.h"
#include "pcilib.h"
#include "register.h"
#include "kmem.h"
@@ -50,6 +51,7 @@ struct pcilib_s {
pcilib_board_info_t board_info; /**< The mandatory information about board as defined by PCI specification */
pcilib_pcie_link_info_t link_info; /**< Infomation about PCIe connection */
char *bar_space[PCILIB_MAX_BARS]; /**< Pointers to the mapped BARs in virtual address space */
+ pcilib_bar_info_t bar_info[PCILIB_MAX_BARS + 1]; /**< NULL terminated list of PCI bar descriptions */
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 */