/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/bank.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-05-02 12:45:42 UTC
  • Revision ID: csa@suren.me-20150502124542-u57tbtwoix0qfhb8
Include version information in all API descriptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
typedef struct pcilib_register_bank_context_s pcilib_register_bank_context_t;
26
26
 
27
27
typedef struct {
 
28
    pcilib_version_t version;
 
29
 
28
30
    pcilib_register_bank_context_t *(*init)(pcilib_t *ctx, pcilib_register_bank_t bank, const char *model, const void *args);                   /**< Optional API call to initialize bank context */
29
31
    void (*free)(pcilib_register_bank_context_t *ctx);                                                                                          /**< Optional API call to cleanup bank context */
30
32
    int (*read)(pcilib_t *pcilib, pcilib_register_bank_context_t *ctx, pcilib_register_addr_t addr, pcilib_register_value_t *value);            /**< Read from register, mandatory for RO/RW registers */