if_ti.c (227322) | if_ti.c (227323) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 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 --- 63 unchanged lines hidden (view full) --- 72 * - Raymond Lee of Netgear, for providing a pair of Netgear 73 * GA620 Tigon 2 boards for testing 74 * - Ulf Zimmermann, for bringing the GA260 to my attention and 75 * convincing me to write this driver. 76 * - Andrew Gallatin for providing FreeBSD/Alpha support. 77 */ 78 79#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998, 1999 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 --- 63 unchanged lines hidden (view full) --- 72 * - Raymond Lee of Netgear, for providing a pair of Netgear 73 * GA620 Tigon 2 boards for testing 74 * - Ulf Zimmermann, for bringing the GA260 to my attention and 75 * convincing me to write this driver. 76 * - Andrew Gallatin for providing FreeBSD/Alpha support. 77 */ 78 79#include <sys/cdefs.h> |
80__FBSDID("$FreeBSD: head/sys/dev/ti/if_ti.c 227322 2011-11-07 22:47:25Z yongari $"); | 80__FBSDID("$FreeBSD: head/sys/dev/ti/if_ti.c 227323 2011-11-07 22:53:06Z yongari $"); |
81 82#include "opt_ti.h" 83 84#include <sys/param.h> 85#include <sys/systm.h> 86#include <sys/sockio.h> 87#include <sys/mbuf.h> 88#include <sys/malloc.h> --- 3751 unchanged lines hidden (view full) --- 3840 /* Disable host interrupts. */ 3841 CSR_WRITE_4(sc, TI_MB_HOSTINTR, 1); 3842 /* 3843 * Tell firmware we're shutting down. 3844 */ 3845 TI_DO_CMD(TI_CMD_HOST_STATE, TI_CMD_CODE_STACK_DOWN, 0); 3846 3847 /* Halt and reinitialize. */ | 81 82#include "opt_ti.h" 83 84#include <sys/param.h> 85#include <sys/systm.h> 86#include <sys/sockio.h> 87#include <sys/mbuf.h> 88#include <sys/malloc.h> --- 3751 unchanged lines hidden (view full) --- 3840 /* Disable host interrupts. */ 3841 CSR_WRITE_4(sc, TI_MB_HOSTINTR, 1); 3842 /* 3843 * Tell firmware we're shutting down. 3844 */ 3845 TI_DO_CMD(TI_CMD_HOST_STATE, TI_CMD_CODE_STACK_DOWN, 0); 3846 3847 /* Halt and reinitialize. */ |
3848 if (ti_chipinit(sc) != 0) 3849 return; 3850 ti_mem_zero(sc, 0x2000, 0x100000 - 0x2000); 3851 if (ti_chipinit(sc) != 0) 3852 return; | 3848 if (ti_chipinit(sc) == 0) { 3849 ti_mem_zero(sc, 0x2000, 0x100000 - 0x2000); 3850 /* XXX ignore init errors. */ 3851 ti_chipinit(sc); 3852 } |
3853 3854 /* Free the RX lists. */ 3855 ti_free_rx_ring_std(sc); 3856 3857 /* Free jumbo RX list. */ 3858 ti_free_rx_ring_jumbo(sc); 3859 3860 /* Free mini RX list. */ --- 30 unchanged lines hidden --- | 3853 3854 /* Free the RX lists. */ 3855 ti_free_rx_ring_std(sc); 3856 3857 /* Free jumbo RX list. */ 3858 ti_free_rx_ring_jumbo(sc); 3859 3860 /* Free mini RX list. */ --- 30 unchanged lines hidden --- |