diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-11 14:48:06 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-11 14:48:06 +0200 |
commit | e4bb10c338360dbc823d04e75eab5ba304dc28de (patch) | |
tree | 34357ff4bd8022d2bd64b908b0881e425280f3bb | |
parent | 93bb2a3a6cc5c585ff91d176d02f5edc9080b934 (diff) | |
download | pcitool-e4bb10c338360dbc823d04e75eab5ba304dc28de.tar.gz pcitool-e4bb10c338360dbc823d04e75eab5ba304dc28de.tar.bz2 pcitool-e4bb10c338360dbc823d04e75eab5ba304dc28de.tar.xz pcitool-e4bb10c338360dbc823d04e75eab5ba304dc28de.zip |
Fix compilation issues
-rw-r--r-- | cli.c | 2 | ||||
-rw-r--r-- | dma/nwl.c | 10 | ||||
-rw-r--r-- | driver/pciDriver.h | 4 |
3 files changed, 8 insertions, 8 deletions
@@ -858,7 +858,7 @@ int main(int argc, char **argv) { pcilib_model_t model = PCILIB_MODEL_DETECT; pcilib_model_description_t *model_info; MODE mode = MODE_INVALID; - const char *type; + const char *type = NULL; ACCESS_MODE amode = ACCESS_BAR; const char *fpga_device = DEFAULT_FPGA_DEVICE; pcilib_bar_t bar = PCILIB_BAR_DETECT; @@ -61,7 +61,7 @@ static int dma_nwl_read_engine_config(nwl_dma_t *ctx, pcilib_nwl_engine_descript info->desc.addr_bits = (val & DMA_ENG_BD_MAX_BC) >> DMA_ENG_BD_MAX_BC_SHIFT; - info->base_addr = addr; + info->base_addr = base; return 0; } @@ -136,7 +136,7 @@ int dma_nwl_start_engine(nwl_dma_t *ctx, pcilib_dma_engine_t dma) { __sync_synchronize(); #ifdef NWL_GENERATE_DMA_IRQ - nwl_dma_enable_engine_irq(ctx, dma); + dma_nwl_enable_engine_irq(ctx, dma); #endif /* NWL_GENERATE_DMA_IRQ */ if (info->desc.direction == PCILIB_DMA_FROM_DEVICE) { @@ -240,7 +240,7 @@ int dma_nwl_start(nwl_dma_t *ctx) { if (ctx->started) return 0; #ifdef NWL_GENERATE_DMA_IRQ - nwl_dma_enable_irq(ctx, PCILIB_DMA_IRQ); + dma_nwl_enable_irq(ctx, PCILIB_DMA_IRQ); #endif /* NWL_GENERATE_DMA_IRQ */ ctx->started = 1; @@ -262,7 +262,7 @@ int dma_nwl_stop(nwl_dma_t *ctx) { if (err) return err; for (i = 0; i < ctx->n_engines; i++) { - err = nwl_stop_engine(ctx, i); + err = dma_nwl_stop_engine(ctx, i); if (err) return err; } @@ -298,7 +298,7 @@ pcilib_dma_context_t *dma_nwl_init(pcilib_t *pcilib) { memset(ctx->engines + n_engines, 0, sizeof(pcilib_nwl_engine_description_t)); - err = nwl_read_engine_config(ctx, ctx->engines + n_engines, addr); + err = dma_nwl_read_engine_config(ctx, ctx->engines + n_engines, addr); if (err) continue; pcilib_set_dma_engine_description(pcilib, n_engines, (pcilib_dma_engine_description_t*)(ctx->engines + n_engines)); diff --git a/driver/pciDriver.h b/driver/pciDriver.h index 2704ab5..74eacaf 100644 --- a/driver/pciDriver.h +++ b/driver/pciDriver.h @@ -64,8 +64,8 @@ #define PCIE_ML605_DEVICE_ID 0x04a0 /* Identifies the PCI-E IPE Camera */ -//#define PCIE_IPECAMERA_DEVICE_ID 0x6081 -#define PCIE_IPECAMERA_DEVICE_ID 0x6018 +#define PCIE_IPECAMERA_DEVICE_ID 0x6081 +//#define PCIE_IPECAMERA_DEVICE_ID 0x6018 /* Possible values for ioctl commands */ |