diff options
author | root <root@iss-tomyspiel-l> | 2011-07-04 16:23:52 +0200 |
---|---|---|
committer | root <root@iss-tomyspiel-l> | 2011-07-04 16:23:52 +0200 |
commit | 9b9e573479732acb1b9dc9fd4d6444918b5b5a5b (patch) | |
tree | 60b9f2169f031150d5dfd8aaceb334b12b5f2411 | |
parent | 2e7a7a3534bcf591c0d6c65105b2d845f293112f (diff) | |
download | ipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.tar.gz ipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.tar.bz2 ipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.tar.xz ipecamera-9b9e573479732acb1b9dc9fd4d6444918b5b5a5b.zip |
Define addresses of NWL engines
-rw-r--r-- | dma/nwl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |