1155093Smarius/*	$NetBSD: am7990var.h,v 1.23 2005/12/11 12:21:25 christos Exp $	*/
2155093Smarius
3155093Smarius/*-
4155093Smarius * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
5155093Smarius * All rights reserved.
6155093Smarius *
7155093Smarius * This code is derived from software contributed to The NetBSD Foundation
8155093Smarius * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace
9155093Smarius * Simulation Facility, NASA Ames Research Center.
10155093Smarius *
11155093Smarius * Redistribution and use in source and binary forms, with or without
12155093Smarius * modification, are permitted provided that the following conditions
13155093Smarius * are met:
14155093Smarius * 1. Redistributions of source code must retain the above copyright
15155093Smarius *    notice, this list of conditions and the following disclaimer.
16155093Smarius * 2. Redistributions in binary form must reproduce the above copyright
17155093Smarius *    notice, this list of conditions and the following disclaimer in the
18155093Smarius *    documentation and/or other materials provided with the distribution.
19155093Smarius *
20155093Smarius * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21155093Smarius * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22155093Smarius * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23155093Smarius * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24155093Smarius * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25155093Smarius * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26155093Smarius * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27155093Smarius * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28155093Smarius * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29155093Smarius * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30155093Smarius * POSSIBILITY OF SUCH DAMAGE.
31155093Smarius */
32155093Smarius
33155093Smarius/* $FreeBSD: releng/10.2/sys/dev/le/am7990var.h 204646 2010-03-03 17:55:51Z joel $ */
34155093Smarius
35155093Smarius#ifndef _DEV_LE_AM7990VAR_H_
36155093Smarius#define	_DEV_LE_AM7990VAR_H_
37155093Smarius
38155093Smarius/*
39155093Smarius * Ethernet software status per device.
40155093Smarius *
41155093Smarius * NOTE: this structure MUST be the first element in machine-dependent
42155093Smarius * le_softc structures!  This is designed SPECIFICALLY to make it possible
43155093Smarius * to simply cast a "void *" to "struct le_softc *" or to
44155093Smarius * "struct am7990_softc *".  Among other things, this saves a lot of hair
45155093Smarius * in the interrupt handlers.
46155093Smarius */
47155093Smariusstruct am7990_softc {
48155093Smarius	struct lance_softc lsc;
49155093Smarius};
50155093Smarius
51155093Smariusint	am7990_config(struct am7990_softc *, const char*, int);
52155093Smariusvoid	am7990_detach(struct am7990_softc *);
53155093Smariusvoid	am7990_intr(void *);
54155093Smarius
55155093Smarius#endif /* !_DEV_LE_AM7990VAR_H_ */
56