summaryrefslogtreecommitdiffstats
path: root/ipecamera.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-09 16:55:27 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-09 16:55:27 +0100
commita008b10d8488ef905a43de00ee5c8efd03b03ed6 (patch)
tree1d4330f9cbb72f641b197a445863a9012581e405 /ipecamera.c
parentb0596cb0f01f885153abffaecfa248920cb8658b (diff)
downloadpcitool-a008b10d8488ef905a43de00ee5c8efd03b03ed6.tar.gz
pcitool-a008b10d8488ef905a43de00ee5c8efd03b03ed6.tar.bz2
pcitool-a008b10d8488ef905a43de00ee5c8efd03b03ed6.tar.xz
pcitool-a008b10d8488ef905a43de00ee5c8efd03b03ed6.zip
Support for FPGA registers
Diffstat (limited to 'ipecamera.c')
-rw-r--r--ipecamera.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/ipecamera.c b/ipecamera.c
index 81cf7d7..9c238f5 100644
--- a/ipecamera.c
+++ b/ipecamera.c
@@ -15,24 +15,6 @@
#define ipecamera_datacpy(dst, src, bank) pcilib_datacpy(dst, src, 4, 1, bank->raw_endianess)
-/*
-int ipecamera_read_register_space(int handle, pcilib_model_t model, pcilib_register_t addr, pcilib_register_value_t *value) {
- //ipelib_write_
- //(void *buf, int handle, pcilib_bar_t bar, uintptr_t addr, size_t size);
-
-}
-
-int ipecamera_write_register_space(int handle, pcilib_model_t model, pcilib_register_t addr, pcilib_register_value_t value) {
-}
-
-
-static int ipecamera_read_byte(int handle, int reg, int bits, uint8_t *value) {
-}
-
-static int ipecamera_write_byte(int handle, int reg, int bits, uint8_t value) {
-}
-*/
-
static pcilib_register_value_t ipecamera_bit_mask[9] = { 0, 1, 3, 7, 15, 31, 63, 127, 255 };
int ipecamera_read(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, uint8_t bits, pcilib_register_value_t *value) {