summaryrefslogtreecommitdiffstats
path: root/pcilib/bank.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-28 06:09:21 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-28 06:09:21 +0200
commit7356cb9627e941e66dbd90b6cc670a8427c88c5e (patch)
tree2849fd936a65b3bdfbd77968a588ac6338790022 /pcilib/bank.h
parent8d3ad26d8331c43659d0d4e77e8a50fbc3cfc1e4 (diff)
downloadpcitool-7356cb9627e941e66dbd90b6cc670a8427c88c5e.tar.gz
pcitool-7356cb9627e941e66dbd90b6cc670a8427c88c5e.tar.bz2
pcitool-7356cb9627e941e66dbd90b6cc670a8427c88c5e.tar.xz
pcitool-7356cb9627e941e66dbd90b6cc670a8427c88c5e.zip
Initial support for event engines
Diffstat (limited to 'pcilib/bank.h')
-rw-r--r--pcilib/bank.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcilib/bank.h b/pcilib/bank.h
index f673169..995d38f 100644
--- a/pcilib/bank.h
+++ b/pcilib/bank.h
@@ -16,9 +16,6 @@
#define PCILIB_REGISTER_PROTOCOL_DMA 96 /**< First PROTOCOL address to be used by DMA engines */
#define PCILIB_REGISTER_PROTOCOL_DYNAMIC 128 /**< First PROTOCOL address to be used by plugins */
-#define PCILIB_REGISTER_NO_BITS 0
-#define PCILIB_REGISTER_ALL_BITS ((pcilib_register_value_t)-1)
-
typedef uint8_t pcilib_register_bank_t; /**< Type holding the bank position within the field listing register banks in the model */
typedef uint8_t pcilib_register_bank_addr_t; /**< Type holding the bank address number */
typedef uint8_t pcilib_register_protocol_t; /**< Type holding the protocol position within the field listing register protocols in the model */
@@ -89,7 +86,10 @@ struct pcilib_register_bank_context_s {
// we don't copy strings, they should be statically allocated
int pcilib_init_register_banks(pcilib_t *ctx);
void pcilib_free_register_banks(pcilib_t *ctx);
+
int pcilib_add_register_banks(pcilib_t *ctx, size_t n, const pcilib_register_bank_description_t *banks);
+int pcilib_add_register_protocols(pcilib_t *ctx, size_t n, const pcilib_register_protocol_description_t *protocols);
+int pcilib_add_register_ranges(pcilib_t *ctx, size_t n, const pcilib_register_range_t *ranges);
pcilib_register_bank_t pcilib_find_register_bank_by_addr(pcilib_t *ctx, pcilib_register_bank_addr_t bank);
pcilib_register_bank_t pcilib_find_register_bank_by_name(pcilib_t *ctx, const char *bankname);