Deleted Added
full compact
ar9130_attach.c (230147) ar9130_attach.c (242412)
1/*
2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd
3 * Copyright (c) 2008 Sam Leffler, Errno Consulting
4 * Copyright (c) 2008 Atheros Communications, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
1/*
2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd
3 * Copyright (c) 2008 Sam Leffler, Errno Consulting
4 * Copyright (c) 2008 Atheros Communications, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c 230147 2012-01-15 19:22:34Z adrian $
18 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c 242412 2012-10-31 21:14:25Z adrian $
19 */
20#include "opt_ah.h"
21
22#include "ah.h"
23#include "ah_internal.h"
24#include "ah_devid.h"
25
26#include "ar5416/ar5416.h"

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

296 * and works fine in v1.4.
297 * XXX todo, enable it for v1.4.
298 */
299 pCap->halMbssidAggrSupport = AH_FALSE;
300 pCap->hal4AddrAggrSupport = AH_TRUE;
301 /* BB Read WAR */
302 pCap->halHasBBReadWar = AH_TRUE;
303
19 */
20#include "opt_ah.h"
21
22#include "ah.h"
23#include "ah_internal.h"
24#include "ah_devid.h"
25
26#include "ar5416/ar5416.h"

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

296 * and works fine in v1.4.
297 * XXX todo, enable it for v1.4.
298 */
299 pCap->halMbssidAggrSupport = AH_FALSE;
300 pCap->hal4AddrAggrSupport = AH_TRUE;
301 /* BB Read WAR */
302 pCap->halHasBBReadWar = AH_TRUE;
303
304 /*
305 * Implement the PLL/config changes needed for half/quarter
306 * rates before re-enabling them here.
307 */
308 pCap->halChanHalfRate = AH_FALSE;
309 pCap->halChanQuarterRate = AH_FALSE;
310
304 return AH_TRUE;
305}
306
307static const char*
308ar9130Probe(uint16_t vendorid, uint16_t devid)
309{
310 if (vendorid == ATHEROS_VENDOR_ID && devid == AR5416_AR9130_DEVID)
311 return "Atheros 9130";
312 return AH_NULL;
313}
314AH_CHIP(AR9130, ar9130Probe, ar9130Attach);
311 return AH_TRUE;
312}
313
314static const char*
315ar9130Probe(uint16_t vendorid, uint16_t devid)
316{
317 if (vendorid == ATHEROS_VENDOR_ID && devid == AR5416_AR9130_DEVID)
318 return "Atheros 9130";
319 return AH_NULL;
320}
321AH_CHIP(AR9130, ar9130Probe, ar9130Attach);