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