if_rl.c (112872) | if_rl.c (112880) |
---|---|
1/* 2 * Copyright (c) 1997, 1998 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 114 unchanged lines hidden (view full) --- 123 * can hang the bus. I'm inclined to blame this on crummy design/construction 124 * on the part of RealTek. Memory mapped mode does appear to work on 125 * uniprocessor systems though. 126 */ 127#define RL_USEIOSPACE 128 129#include <pci/if_rlreg.h> 130 | 1/* 2 * Copyright (c) 1997, 1998 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 114 unchanged lines hidden (view full) --- 123 * can hang the bus. I'm inclined to blame this on crummy design/construction 124 * on the part of RealTek. Memory mapped mode does appear to work on 125 * uniprocessor systems though. 126 */ 127#define RL_USEIOSPACE 128 129#include <pci/if_rlreg.h> 130 |
131__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 112872 2003-03-31 17:29:43Z njl $"); | 131__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 112880 2003-03-31 20:22:00Z jhb $"); |
132 133/* 134 * Various supported device vendors/types and their names. 135 */ 136static struct rl_type rl_devs[] = { 137 { RT_VENDORID, RT_DEVICEID_8129, 138 "RealTek 8129 10/100BaseTX" }, 139 { RT_VENDORID, RT_DEVICEID_8139, --- 958 unchanged lines hidden (view full) --- 1098static int 1099rl_detach(dev) 1100 device_t dev; 1101{ 1102 struct rl_softc *sc; 1103 struct ifnet *ifp; 1104 1105 sc = device_get_softc(dev); | 132 133/* 134 * Various supported device vendors/types and their names. 135 */ 136static struct rl_type rl_devs[] = { 137 { RT_VENDORID, RT_DEVICEID_8129, 138 "RealTek 8129 10/100BaseTX" }, 139 { RT_VENDORID, RT_DEVICEID_8139, --- 958 unchanged lines hidden (view full) --- 1098static int 1099rl_detach(dev) 1100 device_t dev; 1101{ 1102 struct rl_softc *sc; 1103 struct ifnet *ifp; 1104 1105 sc = device_get_softc(dev); |
1106 KASSERT(mtx_initialized(&sc->rl_mtx), "rl mutex not initialized"); | 1106 KASSERT(mtx_initialized(&sc->rl_mtx), ("rl mutex not initialized")); |
1107 RL_LOCK(sc); 1108 ifp = &sc->arpcom.ac_if; 1109 1110 if (device_is_alive(dev)) { 1111 if (bus_child_present(dev)) 1112 rl_stop(sc); 1113 ether_ifdetach(ifp); 1114 device_delete_child(dev, sc->rl_miibus); --- 814 unchanged lines hidden --- | 1107 RL_LOCK(sc); 1108 ifp = &sc->arpcom.ac_if; 1109 1110 if (device_is_alive(dev)) { 1111 if (bus_child_present(dev)) 1112 rl_stop(sc); 1113 ether_ifdetach(ifp); 1114 device_delete_child(dev, sc->rl_miibus); --- 814 unchanged lines hidden --- |