Deleted Added
full compact
if_vge.c (167190) if_vge.c (173839)
1/*-
2 * Copyright (c) 2004
3 * Bill Paul <wpaul@windriver.com>. 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) 2004
3 * Bill Paul <wpaul@windriver.com>. 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/dev/vge/if_vge.c 167190 2007-03-04 03:38:08Z csjp $");
34__FBSDID("$FreeBSD: head/sys/dev/vge/if_vge.c 173839 2007-11-22 02:45:00Z yongari $");
35
36/*
37 * VIA Networking Technologies VT612x PCI gigabit ethernet NIC driver.
38 *
39 * Written by Bill Paul <wpaul@windriver.com>
40 * Senior Networking Software Engineer
41 * Wind River Systems
42 */

--- 120 unchanged lines hidden (view full) ---

163static void vge_tx_task (void *, int);
164static void vge_start (struct ifnet *);
165static int vge_ioctl (struct ifnet *, u_long, caddr_t);
166static void vge_init (void *);
167static void vge_stop (struct vge_softc *);
168static void vge_watchdog (struct ifnet *);
169static int vge_suspend (device_t);
170static int vge_resume (device_t);
35
36/*
37 * VIA Networking Technologies VT612x PCI gigabit ethernet NIC driver.
38 *
39 * Written by Bill Paul <wpaul@windriver.com>
40 * Senior Networking Software Engineer
41 * Wind River Systems
42 */

--- 120 unchanged lines hidden (view full) ---

163static void vge_tx_task (void *, int);
164static void vge_start (struct ifnet *);
165static int vge_ioctl (struct ifnet *, u_long, caddr_t);
166static void vge_init (void *);
167static void vge_stop (struct vge_softc *);
168static void vge_watchdog (struct ifnet *);
169static int vge_suspend (device_t);
170static int vge_resume (device_t);
171static void vge_shutdown (device_t);
171static int vge_shutdown (device_t);
172static int vge_ifmedia_upd (struct ifnet *);
173static void vge_ifmedia_sts (struct ifnet *, struct ifmediareq *);
174
175#ifdef VGE_EEPROM
176static void vge_eeprom_getword (struct vge_softc *, int, u_int16_t *);
177#endif
178static void vge_read_eeprom (struct vge_softc *, caddr_t, int, int, int);
179

--- 2189 unchanged lines hidden (view full) ---

2369
2370 return (0);
2371}
2372
2373/*
2374 * Stop all chip I/O so that the kernel's probe routines don't
2375 * get confused by errant DMAs when rebooting.
2376 */
172static int vge_ifmedia_upd (struct ifnet *);
173static void vge_ifmedia_sts (struct ifnet *, struct ifmediareq *);
174
175#ifdef VGE_EEPROM
176static void vge_eeprom_getword (struct vge_softc *, int, u_int16_t *);
177#endif
178static void vge_read_eeprom (struct vge_softc *, caddr_t, int, int, int);
179

--- 2189 unchanged lines hidden (view full) ---

2369
2370 return (0);
2371}
2372
2373/*
2374 * Stop all chip I/O so that the kernel's probe routines don't
2375 * get confused by errant DMAs when rebooting.
2376 */
2377static void
2377static int
2378vge_shutdown(dev)
2379 device_t dev;
2380{
2381 struct vge_softc *sc;
2382
2383 sc = device_get_softc(dev);
2384
2385 vge_stop(sc);
2378vge_shutdown(dev)
2379 device_t dev;
2380{
2381 struct vge_softc *sc;
2382
2383 sc = device_get_softc(dev);
2384
2385 vge_stop(sc);
2386
2387 return (0);
2386}
2388}