wevar.h revision 1.1 1 1.1 jdolecek /* $NetBSD: wevar.h,v 1.1 2001/03/23 17:34:41 jdolecek 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.1 jdolecek int sc_16bitp; /* are we 16 bit? */
25 1.1 jdolecek
26 1.1 jdolecek int sc_iobase; /* i/o address */
27 1.1 jdolecek int sc_maddr; /* physical i/o mem addr */
28 1.1 jdolecek
29 1.1 jdolecek void (*sc_init_hook) __P((struct we_softc *));
30 1.1 jdolecek
31 1.1 jdolecek void *sc_ih; /* interrupt handle */
32 1.1 jdolecek };
33 1.1 jdolecek
34 1.1 jdolecek int we_config __P((struct device *self, struct we_softc *, const char *));
35