mii.c (92739) | mii.c (95722) |
---|---|
1/* $NetBSD: mii.c,v 1.12 1999/08/03 19:41:49 drochner Exp $ */ 2 3/*- 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 48 unchanged lines hidden (view full) --- 57#include <dev/mii/miivar.h> 58 59MODULE_VERSION(miibus, 1); 60 61#include "miibus_if.h" 62 63#if !defined(lint) 64static const char rcsid[] = | 1/* $NetBSD: mii.c,v 1.12 1999/08/03 19:41:49 drochner Exp $ */ 2 3/*- 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 48 unchanged lines hidden (view full) --- 57#include <dev/mii/miivar.h> 58 59MODULE_VERSION(miibus, 1); 60 61#include "miibus_if.h" 62 63#if !defined(lint) 64static const char rcsid[] = |
65 "$FreeBSD: head/sys/dev/mii/mii.c 92739 2002-03-20 02:08:01Z alfred $"; | 65 "$FreeBSD: head/sys/dev/mii/mii.c 95722 2002-04-29 13:07:38Z phk $"; |
66#endif 67 68static int miibus_readreg (device_t, int, int); 69static int miibus_writereg (device_t, int, int, int); 70static void miibus_statchg (device_t); 71static void miibus_linkchg (device_t); 72static void miibus_mediainit (device_t); 73 --- 284 unchanged lines hidden (view full) --- 358 struct mii_softc *child; 359 360 mii->mii_media_status = 0; 361 mii->mii_media_active = IFM_NONE; 362 363 LIST_FOREACH(child, &mii->mii_phys, mii_list) 364 (void) (*child->mii_service)(child, mii, MII_POLLSTAT); 365} | 66#endif 67 68static int miibus_readreg (device_t, int, int); 69static int miibus_writereg (device_t, int, int, int); 70static void miibus_statchg (device_t); 71static void miibus_linkchg (device_t); 72static void miibus_mediainit (device_t); 73 --- 284 unchanged lines hidden (view full) --- 358 struct mii_softc *child; 359 360 mii->mii_media_status = 0; 361 mii->mii_media_active = IFM_NONE; 362 363 LIST_FOREACH(child, &mii->mii_phys, mii_list) 364 (void) (*child->mii_service)(child, mii, MII_POLLSTAT); 365} |
366 367/* 368 * Inform the PHYs that the interface is down. 369 */ 370void 371mii_down(struct mii_data *mii) 372{ 373 struct mii_softc *child; 374 375 LIST_FOREACH(child, &mii->mii_phys, mii_list) 376 mii_phy_down(child); 377} |
|