bzr branch
http://suren.me/webbzr/alps/pcitool
47
by Suren A. Chilingaryan
Support FIFO reading/writting, code restructurization, few fixes |
1 |
#ifndef _PCILIB_REGISTER_H
|
2 |
#define _PCILIB_REGISTER_H
|
|
3 |
||
4 |
#include "pcilib.h" |
|
5 |
||
6 |
struct pcilib_protocol_description_s { |
|
54
by Suren A. Chilingaryan
Support dynamic registers, support register offsets and multiregisters (bitmasks), list NWL DMA registers |
7 |
int (*read)(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t *value); |
8 |
int (*write)(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t value); |
|
47
by Suren A. Chilingaryan
Support FIFO reading/writting, code restructurization, few fixes |
9 |
};
|
10 |
||
54
by Suren A. Chilingaryan
Support dynamic registers, support register offsets and multiregisters (bitmasks), list NWL DMA registers |
11 |
// we don't copy strings, they should be statically allocated
|
12 |
int pcilib_add_registers(pcilib_t *ctx, size_t n, pcilib_register_description_t *registers); |
|
13 |
||
47
by Suren A. Chilingaryan
Support FIFO reading/writting, code restructurization, few fixes |
14 |
#endif /* _PCILIB_REGISTER_H */ |