diff options
Diffstat (limited to 'ipecamera')
-rw-r--r-- | ipecamera/image.c | 2 | ||||
-rw-r--r-- | ipecamera/model.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ipecamera/image.c b/ipecamera/image.c index 0dc51fc..d9a19cc 100644 --- a/ipecamera/image.c +++ b/ipecamera/image.c @@ -160,7 +160,7 @@ pcilib_context_t *ipecamera_init(pcilib_t *pcilib) { } } - return (void*)ctx; + return (pcilib_context_t*)ctx; } void ipecamera_free(pcilib_context_t *vctx) { diff --git a/ipecamera/model.h b/ipecamera/model.h index 9898084..0ee1be5 100644 --- a/ipecamera/model.h +++ b/ipecamera/model.h @@ -15,6 +15,7 @@ pcilib_register_bank_description_t ipecamera_register_banks[] = { { PCILIB_REGISTER_BANK0, PCILIB_BAR0, 128, IPECAMERA_REGISTER_PROTOCOL, IPECAMERA_REGISTER_READ, IPECAMERA_REGISTER_WRITE, PCILIB_LITTLE_ENDIAN, 8, PCILIB_LITTLE_ENDIAN, "%lu", "cmosis", "CMOSIS CMV2000 Registers" }, { PCILIB_REGISTER_BANK1, PCILIB_BAR0, 64, PCILIB_DEFAULT_PROTOCOL, IPECAMERA_REGISTER_SPACE, IPECAMERA_REGISTER_SPACE, PCILIB_LITTLE_ENDIAN, 32, PCILIB_LITTLE_ENDIAN, "0x%lx", "fpga", "IPECamera Registers" }, + { PCILIB_REGISTER_BANK_DMA, PCILIB_BAR0, 0x2000, PCILIB_DEFAULT_PROTOCOL, 0, 0, PCILIB_LITTLE_ENDIAN, 32, PCILIB_LITTLE_ENDIAN, "0x%lx", "dma", "DMA Registers"}, { 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL } }; |