From 9b9e573479732acb1b9dc9fd4d6444918b5b5a5b Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Jul 2011 16:23:52 +0200 Subject: Define addresses of NWL engines --- dma/nwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dma/nwl.c') 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); -- cgit v1.2.3