summaryrefslogtreecommitdiffstats
path: root/register.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-06 02:10:24 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-06 02:10:24 +0200
commitd98d86bd6b0d861462698e5bcfc8f712f8e350c7 (patch)
tree54ca00b323495f7b36f7eef479e7d1c0c2e6905a /register.h
parent9b9e573479732acb1b9dc9fd4d6444918b5b5a5b (diff)
downloadipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.tar.gz
ipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.tar.bz2
ipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.tar.xz
ipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.zip
Support FIFO reading/writting, code restructurization, few fixes
Diffstat (limited to 'register.h')
-rw-r--r--register.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/register.h b/register.h
new file mode 100644
index 0000000..1a8daef
--- /dev/null
+++ b/register.h
@@ -0,0 +1,11 @@
+#ifndef _PCILIB_REGISTER_H
+#define _PCILIB_REGISTER_H
+
+#include "pcilib.h"
+
+struct pcilib_protocol_description_s {
+ int (*read)(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, uint8_t bits, pcilib_register_value_t *value);
+ int (*write)(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, uint8_t bits, pcilib_register_value_t value);
+};
+
+#endif /* _PCILIB_REGISTER_H */