bzr branch
http://suren.me/webbzr/alps/pcitool
321
by Suren A. Chilingaryan
Support computed (property-based) registers |
1 |
#ifndef _PCILIB_PROTOCOL_PROPERTY_H
|
2 |
#define _PCILIB_PROTOCOL_PROPERTY_H
|
|
3 |
||
4 |
#include "pcilib.h" |
|
5 |
#include "version.h" |
|
6 |
#include "model.h" |
|
7 |
||
8 |
int pcilib_property_registers_read(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t *value); |
|
9 |
int pcilib_property_registers_write(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t value); |
|
10 |
||
11 |
#ifdef _PCILIB_EXPORT_C
|
|
12 |
const pcilib_register_protocol_api_description_t pcilib_property_protocol_api = |
|
332
by Suren A. Chilingaryan
Provide API calls for register and bank address resolution |
13 |
{ PCILIB_VERSION, NULL, NULL, NULL, pcilib_property_registers_read, pcilib_property_registers_write }; |
321
by Suren A. Chilingaryan
Support computed (property-based) registers |
14 |
#endif /* _PCILIB_EXPORT_C */ |
15 |
||
16 |
#endif /* _PCILIB_PROTOCOL_PROPERTY_H */ |