1/*- 2 * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 7 * NASA Ames Research Center. 8 * --- 75 unchanged lines hidden (view full) --- 84#include <dev/mii/miidevs.h> 85 86#include <dev/mii/acphyreg.h> 87 88#include "miibus_if.h" 89 90#if !defined(lint) 91static const char rcsid[] = |
92 "$FreeBSD: head/sys/dev/mii/acphy.c 95722 2002-04-29 13:07:38Z phk $"; |
93#endif 94 95static int acphy_probe (device_t); 96static int acphy_attach (device_t); |
97 98static device_method_t acphy_methods[] = { 99 /* device interface */ 100 DEVMETHOD(device_probe, acphy_probe), 101 DEVMETHOD(device_attach, acphy_attach), |
102 DEVMETHOD(device_detach, mii_phy_detach), |
103 DEVMETHOD(device_shutdown, bus_generic_shutdown), 104 { 0, 0 } 105}; 106 107static devclass_t acphy_devclass; 108 109static driver_t acphy_driver = { 110 "acphy", --- 51 unchanged lines hidden (view full) --- 162 device_printf(dev, " "); 163 mii_add_media(sc); 164 printf("\n"); 165 166 MIIBUS_MEDIAINIT(sc->mii_dev); 167 return (0); 168} 169 |
170static int 171acphy_service(sc, mii, cmd) 172 struct mii_softc *sc; 173 struct mii_data *mii; 174 int cmd; 175{ 176 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; 177 int reg; --- 154 unchanged lines hidden --- |