summaryrefslogtreecommitdiff
path: root/sys/dev/ic/wevar.h
blob: c00276406299f264232f3565b3eb738e7d9728b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*	$NetBSD: wevar.h,v 1.1 2001/03/23 17:34:41 jdolecek Exp $	*/

/*
 * National Semiconductor DS8390 NIC register definitions.
 *
 * Copyright (C) 1993, David Greenman.  This software may be used, modified,
 * copied, distributed, and sold, in both source and binary form provided that
 * the above copyright and these terms are retained.  Under no circumstances is
 * the author responsible for the proper functioning of this software, nor does
 * the author assume any responsibility for damages incurred with its use.
 */

struct we_softc {
	struct dp8390_softc sc_dp8390;

	bus_space_tag_t sc_asict;	/* space tag for ASIC */
	bus_space_handle_t sc_asich;	/* space handle for ASIC */

	u_int8_t sc_laar_proto;
	u_int8_t sc_msr_proto;

	u_int8_t sc_type;		/* our type */

	int sc_16bitp;			/* are we 16 bit? */

	int sc_iobase;			/* i/o address */
	int sc_maddr;			/* physical i/o mem addr */

	void (*sc_init_hook) __P((struct we_softc *));

	void *sc_ih;			/* interrupt handle */
};

int we_config __P((struct device *self, struct we_softc *, const char *));