Add MIIF_FORCEANEG from Martin Husemann

This commit is contained in:
christos 2003-04-10 01:58:21 +00:00
parent 24f1d87951
commit 1af07f5803
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_vr.c,v 1.60 2003/01/15 22:02:58 bouyer Exp $ */
/* $NetBSD: if_vr.c,v 1.61 2003/04/10 01:58:21 christos Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -104,7 +104,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.60 2003/01/15 22:02:58 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.61 2003/04/10 01:58:21 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1654,7 +1654,7 @@ vr_attach(parent, self, aux)
ifmedia_init(&sc->vr_mii.mii_media, IFM_IMASK, vr_ifmedia_upd,
vr_ifmedia_sts);
mii_attach(&sc->vr_dev, &sc->vr_mii, 0xffffffff, MII_PHY_ANY,
MII_OFFSET_ANY, 0);
MII_OFFSET_ANY, MIIF_FORCEANEG);
if (LIST_FIRST(&sc->vr_mii.mii_phys) == NULL) {
ifmedia_add(&sc->vr_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL);
ifmedia_set(&sc->vr_mii.mii_media, IFM_ETHER|IFM_NONE);