ar9160_attach.c (185380) | ar9160_attach.c (185406) |
---|---|
1/* 2 * Copyright (c) 2008 Sam Leffler, Errno Consulting 3 * Copyright (c) 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: ar9160_attach.c,v 1.14 2008/11/27 22:30:08 sam Exp $ 18 */ 19#include "opt_ah.h" 20 | 1/* 2 * Copyright (c) 2008 Sam Leffler, Errno Consulting 3 * Copyright (c) 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: ar9160_attach.c,v 1.14 2008/11/27 22:30:08 sam Exp $ 18 */ 19#include "opt_ah.h" 20 |
21#ifdef AH_SUPPORT_AR9160 22 23#if !defined(AH_SUPPORT_AR5416) 24#error "No 5416 support defined" 25#endif 26#if !defined(AH_SUPPORT_2133) 27#error "No 2133 RF support defined" 28#endif 29 | |
30#include "ah.h" 31#include "ah_internal.h" 32#include "ah_devid.h" 33 34#include "ar5416/ar5416.h" 35#include "ar5416/ar5416reg.h" 36#include "ar5416/ar5416phy.h" 37 --- 262 unchanged lines hidden (view full) --- 300 pCap->halCSTSupport = AH_TRUE; 301 pCap->halRifsRxSupport = AH_TRUE; 302 pCap->halRifsTxSupport = AH_TRUE; 303 pCap->halRtsAggrLimit = 64*1024; /* 802.11n max */ 304 pCap->halExtChanDfsSupport = AH_TRUE; 305 pCap->halAutoSleepSupport = AH_FALSE; /* XXX? */ 306 return AH_TRUE; 307} | 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 --- 262 unchanged lines hidden (view full) --- 291 pCap->halCSTSupport = AH_TRUE; 292 pCap->halRifsRxSupport = AH_TRUE; 293 pCap->halRifsTxSupport = AH_TRUE; 294 pCap->halRtsAggrLimit = 64*1024; /* 802.11n max */ 295 pCap->halExtChanDfsSupport = AH_TRUE; 296 pCap->halAutoSleepSupport = AH_FALSE; /* XXX? */ 297 return AH_TRUE; 298} |
308#endif /* AH_SUPPORT_AR9160 */ | 299 300static const char* 301ar9160Probe(uint16_t vendorid, uint16_t devid) 302{ 303 if (vendorid == ATHEROS_VENDOR_ID && devid == AR9160_DEVID_PCI) 304 return "Atheros 9160"; 305 return AH_NULL; 306} 307AH_CHIP(ar9160, ar9160Probe, ar9160Attach); |