Home | History | Annotate | Line # | Download | only in ic
      1  1.5    cegger /*	$NetBSD: wevar.h,v 1.5 2009/05/12 14:25:18 cegger Exp $	*/
      2  1.1  jdolecek 
      3  1.1  jdolecek /*
      4  1.1  jdolecek  * National Semiconductor DS8390 NIC register definitions.
      5  1.1  jdolecek  *
      6  1.1  jdolecek  * Copyright (C) 1993, David Greenman.  This software may be used, modified,
      7  1.1  jdolecek  * copied, distributed, and sold, in both source and binary form provided that
      8  1.1  jdolecek  * the above copyright and these terms are retained.  Under no circumstances is
      9  1.1  jdolecek  * the author responsible for the proper functioning of this software, nor does
     10  1.1  jdolecek  * the author assume any responsibility for damages incurred with its use.
     11  1.1  jdolecek  */
     12  1.1  jdolecek 
     13  1.1  jdolecek struct we_softc {
     14  1.1  jdolecek 	struct dp8390_softc sc_dp8390;
     15  1.1  jdolecek 
     16  1.1  jdolecek 	bus_space_tag_t sc_asict;	/* space tag for ASIC */
     17  1.1  jdolecek 	bus_space_handle_t sc_asich;	/* space handle for ASIC */
     18  1.1  jdolecek 
     19  1.1  jdolecek 	u_int8_t sc_laar_proto;
     20  1.1  jdolecek 	u_int8_t sc_msr_proto;
     21  1.1  jdolecek 
     22  1.1  jdolecek 	u_int8_t sc_type;		/* our type */
     23  1.1  jdolecek 
     24  1.3  jdolecek 	u_int8_t sc_flags;		/* attachment flags */
     25  1.3  jdolecek #define WE_16BIT_ENABLE		1	/* are we 16 bit? */
     26  1.3  jdolecek #define WE_16BIT_NOTOGGLE	2	/* avoid explicit 16bit reset/enable? */
     27  1.1  jdolecek 
     28  1.1  jdolecek 	int sc_iobase;			/* i/o address */
     29  1.1  jdolecek 	int sc_maddr;			/* physical i/o mem addr */
     30  1.1  jdolecek 
     31  1.2     perry 	void (*sc_init_hook)(struct we_softc *);
     32  1.1  jdolecek 
     33  1.1  jdolecek 	void *sc_ih;			/* interrupt handle */
     34  1.1  jdolecek };
     35  1.1  jdolecek 
     36  1.5    cegger int we_config(device_t self, struct we_softc *, const char *);
     37