if_stge.c (169159) | if_stge.c (173839) |
---|---|
1/* $NetBSD: if_stge.c,v 1.32 2005/12/11 12:22:49 christos Exp $ */ 2 3/*- 4 * Copyright (c) 2001 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. --- 28 unchanged lines hidden (view full) --- 37 */ 38 39/* 40 * Device driver for the Sundance Tech. TC9021 10/100/1000 41 * Ethernet controller. 42 */ 43 44#include <sys/cdefs.h> | 1/* $NetBSD: if_stge.c,v 1.32 2005/12/11 12:22:49 christos Exp $ */ 2 3/*- 4 * Copyright (c) 2001 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. --- 28 unchanged lines hidden (view full) --- 37 */ 38 39/* 40 * Device driver for the Sundance Tech. TC9021 10/100/1000 41 * Ethernet controller. 42 */ 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/sys/dev/stge/if_stge.c 169159 2007-05-01 03:40:57Z yongari $"); | 45__FBSDID("$FreeBSD: head/sys/dev/stge/if_stge.c 173839 2007-11-22 02:45:00Z yongari $"); |
46 47#ifdef HAVE_KERNEL_OPTION_HEADERS 48#include "opt_device_polling.h" 49#endif 50 51#include <sys/param.h> 52#include <sys/systm.h> 53#include <sys/endian.h> --- 71 unchanged lines hidden (view full) --- 125 126 { VENDOR_ANTARES, DEVICEID_ANTARES_TC9021, 127 "Antares Gigabit Ethernet" } 128}; 129 130static int stge_probe(device_t); 131static int stge_attach(device_t); 132static int stge_detach(device_t); | 46 47#ifdef HAVE_KERNEL_OPTION_HEADERS 48#include "opt_device_polling.h" 49#endif 50 51#include <sys/param.h> 52#include <sys/systm.h> 53#include <sys/endian.h> --- 71 unchanged lines hidden (view full) --- 125 126 { VENDOR_ANTARES, DEVICEID_ANTARES_TC9021, 127 "Antares Gigabit Ethernet" } 128}; 129 130static int stge_probe(device_t); 131static int stge_attach(device_t); 132static int stge_detach(device_t); |
133static void stge_shutdown(device_t); | 133static int stge_shutdown(device_t); |
134static int stge_suspend(device_t); 135static int stge_resume(device_t); 136 137static int stge_encap(struct stge_softc *, struct mbuf **); 138static void stge_start(struct ifnet *); 139static void stge_start_locked(struct ifnet *); 140static void stge_watchdog(struct stge_softc *); 141static int stge_ioctl(struct ifnet *, u_long, caddr_t); --- 971 unchanged lines hidden (view full) --- 1113 } 1114} 1115 1116/* 1117 * stge_shutdown: 1118 * 1119 * Make sure the interface is stopped at reboot time. 1120 */ | 134static int stge_suspend(device_t); 135static int stge_resume(device_t); 136 137static int stge_encap(struct stge_softc *, struct mbuf **); 138static void stge_start(struct ifnet *); 139static void stge_start_locked(struct ifnet *); 140static void stge_watchdog(struct stge_softc *); 141static int stge_ioctl(struct ifnet *, u_long, caddr_t); --- 971 unchanged lines hidden (view full) --- 1113 } 1114} 1115 1116/* 1117 * stge_shutdown: 1118 * 1119 * Make sure the interface is stopped at reboot time. 1120 */ |
1121static void | 1121static int |
1122stge_shutdown(device_t dev) 1123{ 1124 struct stge_softc *sc; 1125 1126 sc = device_get_softc(dev); 1127 1128 STGE_LOCK(sc); 1129 stge_stop(sc); 1130 STGE_UNLOCK(sc); | 1122stge_shutdown(device_t dev) 1123{ 1124 struct stge_softc *sc; 1125 1126 sc = device_get_softc(dev); 1127 1128 STGE_LOCK(sc); 1129 stge_stop(sc); 1130 STGE_UNLOCK(sc); |
1131 1132 return (0); |
|
1131} 1132 1133static int 1134stge_suspend(device_t dev) 1135{ 1136 struct stge_softc *sc; 1137 1138 sc = device_get_softc(dev); --- 1562 unchanged lines hidden --- | 1133} 1134 1135static int 1136stge_suspend(device_t dev) 1137{ 1138 struct stge_softc *sc; 1139 1140 sc = device_get_softc(dev); --- 1562 unchanged lines hidden --- |