diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-17 19:40:40 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-17 19:40:40 +0000 |
commit | 2a11b595da5be15d0b96062f21c6b158c2afa031 (patch) | |
tree | 88b42d7cb40792a46f2e09e87f66db537ff2f4fd /sys/dev/ic/malo.h | |
parent | aa40fe66b973b6ed8d8c01c9f8e062722bed7cc9 (diff) |
Allocate and free TX DMA rings additionally change some of the structures to
match more the actual reality. Still unsure about it as we don't have any
documentation to verify against. OK mglocker@
Diffstat (limited to 'sys/dev/ic/malo.h')
-rw-r--r-- | sys/dev/ic/malo.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sys/dev/ic/malo.h b/sys/dev/ic/malo.h index aec76150c15..a6f36994ec9 100644 --- a/sys/dev/ic/malo.h +++ b/sys/dev/ic/malo.h @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.h,v 1.3 2006/10/17 10:31:26 claudio Exp $ */ +/* $OpenBSD: malo.h,v 1.4 2006/10/17 19:40:39 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -30,11 +30,27 @@ struct malo_rx_ring { int next; }; +struct malo_tx_desc; +struct malo_tx_data; + +struct malo_tx_ring { + bus_dmamap_t map; + bus_dma_segment_t seg; + bus_addr_t physaddr; + struct malo_tx_desc *desc; + struct malo_tx_data *data; + int count; + int queued; + int cur; + int next; + int stat; +}; + struct malo_softc { struct device sc_dev; struct ieee80211com sc_ic; - struct malo_rx_ring sc_rxring0; - struct malo_rx_ring sc_rxring1; + struct malo_rx_ring sc_rxring; + struct malo_tx_ring sc_txring; bus_dma_tag_t sc_dmat; bus_space_tag_t sc_mem1_bt; |