diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-03-09 14:53:05 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-03-09 14:53:05 +0100 |
commit | b0596cb0f01f885153abffaecfa248920cb8658b (patch) | |
tree | 82c024c381a2dfdac3b4d98c9d1251be16a15da2 /pci.h | |
parent | 934bcc133abf774947070492a5f31677c9400c0d (diff) | |
download | ipecamera-b0596cb0f01f885153abffaecfa248920cb8658b.tar.gz ipecamera-b0596cb0f01f885153abffaecfa248920cb8658b.tar.bz2 ipecamera-b0596cb0f01f885153abffaecfa248920cb8658b.tar.xz ipecamera-b0596cb0f01f885153abffaecfa248920cb8658b.zip |
Support writting and reading of register ranges
Diffstat (limited to 'pci.h')
-rw-r--r-- | pci.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -139,9 +139,10 @@ pcilib_register_t pcilib_find_register(pcilib_t *ctx, const char *bank, const ch int pcilib_read(pcilib_t *ctx, pcilib_bar_t bar, uintptr_t addr, size_t size, void *buf); int pcilib_write(pcilib_t *ctx, pcilib_bar_t bar, uintptr_t addr, size_t size, void *buf); +int pcilib_read_register_space(pcilib_t *ctx, const char *bank, pcilib_register_addr_t addr, size_t n, pcilib_register_value_t *buf); +int pcilib_write_register_space(pcilib_t *ctx, const char *bank, pcilib_register_addr_t addr, size_t n, pcilib_register_value_t *buf); int pcilib_read_register_by_id(pcilib_t *ctx, pcilib_register_t reg, pcilib_register_value_t *value); int pcilib_write_register_by_id(pcilib_t *ctx, pcilib_register_t reg, pcilib_register_value_t value); - int pcilib_read_register(pcilib_t *ctx, const char *bank, const char *regname, pcilib_register_value_t *value); int pcilib_write_register(pcilib_t *ctx, const char *bank, const char *regname, pcilib_register_value_t value); |