summaryrefslogtreecommitdiffstats
path: root/pcilib/pci.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-01 18:53:29 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-01 18:53:29 +0100
commitd85316d3201bfda47efae12ff824ecf68835020e (patch)
tree63777d6576ce565734a593cd065287c034c69dd9 /pcilib/pci.h
parent7a4cc129345545be4f326b62d266809c4db9105e (diff)
downloadpcitool-d85316d3201bfda47efae12ff824ecf68835020e.tar.gz
pcitool-d85316d3201bfda47efae12ff824ecf68835020e.tar.bz2
pcitool-d85316d3201bfda47efae12ff824ecf68835020e.tar.xz
pcitool-d85316d3201bfda47efae12ff824ecf68835020e.zip
Detect page mask before any kmem operations (locks, softregs, etc.)
Diffstat (limited to 'pcilib/pci.h')
-rw-r--r--pcilib/pci.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pcilib/pci.h b/pcilib/pci.h
index 43de485..172a6fc 100644
--- a/pcilib/pci.h
+++ b/pcilib/pci.h
@@ -46,9 +46,11 @@ typedef struct {
struct pcilib_s {
int handle; /**< file handle of device */
-
- uintptr_t page_mask; /**< Selects bits which define offset within the page */
+
pcilib_driver_version_t driver_version; /**< Version reported by the driver */
+
+ uintptr_t page_mask; /**< Selects bits which define offset within the page */
+ int board_info_ready; /**< Flag indicating if board info is already requested and populated */
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 */