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

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-28 04:09:21 UTC
  • Revision ID: csa@suren.me-20150428040921-fjyahuk824lihv1i
Initial support for event engines

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#define PCILIB_REGISTER_PROTOCOL_DMA            96                                      /**< First PROTOCOL address to be used by DMA engines */
17
17
#define PCILIB_REGISTER_PROTOCOL_DYNAMIC        128                                     /**< First PROTOCOL address to be used by plugins */
18
18
 
19
 
#define PCILIB_REGISTER_NO_BITS                 0
20
 
#define PCILIB_REGISTER_ALL_BITS                ((pcilib_register_value_t)-1)
21
 
 
22
19
typedef uint8_t pcilib_register_bank_t;                                         /**< Type holding the bank position within the field listing register banks in the model */
23
20
typedef uint8_t pcilib_register_bank_addr_t;                                    /**< Type holding the bank address number */
24
21
typedef uint8_t pcilib_register_protocol_t;                                     /**< Type holding the protocol position within the field listing register protocols in the model */
89
86
    // we don't copy strings, they should be statically allocated
90
87
int pcilib_init_register_banks(pcilib_t *ctx);
91
88
void pcilib_free_register_banks(pcilib_t *ctx);
 
89
 
92
90
int pcilib_add_register_banks(pcilib_t *ctx, size_t n, const pcilib_register_bank_description_t *banks);
 
91
int pcilib_add_register_protocols(pcilib_t *ctx, size_t n, const pcilib_register_protocol_description_t *protocols);
 
92
int pcilib_add_register_ranges(pcilib_t *ctx, size_t n, const pcilib_register_range_t *ranges);
93
93
 
94
94
pcilib_register_bank_t pcilib_find_register_bank_by_addr(pcilib_t *ctx, pcilib_register_bank_addr_t bank);
95
95
pcilib_register_bank_t pcilib_find_register_bank_by_name(pcilib_t *ctx, const char *bankname);