if_arge.c (243882) | if_arge.c (249123) |
---|---|
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 243882 2012-12-05 08:04:20Z glebius $"); | 29__FBSDID("$FreeBSD: head/sys/mips/atheros/if_arge.c 249123 2013-04-05 01:35:59Z adrian $"); |
30 31/* 32 * AR71XX gigabit ethernet driver 33 */ 34#ifdef HAVE_KERNEL_OPTION_HEADERS 35#include "opt_device_polling.h" 36#endif 37 --- 529 unchanged lines hidden (view full) --- 567 568 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG0, 569 FIFO_CFG0_ALL << FIFO_CFG0_ENABLE_SHIFT); 570 571 switch (ar71xx_soc) { 572 case AR71XX_SOC_AR7240: 573 case AR71XX_SOC_AR7241: 574 case AR71XX_SOC_AR7242: | 30 31/* 32 * AR71XX gigabit ethernet driver 33 */ 34#ifdef HAVE_KERNEL_OPTION_HEADERS 35#include "opt_device_polling.h" 36#endif 37 --- 529 unchanged lines hidden (view full) --- 567 568 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG0, 569 FIFO_CFG0_ALL << FIFO_CFG0_ENABLE_SHIFT); 570 571 switch (ar71xx_soc) { 572 case AR71XX_SOC_AR7240: 573 case AR71XX_SOC_AR7241: 574 case AR71XX_SOC_AR7242: |
575 case AR71XX_SOC_AR9330: 576 case AR71XX_SOC_AR9331: |
|
575 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG1, 0x0010ffff); 576 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG2, 0x015500aa); 577 break; 578 default: 579 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG1, 0x0fff0000); 580 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG2, 0x00001fff); 581 } 582 --- 311 unchanged lines hidden (view full) --- 894 } 895 896 ARGEDEBUG(sc, ARGE_DBG_PLL, "%s: if_speed=%d\n", __func__, if_speed); 897 898 switch (ar71xx_soc) { 899 case AR71XX_SOC_AR7240: 900 case AR71XX_SOC_AR7241: 901 case AR71XX_SOC_AR7242: | 577 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG1, 0x0010ffff); 578 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG2, 0x015500aa); 579 break; 580 default: 581 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG1, 0x0fff0000); 582 ARGE_WRITE(sc, AR71XX_MAC_FIFO_CFG2, 0x00001fff); 583 } 584 --- 311 unchanged lines hidden (view full) --- 896 } 897 898 ARGEDEBUG(sc, ARGE_DBG_PLL, "%s: if_speed=%d\n", __func__, if_speed); 899 900 switch (ar71xx_soc) { 901 case AR71XX_SOC_AR7240: 902 case AR71XX_SOC_AR7241: 903 case AR71XX_SOC_AR7242: |
904 case AR71XX_SOC_AR9330: 905 case AR71XX_SOC_AR9331: |
|
902 fifo_tx = 0x01f00140; 903 break; 904 case AR71XX_SOC_AR9130: 905 case AR71XX_SOC_AR9132: 906 fifo_tx = 0x00780fff; 907 break; 908 default: 909 fifo_tx = 0x008001ff; --- 1288 unchanged lines hidden --- | 906 fifo_tx = 0x01f00140; 907 break; 908 case AR71XX_SOC_AR9130: 909 case AR71XX_SOC_AR9132: 910 fifo_tx = 0x00780fff; 911 break; 912 default: 913 fifo_tx = 0x008001ff; --- 1288 unchanged lines hidden --- |