Deleted Added
sdiff udiff text old ( 188783 ) new ( 188968 )
full compact
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 188968 2009-02-23 23:41:12Z sam $");
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

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

7262}
7263
7264/*
7265 * Announce various information on device/driver attach.
7266 */
7267static void
7268ath_announce(struct ath_softc *sc)
7269{
7270 struct ifnet *ifp = sc->sc_ifp;
7271 struct ath_hal *ah = sc->sc_ah;
7272
7273 if_printf(ifp, "AR%s mac %d.%d RF%s phy %d.%d\n",
7274 ath_hal_mac_name(ah), ah->ah_macVersion, ah->ah_macRev,
7275 ath_hal_rf_name(ah), ah->ah_phyRev >> 4, ah->ah_phyRev & 0xf);
7276 if (bootverbose) {
7277 int i;
7278 for (i = 0; i <= WME_AC_VO; i++) {
7279 struct ath_txq *txq = sc->sc_ac2q[i];
7280 if_printf(ifp, "Use hw queue %u for %s traffic\n",
7281 txq->axq_qnum, ieee80211_wme_acnames[i]);
7282 }
7283 if_printf(ifp, "Use hw queue %u for CAB traffic\n",
7284 sc->sc_cabq->axq_qnum);
7285 if_printf(ifp, "Use hw queue %u for beacons\n", sc->sc_bhalq);
7286 }
7287 if (ath_rxbuf != ATH_RXBUF)
7288 if_printf(ifp, "using %u rx buffers\n", ath_rxbuf);
7289 if (ath_txbuf != ATH_TXBUF)
7290 if_printf(ifp, "using %u tx buffers\n", ath_txbuf);
7291}
7292
7293#ifdef ATH_SUPPORT_TDMA
7294static __inline uint32_t
7295ath_hal_getnexttbtt(struct ath_hal *ah)
7296{
7297#define AR_TIMER0 0x8028
7298 return OS_REG_READ(ah, AR_TIMER0);

--- 354 unchanged lines hidden ---