Home | History | Annotate | Line # | Download | only in maple
maplevar.h revision 1.3
      1  1.3  marcus /* $NetBSD: maplevar.h,v 1.3 2001/02/03 23:25:51 marcus Exp $ */
      2  1.2  marcus /*-
      3  1.1  marcus  * Copyright (c) 2001 Marcus Comstedt
      4  1.1  marcus  * All rights reserved.
      5  1.1  marcus  *
      6  1.1  marcus  * Redistribution and use in source and binary forms, with or without
      7  1.1  marcus  * modification, are permitted provided that the following conditions
      8  1.1  marcus  * are met:
      9  1.1  marcus  * 1. Redistributions of source code must retain the above copyright
     10  1.1  marcus  *    notice, this list of conditions and the following disclaimer.
     11  1.1  marcus  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  marcus  *    notice, this list of conditions and the following disclaimer in the
     13  1.1  marcus  *    documentation and/or other materials provided with the distribution.
     14  1.1  marcus  * 3. All advertising materials mentioning features or use of this software
     15  1.1  marcus  *    must display the following acknowledgement:
     16  1.2  marcus  *	This product includes software developed by Marcus Comstedt.
     17  1.2  marcus  * 4. Neither the name of The NetBSD Foundation nor the names of its
     18  1.2  marcus  *    contributors may be used to endorse or promote products derived
     19  1.2  marcus  *    from this software without specific prior written permission.
     20  1.1  marcus  *
     21  1.2  marcus  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     22  1.2  marcus  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     23  1.2  marcus  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     24  1.2  marcus  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     25  1.2  marcus  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     26  1.2  marcus  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     27  1.2  marcus  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     28  1.2  marcus  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     29  1.2  marcus  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     30  1.2  marcus  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     31  1.2  marcus  * POSSIBILITY OF SUCH DAMAGE.
     32  1.1  marcus  */
     33  1.1  marcus 
     34  1.1  marcus #include <machine/bus.h>
     35  1.1  marcus 
     36  1.1  marcus struct maple_softc {
     37  1.1  marcus 	struct device sc_dev;
     38  1.1  marcus 
     39  1.1  marcus 	struct callout maple_callout_ch;
     40  1.1  marcus 	int maple_commands_pending;
     41  1.3  marcus 
     42  1.3  marcus 	int sc_port_units[MAPLE_PORTS];
     43  1.1  marcus 
     44  1.1  marcus 	struct maple_unit sc_unit[MAPLE_PORTS][MAPLE_SUBUNITS];
     45  1.1  marcus 
     46  1.1  marcus 	u_int32_t *sc_txbuf;	/* start of allocated transmit buffer */
     47  1.1  marcus 	u_int32_t *sc_txpos;	/* current write position in tx buffer */
     48  1.1  marcus 	u_int32_t *sc_txlink;   /* start of last written frame */
     49  1.1  marcus 
     50  1.1  marcus 	/* start of each receive buffer */
     51  1.1  marcus 	u_int32_t *sc_rxbuf[MAPLE_PORTS][MAPLE_SUBUNITS];
     52  1.1  marcus 
     53  1.1  marcus 	u_int32_t sc_txbuf_phys;	/* 29-bit physical address */
     54  1.1  marcus   	u_int32_t sc_rxbuf_phys[MAPLE_PORTS][MAPLE_SUBUNITS];
     55  1.1  marcus };
     56  1.1  marcus 
     57