if_rl.c (171560) | if_rl.c (173839) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 171560 2007-07-24 01:24:03Z yongari $"); | 34__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 173839 2007-11-22 02:45:00Z yongari $"); |
35 36/* 37 * RealTek 8129/8139 PCI NIC driver 38 * 39 * Supports several extremely cheap PCI 10/100 adapters based on 40 * the RealTek chipset. Datasheets can be obtained from 41 * www.realtek.com.tw. 42 * --- 160 unchanged lines hidden (view full) --- 203static void rl_poll_locked(struct ifnet *ifp, enum poll_cmd cmd, int count); 204#endif 205static int rl_probe(device_t); 206static void rl_read_eeprom(struct rl_softc *, uint8_t *, int, int, int); 207static void rl_reset(struct rl_softc *); 208static int rl_resume(device_t); 209static void rl_rxeof(struct rl_softc *); 210static void rl_setmulti(struct rl_softc *); | 35 36/* 37 * RealTek 8129/8139 PCI NIC driver 38 * 39 * Supports several extremely cheap PCI 10/100 adapters based on 40 * the RealTek chipset. Datasheets can be obtained from 41 * www.realtek.com.tw. 42 * --- 160 unchanged lines hidden (view full) --- 203static void rl_poll_locked(struct ifnet *ifp, enum poll_cmd cmd, int count); 204#endif 205static int rl_probe(device_t); 206static void rl_read_eeprom(struct rl_softc *, uint8_t *, int, int, int); 207static void rl_reset(struct rl_softc *); 208static int rl_resume(device_t); 209static void rl_rxeof(struct rl_softc *); 210static void rl_setmulti(struct rl_softc *); |
211static void rl_shutdown(device_t); | 211static int rl_shutdown(device_t); |
212static void rl_start(struct ifnet *); 213static void rl_start_locked(struct ifnet *); 214static void rl_stop(struct rl_softc *); 215static int rl_suspend(device_t); 216static void rl_tick(void *); 217static void rl_txeof(struct rl_softc *); 218static void rl_watchdog(struct rl_softc *); 219 --- 1574 unchanged lines hidden (view full) --- 1794 1795 return (0); 1796} 1797 1798/* 1799 * Stop all chip I/O so that the kernel's probe routines don't 1800 * get confused by errant DMAs when rebooting. 1801 */ | 212static void rl_start(struct ifnet *); 213static void rl_start_locked(struct ifnet *); 214static void rl_stop(struct rl_softc *); 215static int rl_suspend(device_t); 216static void rl_tick(void *); 217static void rl_txeof(struct rl_softc *); 218static void rl_watchdog(struct rl_softc *); 219 --- 1574 unchanged lines hidden (view full) --- 1794 1795 return (0); 1796} 1797 1798/* 1799 * Stop all chip I/O so that the kernel's probe routines don't 1800 * get confused by errant DMAs when rebooting. 1801 */ |
1802static void | 1802static int |
1803rl_shutdown(device_t dev) 1804{ 1805 struct rl_softc *sc; 1806 1807 sc = device_get_softc(dev); 1808 1809 RL_LOCK(sc); 1810 rl_stop(sc); 1811 RL_UNLOCK(sc); | 1803rl_shutdown(device_t dev) 1804{ 1805 struct rl_softc *sc; 1806 1807 sc = device_get_softc(dev); 1808 1809 RL_LOCK(sc); 1810 rl_stop(sc); 1811 RL_UNLOCK(sc); |
1812 1813 return (0); |
|
1812} | 1814} |