if_ath.c (228890) | if_ath.c (228891) |
---|---|
1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 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 --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 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 --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 228890 2011-12-26 06:25:12Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 228891 2011-12-26 07:47:05Z adrian $"); |
32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 434 unchanged lines hidden (view full) --- 474 "%s: unable to attach DFS\n", __func__); 475 error = EIO; 476 goto bad2; 477 } 478 479 /* Start DFS processing tasklet */ 480 TASK_INIT(&sc->sc_dfstask, 0, ath_dfs_tasklet, sc); 481 | 32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 434 unchanged lines hidden (view full) --- 474 "%s: unable to attach DFS\n", __func__); 475 error = EIO; 476 goto bad2; 477 } 478 479 /* Start DFS processing tasklet */ 480 TASK_INIT(&sc->sc_dfstask, 0, ath_dfs_tasklet, sc); 481 |
482 /* Configure LED state */ |
|
482 sc->sc_blinking = 0; 483 sc->sc_ledstate = 1; 484 sc->sc_ledon = 0; /* low true */ 485 sc->sc_ledidle = (2700*hz)/1000; /* 2.7sec */ 486 callout_init(&sc->sc_ledtimer, CALLOUT_MPSAFE); | 483 sc->sc_blinking = 0; 484 sc->sc_ledstate = 1; 485 sc->sc_ledon = 0; /* low true */ 486 sc->sc_ledidle = (2700*hz)/1000; /* 2.7sec */ 487 callout_init(&sc->sc_ledtimer, CALLOUT_MPSAFE); |
488 |
|
487 /* | 489 /* |
490 * Don't setup hardware-based blinking. 491 * 492 * Although some NICs may have this configured in the 493 * default reset register values, the user may wish 494 * to alter which pins have which function. 495 * 496 * The reference driver attaches the MAC network LED to GPIO1 and 497 * the MAC power LED to GPIO2. However, the DWA-552 cardbus 498 * NIC has these reversed. 499 */ 500 sc->sc_hardled = (1 == 0); 501 sc->sc_led_net_pin = -1; 502 sc->sc_led_pwr_pin = -1; 503 /* |
|
488 * Auto-enable soft led processing for IBM cards and for 489 * 5211 minipci cards. Users can also manually enable/disable 490 * support with a sysctl. 491 */ 492 sc->sc_softled = (devid == AR5212_DEVID_IBM || devid == AR5211_DEVID); 493 ath_led_config(sc); 494 ath_hal_setledstate(ah, HAL_LED_INIT); 495 --- 6169 unchanged lines hidden --- | 504 * Auto-enable soft led processing for IBM cards and for 505 * 5211 minipci cards. Users can also manually enable/disable 506 * support with a sysctl. 507 */ 508 sc->sc_softled = (devid == AR5212_DEVID_IBM || devid == AR5211_DEVID); 509 ath_led_config(sc); 510 ath_hal_setledstate(ah, HAL_LED_INIT); 511 --- 6169 unchanged lines hidden --- |