summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@iss-tomyspiel-l>2011-07-04 16:23:52 +0200
committerroot <root@iss-tomyspiel-l>2011-07-04 16:23:52 +0200
commit9b9e573479732acb1b9dc9fd4d6444918b5b5a5b (patch)
tree60b9f2169f031150d5dfd8aaceb334b12b5f2411
parent2e7a7a3534bcf591c0d6c65105b2d845f293112f (diff)
downloadipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.tar.gz
ipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.tar.bz2
ipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.tar.xz
ipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.zip
Define addresses of NWL engines
-rw-r--r--dma/nwl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dma/nwl.c b/dma/nwl.c
index de2c4e3..55092e6 100644
--- a/dma/nwl.c
+++ b/dma/nwl.c
@@ -17,6 +17,8 @@
#include "nwl_defines.h"
+#define NWL_XAUI_ENGINE 0
+#define NWL_XRAWDATA_ENGINE 1
#define NWL_FIX_EOP_FOR_BIG_PACKETS // requires precise sizes in read requests
/*
@@ -101,7 +103,7 @@ static int nwl_stop_engine(nwl_dma_t *ctx, pcilib_dma_t dma) {
pcilib_nwl_engine_description_t *info = ctx->engines + dma;
char *base = ctx->engines[dma].base_addr;
- if (info->desc.addr == 1) {
+ if (info->desc.addr == NWL_XRAWDATA_ENGINE) {
// Stop Generators
nwl_read_register(val, ctx, ctx->base_addr, TX_CONFIG_ADDRESS);
val = ~(LOOPBACK|PKTCHKR|PKTGENR);