/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 protocols/default.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-11-18 02:25:02 UTC
  • Revision ID: csa@suren.me-20151118022502-2yu6oagexn3048jq
Provide API calls for register and bank address resolution

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include "version.h"
6
6
#include "model.h"
7
7
 
 
8
uintptr_t pcilib_default_resolve(pcilib_t *ctx, pcilib_register_bank_context_t *bank_ctx, pcilib_address_resolution_flags_t flags, pcilib_register_addr_t addr);
8
9
int pcilib_default_read(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t *value);
9
10
int pcilib_default_write(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t value);
10
11
 
11
12
#ifdef _PCILIB_EXPORT_C
12
13
const pcilib_register_protocol_api_description_t pcilib_default_protocol_api =
13
 
    { PCILIB_VERSION, NULL, NULL, pcilib_default_read, pcilib_default_write };
 
14
    { PCILIB_VERSION, NULL, NULL, pcilib_default_resolve, pcilib_default_read, pcilib_default_write };
14
15
#endif /* _PCILIB_EXPORT_C */
15
16
 
16
17
#endif /* _PCILIB_PROTOCOL_DEFAULT_H */