From 50a1923f1dad16f31a7c577c1c0e9b393d162949 Mon Sep 17 00:00:00 2001 From: dyoung Date: Thu, 15 Jul 2004 06:13:44 +0000 Subject: [PATCH] Simplify receive descriptor setup. --- sys/dev/ic/atwvar.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/sys/dev/ic/atwvar.h b/sys/dev/ic/atwvar.h index bd8bda56986b..5f6be539bab4 100644 --- a/sys/dev/ic/atwvar.h +++ b/sys/dev/ic/atwvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: atwvar.h,v 1.10 2004/07/15 06:06:53 dyoung Exp $ */ +/* $NetBSD: atwvar.h,v 1.11 2004/07/15 06:13:44 dyoung Exp $ */ /* * Copyright (c) 2003, 2004 The NetBSD Foundation, Inc. All rights reserved. @@ -388,9 +388,6 @@ do { \ * Note we rely on MCLBYTES being a power of two. Because the `length' * field is only 11 bits, we must subtract 1 from the length to avoid * having it truncated to 0! - * - * Apparently we have to set ATW_RXSTAT_SQL to make the ADM8211 tell - * us RSSI. */ #define ATW_INIT_RXDESC(sc, x) \ do { \ @@ -398,7 +395,6 @@ do { \ struct atw_rxdesc *__rxd = &sc->sc_rxdescs[(x)]; \ struct mbuf *__m = __rxs->rxs_mbuf; \ \ - __m->m_data = __m->m_ext.ext_buf; \ __rxd->ar_buf1 = \ htole32(__rxs->rxs_dmamap->dm_segs[0].ds_addr); \ __rxd->ar_buf2 = /* for descriptor chaining */ \ @@ -408,9 +404,8 @@ do { \ ATW_RXCTL_RBS1_MASK) | \ 0 /* ATW_RXCTL_RCH */ | \ ((x) == (ATW_NRXDESC - 1) ? ATW_RXCTL_RER : 0)); \ - __rxd->ar_stat = \ - htole32(ATW_RXSTAT_OWN|ATW_RXSTAT_SQL|ATW_RXSTAT_FS| \ - ATW_RXSTAT_LS); \ + __rxd->ar_stat = htole32(ATW_RXSTAT_OWN); \ + \ ATW_CDRXSYNC((sc), (x), \ BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); \ } while (0)