diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-11-01 23:25:19 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-11-01 23:25:19 +0000 |
commit | f9a31728f6753f90016705431761151520823c96 (patch) | |
tree | b258598ae27f9bc4c0506585ca9cd35ae674eacc /sys/dev/ic/rtl81x9reg.h | |
parent | dd32e9f046d78a1b9954554a1f4a312d261b1e11 (diff) |
Put common data for each RX DMA descriptor into a new rxsoft structure.
From tsutsui@NetBSD
Tested by brad@ otto@
Tested on amd64/i386/sparc64
Diffstat (limited to 'sys/dev/ic/rtl81x9reg.h')
-rw-r--r-- | sys/dev/ic/rtl81x9reg.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl81x9reg.h b/sys/dev/ic/rtl81x9reg.h index d95bae7cdcb..99ebe3a6962 100644 --- a/sys/dev/ic/rtl81x9reg.h +++ b/sys/dev/ic/rtl81x9reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9reg.h,v 1.30 2006/10/31 22:45:15 brad Exp $ */ +/* $OpenBSD: rtl81x9reg.h,v 1.31 2006/11/01 23:25:18 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -672,6 +672,11 @@ struct rl_mii_frame { #define RL_ISCPLUS(x) ((x)->rl_type == RL_8139CPLUS || \ (x)->rl_type == RL_8169) +struct rl_rxsoft { + struct mbuf *rxs_mbuf; + bus_dmamap_t rxs_dmamap; +}; + struct rl_list_data { struct rl_txq { struct mbuf *txq_mbuf; @@ -688,8 +693,7 @@ struct rl_list_data { int rl_tx_desc_cnt; /* # of descriptors */ int rl_tx_listnseg; - struct mbuf *rl_rx_mbuf[RL_RX_DESC_CNT]; - bus_dmamap_t rl_rx_dmamap[RL_RX_DESC_CNT]; + struct rl_rxsoft rl_rxsoft[RL_RX_DESC_CNT]; bus_dmamap_t rl_rx_list_map; struct rl_desc *rl_rx_list; bus_dma_segment_t rl_rx_listseg; |