Deleted Added
full compact
ar5416_attach.c (185380) ar5416_attach.c (185406)
1/*
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

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

13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $Id: ar5416_attach.c,v 1.27 2008/11/27 22:30:07 sam Exp $
18 */
19#include "opt_ah.h"
20
1/*
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

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

13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $Id: ar5416_attach.c,v 1.27 2008/11/27 22:30:07 sam Exp $
18 */
19#include "opt_ah.h"
20
21#ifdef AH_SUPPORT_AR5416
22
23#if !defined(AH_SUPPORT_2133)
24#error "No 5416 RF support defined"
25#endif
26
27#include "ah.h"
28#include "ah_internal.h"
29#include "ah_devid.h"
30
31#include "ar5416/ar5416.h"
32#include "ar5416/ar5416reg.h"
33#include "ar5416/ar5416phy.h"
34

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

475 ahpriv->ah_rfkillEnabled = AH_TRUE;
476 pCap->halRfSilentSupport = AH_TRUE;
477 }
478
479 ahpriv->ah_rxornIsFatal = AH_FALSE;
480
481 return AH_TRUE;
482}
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5416/ar5416.h"
26#include "ar5416/ar5416reg.h"
27#include "ar5416/ar5416phy.h"
28

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

469 ahpriv->ah_rfkillEnabled = AH_TRUE;
470 pCap->halRfSilentSupport = AH_TRUE;
471 }
472
473 ahpriv->ah_rxornIsFatal = AH_FALSE;
474
475 return AH_TRUE;
476}
483#endif /* AH_SUPPORT_AR5416 */
477
478static const char*
479ar5416Probe(uint16_t vendorid, uint16_t devid)
480{
481 if (vendorid == ATHEROS_VENDOR_ID &&
482 (devid == AR5416_DEVID_PCI || devid == AR5416_DEVID_PCIE))
483 return "Atheros 5416";
484 return AH_NULL;
485}
486AH_CHIP(ar5416, ar5416Probe, ar5416Attach);