xref: /openbsd-src/sys/dev/ic/dl10019var.h (revision d874cce4b1d9fe6b41c9e4f2117a77d8a4a37b92)
1*d874cce4Sray /*	$OpenBSD: dl10019var.h,v 1.2 2008/06/26 05:42:15 ray Exp $	*/
2785c2831Saaron /*	$NetBSD$	*/
3785c2831Saaron 
4785c2831Saaron /*-
5785c2831Saaron  * Copyright (c) 2001 The NetBSD Foundation, Inc.
6785c2831Saaron  * All rights reserved.
7785c2831Saaron  *
8785c2831Saaron  * This code is derived from software contributed to The NetBSD Foundation
9785c2831Saaron  * by Jason R. Thorpe.
10785c2831Saaron  *
11785c2831Saaron  * Redistribution and use in source and binary forms, with or without
12785c2831Saaron  * modification, are permitted provided that the following conditions
13785c2831Saaron  * are met:
14785c2831Saaron  * 1. Redistributions of source code must retain the above copyright
15785c2831Saaron  *    notice, this list of conditions and the following disclaimer.
16785c2831Saaron  * 2. Redistributions in binary form must reproduce the above copyright
17785c2831Saaron  *    notice, this list of conditions and the following disclaimer in the
18785c2831Saaron  *    documentation and/or other materials provided with the distribution.
19785c2831Saaron  *
20785c2831Saaron  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21785c2831Saaron  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22785c2831Saaron  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23785c2831Saaron  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24785c2831Saaron  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25785c2831Saaron  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26785c2831Saaron  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27785c2831Saaron  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28785c2831Saaron  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29785c2831Saaron  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30785c2831Saaron  * POSSIBILITY OF SUCH DAMAGE.
31785c2831Saaron  */
32785c2831Saaron 
33785c2831Saaron /*
34785c2831Saaron  * Definitions on D-Link DL10019 and DL10022 NE2000-compatible Ethernet
35785c2831Saaron  * chips.
36785c2831Saaron  */
37785c2831Saaron 
38785c2831Saaron #ifndef _DEV_IC_DL10019_VAR_H_
39785c2831Saaron #define	_DEV_IC_DL10019_VAR_H_
40785c2831Saaron 
41785c2831Saaron #ifdef _KERNEL
42785c2831Saaron void	dl10019_media_init(struct dp8390_softc *);
43785c2831Saaron void	dl10019_media_fini(struct dp8390_softc *);
44785c2831Saaron 
45785c2831Saaron int	dl10019_mediachange(struct dp8390_softc *);
46785c2831Saaron void	dl10019_mediastatus(struct dp8390_softc *, struct ifmediareq *ifmr);
47785c2831Saaron void	dl10019_init_card(struct dp8390_softc *);
48785c2831Saaron void	dl10019_stop_card(struct dp8390_softc *);
49785c2831Saaron #endif /* _KERNEL */
50785c2831Saaron 
51785c2831Saaron #endif /* _DEV_IC_DL10019_VAR_H_ */
52