/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/pci.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-11-19 01:21:30 UTC
  • Revision ID: csa@suren.me-20151119012130-e7qfp7563fqxqhiy
Driver versioning

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    int handle;                                                                         /**< file handle of device */
49
49
    
50
50
    uintptr_t page_mask;                                                                /**< Selects bits which define offset within the page */
 
51
    pcilib_driver_version_t driver_version;                                             /**< Version reported by the driver */
51
52
    pcilib_board_info_t board_info;                                                     /**< The mandatory information about board as defined by PCI specification */
52
53
    pcilib_pcie_link_info_t link_info;                                                  /**< Infomation about PCIe connection */
53
54
    char *bar_space[PCILIB_MAX_BARS];                                                   /**< Pointers to the mapped BARs in virtual address space */
112
113
#endif
113
114
 
114
115
pcilib_context_t *pcilib_get_implementation_context(pcilib_t *ctx);
 
116
 
 
117
const pcilib_driver_version_t *pcilib_get_driver_version(pcilib_t *ctx);
115
118
const pcilib_board_info_t *pcilib_get_board_info(pcilib_t *ctx);
116
119
const pcilib_pcie_link_info_t *pcilib_get_pcie_link_info(pcilib_t *ctx);
 
120
int pcilib_get_device_state(pcilib_t *ctx, pcilib_device_state_t *state);
 
121
 
117
122
 
118
123
int pcilib_map_register_space(pcilib_t *ctx);
119
124
int pcilib_map_data_space(pcilib_t *ctx, uintptr_t addr);