summaryrefslogtreecommitdiffstats
path: root/pcilib/bank.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-02 14:45:42 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-02 14:45:42 +0200
commit5387063faa68d774e2f586e6d8284520f3cde12f (patch)
treec849a07034fe0ba9880fdf8db27972925f93c75a /pcilib/bank.h
parent92b8fe6e949f08308d237e87441e066a19a9eda6 (diff)
downloadpcitool-5387063faa68d774e2f586e6d8284520f3cde12f.tar.gz
pcitool-5387063faa68d774e2f586e6d8284520f3cde12f.tar.bz2
pcitool-5387063faa68d774e2f586e6d8284520f3cde12f.tar.xz
pcitool-5387063faa68d774e2f586e6d8284520f3cde12f.zip
Include version information in all API descriptions
Diffstat (limited to 'pcilib/bank.h')
-rw-r--r--pcilib/bank.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcilib/bank.h b/pcilib/bank.h
index 995d38f..943c389 100644
--- a/pcilib/bank.h
+++ b/pcilib/bank.h
@@ -25,6 +25,8 @@ typedef uint8_t pcilib_register_protocol_addr_t; /**< Type holding the protoc
typedef struct pcilib_register_bank_context_s pcilib_register_bank_context_t;
typedef struct {
+ pcilib_version_t version;
+
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 */
void (*free)(pcilib_register_bank_context_t *ctx); /**< Optional API call to cleanup bank context */
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 */