Simplify receive descriptor setup.

This commit is contained in:
dyoung 2004-07-15 06:13:44 +00:00
parent 8218b1f277
commit 50a1923f1d
1 changed files with 3 additions and 8 deletions

View File

@ -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)