drivers/network: Upgrade jmicron2x0, marvell_yukon, nforce, pcnet, rdc to FreeBSD 12.
No real functional change in these.
This commit is contained in:
parent
2afe8644cf
commit
2b5a056e03
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -26,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD: releng/11.1/sys/dev/jme/if_jme.c 298646 2016-04-26 15:03:15Z pfg $");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/jme/if_jme.c 333813 2018-05-18 20:13:34Z mmacy $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -557,7 +559,7 @@ jme_map_intr_vector(struct jme_softc *sc)
|
||||
bzero(map, sizeof(map));
|
||||
|
||||
/* Map Tx interrupts source to MSI/MSIX vector 2. */
|
||||
map[MSINUM_REG_INDEX(N_INTR_TXQ0_COMP)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_TXQ0_COMP)] |=
|
||||
MSINUM_INTR_SOURCE(2, N_INTR_TXQ0_COMP);
|
||||
map[MSINUM_REG_INDEX(N_INTR_TXQ1_COMP)] |=
|
||||
MSINUM_INTR_SOURCE(2, N_INTR_TXQ1_COMP);
|
||||
@ -579,37 +581,37 @@ jme_map_intr_vector(struct jme_softc *sc)
|
||||
MSINUM_INTR_SOURCE(2, N_INTR_TXQ_COAL_TO);
|
||||
|
||||
/* Map Rx interrupts source to MSI/MSIX vector 1. */
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_COMP)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_COMP)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ0_COMP);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_COMP)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_COMP)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ1_COMP);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_COMP)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_COMP)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ2_COMP);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_COMP)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_COMP)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ3_COMP);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_DESC_EMPTY)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_DESC_EMPTY)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ0_DESC_EMPTY);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_DESC_EMPTY)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_DESC_EMPTY)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ1_DESC_EMPTY);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_DESC_EMPTY)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_DESC_EMPTY)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ2_DESC_EMPTY);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_DESC_EMPTY)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_DESC_EMPTY)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ3_DESC_EMPTY);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_COAL)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_COAL)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ0_COAL);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_COAL)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_COAL)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ1_COAL);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_COAL)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_COAL)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ2_COAL);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_COAL)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_COAL)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ3_COAL);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_COAL_TO)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ0_COAL_TO)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ0_COAL_TO);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_COAL_TO)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ1_COAL_TO)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ1_COAL_TO);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_COAL_TO)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ2_COAL_TO)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ2_COAL_TO);
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_COAL_TO)] =
|
||||
map[MSINUM_REG_INDEX(N_INTR_RXQ3_COAL_TO)] |=
|
||||
MSINUM_INTR_SOURCE(1, N_INTR_RXQ3_COAL_TO);
|
||||
|
||||
/* Map all other interrupts source to MSI/MSIX vector 0. */
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -24,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD: releng/11.1/sys/dev/jme/if_jmereg.h 298955 2016-05-03 03:41:25Z pfg $
|
||||
* $FreeBSD: releng/12.0/sys/dev/jme/if_jmereg.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _IF_JMEREG_H
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -24,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD: releng/11.1/sys/dev/jme/if_jmevar.h 298955 2016-05-03 03:41:25Z pfg $
|
||||
* $FreeBSD: releng/12.0/sys/dev/jme/if_jmevar.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _IF_JMEVAR_H
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -26,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD: releng/11.1/sys/dev/mii/jmphy.c 277108 2015-01-13 06:56:04Z glebius $");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/jmphy.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* Driver for the JMicron JMP211 10/100/1000, JMP202 10/100 PHY.
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2008, Pyun YongHyeon
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -24,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD: releng/11.1/sys/dev/mii/jmphyreg.h 216551 2010-12-18 23:52:50Z yongari $
|
||||
* $FreeBSD: releng/12.0/sys/dev/mii/jmphyreg.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _DEV_MII_JMPHYREG_H_
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-4-Clause
|
||||
*
|
||||
* Copyright (c) 2000
|
||||
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
|
||||
*
|
||||
@ -29,7 +31,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/mii/brgphyreg.h 325966 2017-11-18 14:26:50Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _DEV_MII_BRGPHYREG_H_
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Principal Author: Parag Patel
|
||||
* Copyright (c) 2001
|
||||
* All rights reserved.
|
||||
@ -30,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/e1000phy.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* driver for the Marvell 88E1000 series external 1000/100/10-BT PHY.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $FreeBSD$ */
|
||||
/* $FreeBSD: releng/12.0/sys/dev/mii/e1000phyreg.h 326022 2017-11-20 19:36:21Z pfg $ */
|
||||
/*-
|
||||
* Principal Author: Parag Patel
|
||||
* Copyright (c) 2001
|
||||
@ -31,6 +31,8 @@
|
||||
*/
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
* Derived by information released by Intel under the following license:
|
||||
*
|
||||
* Copyright (c) 1999 - 2001, Intel Corporation
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: ukphy.c,v 1.2 1999/04/23 04:24:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -55,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/ukphy.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* driver for generic unknown PHYs
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: ukphy_subr.c,v 1.2 1998/11/05 04:08:02 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -31,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/ukphy_subr.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* Subroutines shared by the ukphy driver and other PHY drivers.
|
||||
|
@ -46,6 +46,8 @@
|
||||
*****************************************************************************/
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-4-Clause AND BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
|
||||
*
|
||||
@ -99,7 +101,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/msk/if_msk.c 333813 2018-05-18 20:13:34Z mmacy $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -4511,7 +4513,7 @@ msk_sysctl_node(struct msk_if_softc *sc_if)
|
||||
|
||||
tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats", CTLFLAG_RD,
|
||||
NULL, "MSK Statistics");
|
||||
schild = child = SYSCTL_CHILDREN(tree);
|
||||
schild = SYSCTL_CHILDREN(tree);
|
||||
tree = SYSCTL_ADD_NODE(ctx, schild, OID_AUTO, "rx", CTLFLAG_RD,
|
||||
NULL, "MSK RX Statistics");
|
||||
child = SYSCTL_CHILDREN(tree);
|
||||
|
@ -46,6 +46,8 @@
|
||||
******************************************************************************/
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-4-Clause AND BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
|
||||
*
|
||||
@ -93,7 +95,7 @@
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*$FreeBSD$*/
|
||||
/*$FreeBSD: releng/12.0/sys/dev/msk/if_mskreg.h 325966 2017-11-18 14:26:50Z pfg $*/
|
||||
|
||||
/*
|
||||
* SysKonnect PCI vendor ID
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <dev/msk/if_mskreg.h>
|
||||
|
||||
|
||||
HAIKU_DRIVER_REQUIREMENTS(FBSD_TASKQUEUES | FBSD_FAST_TASKQUEUE | FBSD_SWI_TASKQUEUE);
|
||||
HAIKU_FBSD_DRIVER_GLUE(marvell_yukon, mskc, pci)
|
||||
|
||||
extern driver_t *DRIVER_MODULE_NAME(e1000phy, miibus);
|
||||
@ -67,6 +68,3 @@ HAIKU_REENABLE_INTERRUPTS(device_t dev)
|
||||
struct msk_softc *sc = device_get_softc(dev);
|
||||
CSR_WRITE_4(sc, B0_Y2_SP_ICR, 2);
|
||||
}
|
||||
|
||||
|
||||
HAIKU_DRIVER_REQUIREMENTS(FBSD_TASKQUEUES | FBSD_FAST_TASKQUEUE | FBSD_SWI_TASKQUEUE);
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-4-Clause
|
||||
*
|
||||
* Copyright (c) 2004
|
||||
* Bill Paul <wpaul@windriver.com>. All rights reserved.
|
||||
*
|
||||
@ -31,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/ciphy.c 325966 2017-11-18 14:26:50Z pfg $");
|
||||
|
||||
/*
|
||||
* Driver for the Cicada/Vitesse CS/VSC8xxx 10/100/1000 copper PHY.
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-4-Clause
|
||||
*
|
||||
* Copyright (c) 2004
|
||||
* Bill Paul <wpaul@windriver.com>. All rights reserved.
|
||||
*
|
||||
@ -29,7 +31,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/mii/ciphyreg.h 325966 2017-11-18 14:26:50Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _DEV_MII_CIPHYREG_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: ukphy.c,v 1.2 1999/04/23 04:24:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -55,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/ukphy.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* driver for generic unknown PHYs
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: ukphy_subr.c,v 1.2 1998/11/05 04:08:02 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -31,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/ukphy_subr.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* Subroutines shared by the ukphy driver and other PHY drivers.
|
||||
|
@ -21,7 +21,7 @@
|
||||
/* Driver for NVIDIA nForce MCP Fast Ethernet and Gigabit Ethernet */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/nfe/if_nfe.c 298307 2016-04-19 23:37:24Z pfg $");
|
||||
|
||||
#ifdef HAVE_KERNEL_OPTION_HEADERS
|
||||
#include "opt_device_polling.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/nfe/if_nfereg.h 263957 2014-03-31 01:54:59Z yongari $
|
||||
*/
|
||||
|
||||
#define NFE_RX_RING_COUNT 256
|
||||
|
@ -15,7 +15,7 @@
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/nfe/if_nfevar.h 216925 2011-01-03 18:28:30Z jhb $
|
||||
*/
|
||||
|
||||
struct nfe_tx_data {
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: am7990.c,v 1.68 2005/12/11 12:21:25 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -65,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/le/am7990.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: am79900.c,v 1.17 2005/12/24 20:27:29 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -103,7 +105,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/le/am79900.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
@ -254,7 +256,7 @@ am79900_rint(struct lance_softc *sc)
|
||||
struct lermd rmd;
|
||||
uint32_t rmd1;
|
||||
int bix, rp;
|
||||
#if defined(__i386__) && !defined(PC98)
|
||||
#if defined(__i386__)
|
||||
struct ether_header *eh;
|
||||
#endif
|
||||
|
||||
@ -315,7 +317,7 @@ am79900_rint(struct lance_softc *sc)
|
||||
if (m != NULL) {
|
||||
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
|
||||
|
||||
#if defined(__i386__) && !defined(PC98)
|
||||
#if defined(__i386__)
|
||||
/*
|
||||
* The VMware LANCE does not present IFF_SIMPLEX
|
||||
* behavior on multicast packets. Thus drop the
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: am79900reg.h,v 1.8 2005/12/11 12:21:25 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -63,7 +65,7 @@
|
||||
* @(#)if_lereg.h 8.1 (Berkeley) 6/10/93
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
/* $FreeBSD: releng/12.0/sys/dev/le/am79900reg.h 326255 2017-11-27 14:52:40Z pfg $ */
|
||||
|
||||
#ifndef _DEV_LE_AM79900REG_H_
|
||||
#define _DEV_LE_AM79900REG_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: am79900var.h,v 1.4 2005/12/11 12:21:25 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -30,7 +32,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
/* $FreeBSD: releng/12.0/sys/dev/le/am79900var.h 326255 2017-11-27 14:52:40Z pfg $ */
|
||||
|
||||
#ifndef _DEV_LE_AM79900VAR_H_
|
||||
#define _DEV_LE_AM79900VAR_H_
|
||||
|
@ -30,6 +30,8 @@
|
||||
*/
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1992, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
@ -63,7 +65,7 @@
|
||||
* @(#)if_lereg.h 8.1 (Berkeley) 6/10/93
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
/* $FreeBSD: releng/12.0/sys/dev/le/am7990reg.h 326255 2017-11-27 14:52:40Z pfg $ */
|
||||
|
||||
#ifndef _DEV_LE_AM7990REG_H_
|
||||
#define _DEV_LE_AM7990REG_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: am7990var.h,v 1.23 2005/12/11 12:21:25 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -30,7 +32,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
/* $FreeBSD: releng/12.0/sys/dev/le/am7990var.h 326255 2017-11-27 14:52:40Z pfg $ */
|
||||
|
||||
#ifndef _DEV_LE_AM7990VAR_H_
|
||||
#define _DEV_LE_AM7990VAR_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: if_le_ledma.c,v 1.26 2005/12/11 12:23:44 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -31,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/le/if_le_ledma.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: if_le_pci.c,v 1.43 2005/12/11 12:22:49 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -65,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/le/if_le_pci.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: lance.c,v 1.34 2005/12/24 20:27:30 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -65,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/le/lance.c 333813 2018-05-18 20:13:34Z mmacy $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: lancereg.h,v 1.12 2005/12/11 12:21:27 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -113,7 +115,7 @@
|
||||
* valid on the LANCE.
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
/* $FreeBSD: releng/12.0/sys/dev/le/lancereg.h 326255 2017-11-27 14:52:40Z pfg $ */
|
||||
|
||||
#ifndef _DEV_LE_LANCEREG_H_
|
||||
#define _DEV_LE_LANCEREG_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: lancevar.h,v 1.10 2005/12/11 12:21:27 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -30,7 +32,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
/* $FreeBSD: releng/12.0/sys/dev/le/lancevar.h 326255 2017-11-27 14:52:40Z pfg $ */
|
||||
|
||||
#ifndef _DEV_LE_LANCEVAR_H_
|
||||
#define _DEV_LE_LANCEVAR_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: nsphy.c,v 1.18 1999/07/14 23:57:36 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-2-Clause
|
||||
*
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -55,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/nsphy.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* driver for National Semiconductor's DP83840A ethernet 10/100 PHY
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: nsphyreg.h,v 1.1 1998/08/10 23:58:39 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -29,7 +31,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/mii/nsphyreg.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _DEV_MII_NSPHYREG_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: nsphyter.c,v 1.28 2008/01/20 07:58:19 msaitoh Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD AND BSD-2-Clause
|
||||
*
|
||||
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -55,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/nsphyter.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* Driver for the National Semiconductor's DP83843, DP83847 and DP83849
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: nsphyterreg.h,v 1.4 2005/12/11 12:22:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -29,7 +31,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/mii/nsphyterreg.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _DEV_MII_NSPHYTERREG_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: ukphy.c,v 1.2 1999/04/23 04:24:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -55,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/ukphy.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* driver for generic unknown PHYs
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: ukphy_subr.c,v 1.2 1998/11/05 04:08:02 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-NetBSD
|
||||
*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -31,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/ukphy_subr.c 326255 2017-11-27 14:52:40Z pfg $");
|
||||
|
||||
/*
|
||||
* Subroutines shared by the ukphy driver and other PHY drivers.
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-4-Clause
|
||||
*
|
||||
* Copyright (c) 2000 Berkeley Software Design, Inc.
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@osd.bsdi.com>. All rights reserved.
|
||||
@ -32,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/pcn/if_pcn.c 339735 2018-10-25 17:00:39Z brooks $");
|
||||
|
||||
/*
|
||||
* AMD Am79c972 fast ethernet PCI NIC driver. Datasheets are available
|
||||
@ -191,6 +193,8 @@ static driver_t pcn_driver = {
|
||||
static devclass_t pcn_devclass;
|
||||
|
||||
DRIVER_MODULE(pcn, pci, pcn_driver, pcn_devclass, 0, 0);
|
||||
MODULE_PNP_INFO("U16:vendor;U16:device", pci, pcn, pcn_devs,
|
||||
nitems(pcn_devs) - 1);
|
||||
DRIVER_MODULE(miibus, pcn, miibus_driver, miibus_devclass, 0, 0);
|
||||
|
||||
#define PCN_CSR_SETBIT(sc, reg, x) \
|
||||
@ -1453,7 +1457,7 @@ pcn_watchdog(struct pcn_softc *sc)
|
||||
static void
|
||||
pcn_stop(struct pcn_softc *sc)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
struct ifnet *ifp;
|
||||
|
||||
PCN_LOCK_ASSERT(sc);
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-4-Clause
|
||||
*
|
||||
* Copyright (c) 2000 Berkeley Software Design, Inc.
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
|
||||
@ -30,7 +32,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/pcn/if_pcnreg.h 325966 2017-11-18 14:26:50Z pfg $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -26,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/mii/rdcphy.c 327173 2017-12-25 04:48:39Z kan $");
|
||||
|
||||
/*
|
||||
* Driver for the RDC Semiconductor R6040 10/100 PHY.
|
||||
@ -183,11 +185,9 @@ static void
|
||||
rdcphy_status(struct mii_softc *sc)
|
||||
{
|
||||
struct mii_data *mii;
|
||||
struct ifmedia_entry *ife;
|
||||
int bmsr, bmcr, physts;
|
||||
|
||||
mii = sc->mii_pdata;
|
||||
ife = mii->mii_media.ifm_cur;
|
||||
|
||||
mii->mii_media_status = IFM_AVALID;
|
||||
mii->mii_media_active = IFM_ETHER;
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -24,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/mii/rdcphyreg.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _DEV_MII_RDCPHYREG_H_
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -28,7 +30,7 @@
|
||||
/* Driver for DM&P Electronics, Inc, Vortex86 RDC R6040 FastEthernet. */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
__FBSDID("$FreeBSD: releng/12.0/sys/dev/vte/if_vte.c 333813 2018-05-18 20:13:34Z mmacy $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -24,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/vte/if_vtereg.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _IF_VTEREG_H
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2010, Pyun YongHyeon <yongari@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -24,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
* $FreeBSD: releng/12.0/sys/dev/vte/if_vtevar.h 326255 2017-11-27 14:52:40Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _IF_VTEVAR_H
|
||||
|
Loading…
Reference in New Issue
Block a user