1a7ee7a7dSMarius Strobl /* $NetBSD: am7990var.h,v 1.23 2005/12/11 12:21:25 christos Exp $ */ 2a7ee7a7dSMarius Strobl 3a7ee7a7dSMarius Strobl /*- 4*b61a5730SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 5718cf2ccSPedro F. Giffuni * 6a7ee7a7dSMarius Strobl * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 7a7ee7a7dSMarius Strobl * All rights reserved. 8a7ee7a7dSMarius Strobl * 9a7ee7a7dSMarius Strobl * This code is derived from software contributed to The NetBSD Foundation 10a7ee7a7dSMarius Strobl * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace 11a7ee7a7dSMarius Strobl * Simulation Facility, NASA Ames Research Center. 12a7ee7a7dSMarius Strobl * 13a7ee7a7dSMarius Strobl * Redistribution and use in source and binary forms, with or without 14a7ee7a7dSMarius Strobl * modification, are permitted provided that the following conditions 15a7ee7a7dSMarius Strobl * are met: 16a7ee7a7dSMarius Strobl * 1. Redistributions of source code must retain the above copyright 17a7ee7a7dSMarius Strobl * notice, this list of conditions and the following disclaimer. 18a7ee7a7dSMarius Strobl * 2. Redistributions in binary form must reproduce the above copyright 19a7ee7a7dSMarius Strobl * notice, this list of conditions and the following disclaimer in the 20a7ee7a7dSMarius Strobl * documentation and/or other materials provided with the distribution. 21a7ee7a7dSMarius Strobl * 22a7ee7a7dSMarius Strobl * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 23a7ee7a7dSMarius Strobl * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 24a7ee7a7dSMarius Strobl * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 25a7ee7a7dSMarius Strobl * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 26a7ee7a7dSMarius Strobl * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27a7ee7a7dSMarius Strobl * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 28a7ee7a7dSMarius Strobl * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29a7ee7a7dSMarius Strobl * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30a7ee7a7dSMarius Strobl * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31a7ee7a7dSMarius Strobl * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32a7ee7a7dSMarius Strobl * POSSIBILITY OF SUCH DAMAGE. 33a7ee7a7dSMarius Strobl */ 34a7ee7a7dSMarius Strobl 35a7ee7a7dSMarius Strobl 36a7ee7a7dSMarius Strobl #ifndef _DEV_LE_AM7990VAR_H_ 37a7ee7a7dSMarius Strobl #define _DEV_LE_AM7990VAR_H_ 38a7ee7a7dSMarius Strobl 39a7ee7a7dSMarius Strobl /* 40a7ee7a7dSMarius Strobl * Ethernet software status per device. 41a7ee7a7dSMarius Strobl * 42a7ee7a7dSMarius Strobl * NOTE: this structure MUST be the first element in machine-dependent 43a7ee7a7dSMarius Strobl * le_softc structures! This is designed SPECIFICALLY to make it possible 44a7ee7a7dSMarius Strobl * to simply cast a "void *" to "struct le_softc *" or to 45a7ee7a7dSMarius Strobl * "struct am7990_softc *". Among other things, this saves a lot of hair 46a7ee7a7dSMarius Strobl * in the interrupt handlers. 47a7ee7a7dSMarius Strobl */ 48a7ee7a7dSMarius Strobl struct am7990_softc { 49a7ee7a7dSMarius Strobl struct lance_softc lsc; 50a7ee7a7dSMarius Strobl }; 51a7ee7a7dSMarius Strobl 52a7ee7a7dSMarius Strobl int am7990_config(struct am7990_softc *, const char*, int); 53a7ee7a7dSMarius Strobl void am7990_detach(struct am7990_softc *); 54a7ee7a7dSMarius Strobl void am7990_intr(void *); 55a7ee7a7dSMarius Strobl 56a7ee7a7dSMarius Strobl #endif /* !_DEV_LE_AM7990VAR_H_ */ 57