/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/bar.h

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-02 04:47:04 UTC
  • Revision ID: csa@suren.me-20160302044704-wncsxtf6sx0r0tps
Documentation update

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 */
73
73
char *pcilib_resolve_data_space(pcilib_t *ctx, uintptr_t addr, size_t *size);
74
74
 
 
75
/**
 
76
 * Return information about the specified BAR or NULL if BAR is not present in hardware
 
77
 * @param[in,out] ctx   - pcilib context
 
78
 * @param[in] bar       - the PCI BAR number (numbered from 0)
 
79
 * @return              - pointer to structure describing the specified BAR or NULL in case of error
 
80
 */
75
81
const pcilib_bar_info_t *pcilib_get_bar_info(pcilib_t *ctx, pcilib_bar_t bar);
 
82
 
 
83
/**
 
84
 * Return a list of BAR memory regions available in the hardware. 
 
85
 * The list is terminated by a dummy BAR description with 0 size.
 
86
 *
 
87
 * @param[in,out] ctx   - pcilib context
 
88
 * @return              - pointer to structure describing the BARs or NULL in case of error
 
89
 */
76
90
const pcilib_bar_info_t *pcilib_get_bar_list(pcilib_t *ctx);
77
91
 
78
92