1*1da7b01eSdbj /* $NetBSD: if_xevar.h,v 1.5 2010/04/24 19:58:13 dbj Exp $ */ 2ddff5f8eSdbj /* 3ddff5f8eSdbj * Copyright (c) 1998 Darrin B. Jewell 4ddff5f8eSdbj * All rights reserved. 5ddff5f8eSdbj * 6ddff5f8eSdbj * Redistribution and use in source and binary forms, with or without 7ddff5f8eSdbj * modification, are permitted provided that the following conditions 8ddff5f8eSdbj * are met: 9ddff5f8eSdbj * 1. Redistributions of source code must retain the above copyright 10ddff5f8eSdbj * notice, this list of conditions and the following disclaimer. 11ddff5f8eSdbj * 2. Redistributions in binary form must reproduce the above copyright 12ddff5f8eSdbj * notice, this list of conditions and the following disclaimer in the 13ddff5f8eSdbj * documentation and/or other materials provided with the distribution. 14ddff5f8eSdbj * 15ddff5f8eSdbj * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16ddff5f8eSdbj * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17ddff5f8eSdbj * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18ddff5f8eSdbj * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19ddff5f8eSdbj * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20ddff5f8eSdbj * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21ddff5f8eSdbj * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22ddff5f8eSdbj * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23ddff5f8eSdbj * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24ddff5f8eSdbj * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25ddff5f8eSdbj */ 26ddff5f8eSdbj 27ddff5f8eSdbj struct xe_softc { 28ddff5f8eSdbj struct mb8795_softc sc_mb8795; /* glue to MI code */ 29c618f2ccSmycroft 30c618f2ccSmycroft bus_space_tag_t sc_bst; /* bus space tag */ 31c618f2ccSmycroft bus_space_handle_t sc_bsh; /* bus space handle */ 32c618f2ccSmycroft 33c618f2ccSmycroft struct nextdma_softc *sc_rxdma; 34c618f2ccSmycroft struct nextdma_softc *sc_txdma; 35c618f2ccSmycroft 36c618f2ccSmycroft bus_dmamap_t sc_tx_dmamap; /* should we have multiple of these? */ 37c618f2ccSmycroft struct mbuf *sc_tx_mb_head; /* pointer to data for this command */ 38c618f2ccSmycroft int sc_tx_loaded; 39c618f2ccSmycroft u_char *sc_txbuf; /* to solve alignment problems, we 40c618f2ccSmycroft * copy the mbuf into this buffer before 411ffa7b76Swiz * trying to DMA it */ 42c618f2ccSmycroft 43c618f2ccSmycroft bus_dmamap_t sc_rx_dmamap[MB8795_NRXBUFS]; 44c618f2ccSmycroft struct mbuf *sc_rx_mb_head[MB8795_NRXBUFS]; 45c618f2ccSmycroft int sc_rx_loaded_idx; 46c618f2ccSmycroft int sc_rx_completed_idx; 47c618f2ccSmycroft int sc_rx_handled_idx; 48ddff5f8eSdbj }; 49