Home | History | Annotate | Line # | Download | only in maple
maplevar.h revision 1.1
      1  1.1  marcus /* $NetBSD: maplevar.h,v 1.1 2001/01/16 00:32:42 marcus Exp $ */
      2  1.1  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.1  marcus  *      This product includes software developed by Matt DeBergalis
     17  1.1  marcus  * 4. The name of the author may not be used to endorse or promote products
     18  1.1  marcus  *    derived from this software without specific prior written permission
     19  1.1  marcus  *
     20  1.1  marcus  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     21  1.1  marcus  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     22  1.1  marcus  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     23  1.1  marcus  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     24  1.1  marcus  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     25  1.1  marcus  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     26  1.1  marcus  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     27  1.1  marcus  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     28  1.1  marcus  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     29  1.1  marcus  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     30  1.1  marcus  */
     31  1.1  marcus 
     32  1.1  marcus #include <machine/bus.h>
     33  1.1  marcus 
     34  1.1  marcus struct maple_softc {
     35  1.1  marcus 	struct device sc_dev;
     36  1.1  marcus 
     37  1.1  marcus 	struct callout maple_callout_ch;
     38  1.1  marcus 	int maple_commands_pending;
     39  1.1  marcus 
     40  1.1  marcus 	struct maple_unit sc_unit[MAPLE_PORTS][MAPLE_SUBUNITS];
     41  1.1  marcus 
     42  1.1  marcus 	u_int32_t *sc_txbuf;	/* start of allocated transmit buffer */
     43  1.1  marcus 	u_int32_t *sc_txpos;	/* current write position in tx buffer */
     44  1.1  marcus 	u_int32_t *sc_txlink;   /* start of last written frame */
     45  1.1  marcus 
     46  1.1  marcus 	/* start of each receive buffer */
     47  1.1  marcus 	u_int32_t *sc_rxbuf[MAPLE_PORTS][MAPLE_SUBUNITS];
     48  1.1  marcus 
     49  1.1  marcus 	u_int32_t sc_txbuf_phys;	/* 29-bit physical address */
     50  1.1  marcus   	u_int32_t sc_rxbuf_phys[MAPLE_PORTS][MAPLE_SUBUNITS];
     51  1.1  marcus };
     52  1.1  marcus 
     53