if_arge.c (227843) | if_arge.c (228018) |
---|---|
1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko 3 * 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko 3 * 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/mips/atheros/if_arge.c 227843 2011-11-22 21:28:20Z marius $"); | 29__FBSDID("$FreeBSD: head/sys/mips/atheros/if_arge.c 228018 2011-11-27 11:15:59Z ray $"); |
30 31/* 32 * AR71XX gigabit ethernet driver 33 */ 34#ifdef HAVE_KERNEL_OPTION_HEADERS 35#include "opt_device_polling.h" 36#endif 37 --- 731 unchanged lines hidden (view full) --- 769 770 ARGE_WRITE(sc, AR71XX_MAC_CFG2, cfg); 771 ARGE_WRITE(sc, AR71XX_MAC_IFCONTROL, ifcontrol); 772 ARGE_WRITE(sc, AR71XX_MAC_FIFO_RX_FILTMASK, 773 rx_filtmask); 774 ARGE_WRITE(sc, AR71XX_MAC_FIFO_TX_THRESHOLD, fifo_tx); 775 776 /* set PLL registers */ | 30 31/* 32 * AR71XX gigabit ethernet driver 33 */ 34#ifdef HAVE_KERNEL_OPTION_HEADERS 35#include "opt_device_polling.h" 36#endif 37 --- 731 unchanged lines hidden (view full) --- 769 770 ARGE_WRITE(sc, AR71XX_MAC_CFG2, cfg); 771 ARGE_WRITE(sc, AR71XX_MAC_IFCONTROL, ifcontrol); 772 ARGE_WRITE(sc, AR71XX_MAC_FIFO_RX_FILTMASK, 773 rx_filtmask); 774 ARGE_WRITE(sc, AR71XX_MAC_FIFO_TX_THRESHOLD, fifo_tx); 775 776 /* set PLL registers */ |
777 if (sc->arge_mac_unit == 0) 778 ar71xx_device_set_pll_ge0(if_speed); 779 else 780 ar71xx_device_set_pll_ge1(if_speed); | 777 ar71xx_device_set_pll_ge(sc->arge_mac_unit, if_speed); |
781} 782 783 784static void 785arge_reset_dma(struct arge_softc *sc) 786{ 787 ARGE_WRITE(sc, AR71XX_DMA_RX_CONTROL, 0); 788 ARGE_WRITE(sc, AR71XX_DMA_TX_CONTROL, 0); --- 1142 unchanged lines hidden --- | 778} 779 780 781static void 782arge_reset_dma(struct arge_softc *sc) 783{ 784 ARGE_WRITE(sc, AR71XX_DMA_RX_CONTROL, 0); 785 ARGE_WRITE(sc, AR71XX_DMA_TX_CONTROL, 0); --- 1142 unchanged lines hidden --- |