summaryrefslogtreecommitdiffstats
path: root/pci.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-09 14:53:05 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-09 14:53:05 +0100
commitb0596cb0f01f885153abffaecfa248920cb8658b (patch)
tree82c024c381a2dfdac3b4d98c9d1251be16a15da2 /pci.h
parent934bcc133abf774947070492a5f31677c9400c0d (diff)
downloadipecamera-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pci.h b/pci.h
index c4b2298..9625e72 100644
--- a/pci.h
+++ b/pci.h
@@ -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);