nsgphy.c (95724) | nsgphy.c (96026) |
---|---|
1/* 2 * Copyright (c) 2001 Wind River Systems 3 * Copyright (c) 2001 4 * Bill Paul <wpaul@bsdi.com>. All rights reserved. 5 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 22 unchanged lines hidden (view full) --- 31 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 37 * THE POSSIBILITY OF SUCH DAMAGE. 38 * | 1/* 2 * Copyright (c) 2001 Wind River Systems 3 * Copyright (c) 2001 4 * Bill Paul <wpaul@bsdi.com>. All rights reserved. 5 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 22 unchanged lines hidden (view full) --- 31 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 37 * THE POSSIBILITY OF SUCH DAMAGE. 38 * |
39 * $FreeBSD: head/sys/dev/mii/nsgphy.c 95724 2002-04-29 14:09:10Z phk $ | 39 * $FreeBSD: head/sys/dev/mii/nsgphy.c 96026 2002-05-04 11:00:30Z phk $ |
40 */ 41 42/* 43 * Driver for the National Semiconductor DP83891 and DP83861 44 * 10/100/1000 PHYs. 45 * Datasheet available at: http://www.national.com/ds/DP/DP83861.pdf 46 * 47 * The DP83891 is the older NatSemi gigE PHY which isn't being sold --- 22 unchanged lines hidden (view full) --- 70#include <dev/mii/miidevs.h> 71 72#include <dev/mii/nsgphyreg.h> 73 74#include "miibus_if.h" 75 76#if !defined(lint) 77static const char rcsid[] = | 40 */ 41 42/* 43 * Driver for the National Semiconductor DP83891 and DP83861 44 * 10/100/1000 PHYs. 45 * Datasheet available at: http://www.national.com/ds/DP/DP83861.pdf 46 * 47 * The DP83891 is the older NatSemi gigE PHY which isn't being sold --- 22 unchanged lines hidden (view full) --- 70#include <dev/mii/miidevs.h> 71 72#include <dev/mii/nsgphyreg.h> 73 74#include "miibus_if.h" 75 76#if !defined(lint) 77static const char rcsid[] = |
78 "$FreeBSD: head/sys/dev/mii/nsgphy.c 95724 2002-04-29 14:09:10Z phk $"; | 78 "$FreeBSD: head/sys/dev/mii/nsgphy.c 96026 2002-05-04 11:00:30Z phk $"; |
79#endif 80 81static int nsgphy_probe (device_t); 82static int nsgphy_attach (device_t); 83 84static device_method_t nsgphy_methods[] = { 85 /* device interface */ 86 DEVMETHOD(device_probe, nsgphy_probe), --- 11 unchanged lines hidden (view full) --- 98 sizeof(struct mii_softc) 99}; 100 101 102DRIVER_MODULE(nsgphy, miibus, nsgphy_driver, nsgphy_devclass, 0, 0); 103 104static int nsgphy_service(struct mii_softc *, struct mii_data *,int); 105static void nsgphy_status(struct mii_softc *); | 79#endif 80 81static int nsgphy_probe (device_t); 82static int nsgphy_attach (device_t); 83 84static device_method_t nsgphy_methods[] = { 85 /* device interface */ 86 DEVMETHOD(device_probe, nsgphy_probe), --- 11 unchanged lines hidden (view full) --- 98 sizeof(struct mii_softc) 99}; 100 101 102DRIVER_MODULE(nsgphy, miibus, nsgphy_driver, nsgphy_devclass, 0, 0); 103 104static int nsgphy_service(struct mii_softc *, struct mii_data *,int); 105static void nsgphy_status(struct mii_softc *); |
106extern void mii_phy_auto_timeout(void *); | |
107 108const struct mii_phydesc gphyters[] = { 109 { MII_OUI_NATSEMI, MII_MODEL_NATSEMI_DP83861, 110 MII_STR_NATSEMI_DP83861 }, 111 112 { MII_OUI_NATSEMI, MII_MODEL_NATSEMI_DP83891, 113 MII_STR_NATSEMI_DP83891 }, 114 --- 176 unchanged lines hidden --- | 106 107const struct mii_phydesc gphyters[] = { 108 { MII_OUI_NATSEMI, MII_MODEL_NATSEMI_DP83861, 109 MII_STR_NATSEMI_DP83861 }, 110 111 { MII_OUI_NATSEMI, MII_MODEL_NATSEMI_DP83891, 112 MII_STR_NATSEMI_DP83891 }, 113 --- 176 unchanged lines hidden --- |