diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-17 10:31:27 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-17 10:31:27 +0000 |
commit | 24887a4d5fef342e7d5c637ae6e40c9b6ef2504a (patch) | |
tree | 1c48c7b8e35d3117492f7ad27dc0f5bc1b44f747 /sys/dev/ic/malo.h | |
parent | 0a48c080f46f33fa41cae2b79a86463b4e37a8a5 (diff) |
Allocate and free RX DMA ring. Mostly form rt2661.c with adaption for malo.
Seems to fit pretty well. Does not do anything useful right now. The bits
in the interrupt handler and of course the TX ring are still missing.
OK mglocker@
Diffstat (limited to 'sys/dev/ic/malo.h')
-rw-r--r-- | sys/dev/ic/malo.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/sys/dev/ic/malo.h b/sys/dev/ic/malo.h index 517f8a13187..aec76150c15 100644 --- a/sys/dev/ic/malo.h +++ b/sys/dev/ic/malo.h @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.h,v 1.2 2006/10/15 20:07:31 claudio Exp $ */ +/* $OpenBSD: malo.h,v 1.3 2006/10/17 10:31:26 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -16,9 +16,25 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +struct malo_rx_desc; +struct malo_rx_data; + +struct malo_rx_ring { + bus_dmamap_t map; + bus_dma_segment_t seg; + bus_addr_t physaddr; + struct malo_rx_desc *desc; + struct malo_rx_data *data; + int count; + int cur; + int next; +}; + struct malo_softc { struct device sc_dev; struct ieee80211com sc_ic; + struct malo_rx_ring sc_rxring0; + struct malo_rx_ring sc_rxring1; bus_dma_tag_t sc_dmat; bus_space_tag_t sc_mem1_bt; @@ -41,10 +57,6 @@ struct malo_softc { void (*sc_disable)(struct malo_softc *); }; -struct malo_node { - struct ieee80211_node ni; -}; - int malo_intr(void *arg); int malo_attach(struct malo_softc *sc); int malo_detach(void *arg); |