freebsd-dev/sys/dev/ath/ath_hal/ar9002
Adrian Chadd 9389d5a95e Add initial support for the AR9485 CUS198 / CUS230 variants.
These variants have a few differences from the default AR9485 NIC,
namely:

* a non-default antenna switch config;
* slightly different RX gain table setup;
* an external XLNA hooked up to a GPIO pin;
* (and not yet done) RSSI threshold differences when
  doing slow diversity.

To make this possible:

* Add the PCI device list from Linux ath9k, complete with vendor and
  sub-vendor IDs for various things to be enabled;
* .. and until FreeBSD learns about a PCI device list like this,
  write a search function inspired by the USB device enumeration code;
* add HAL_OPS_CONFIG to the HAL attach methods; the HAL can use this
  to initialise its local driver parameters upon attach;
* copy these parameters over in the AR9300 HAL;
* don't default to override the antenna switch - only do it for
  the chips that require it;
* I brought over ar9300_attenuation_apply() from ath9k which is cleaner
  and easier to read for this particular NIC.

This is a work in progress.  I'm worried that there's some post-AR9380
NIC out there which doesn't work without the antenna override set as
I currently haven't implemented bluetooth coexistence for the AR9380
and later HAL.  But I'd rather have this code in the tree and fix it
up before 11.0-RELEASE happens versus having a set of newer NICs
in laptops be effectively RX deaf.

Tested:

* AR9380 (STA)
* AR9485 CUS198 (STA)

Obtained from:	Qualcomm Atheros, Linux ath9k
2014-09-30 03:19:29 +00:00
..
ar9002phy.h
ar9280_attach.c Add initial support for the AR9485 CUS198 / CUS230 variants. 2014-09-30 03:19:29 +00:00
ar9280_olc.c
ar9280_olc.h
ar9280.c
ar9280.h
ar9280v1.ini
ar9280v2.ini
ar9285_attach.c Add initial support for the AR9485 CUS198 / CUS230 variants. 2014-09-30 03:19:29 +00:00
ar9285_btcoex.c Add bluetooth fixes to the AR5416/AR92xx HAL: 2013-06-07 05:17:58 +00:00
ar9285_cal.c
ar9285_cal.h
ar9285_diversity.c Migrate the LNA mixing diversity machinery from the AR9285 HAL to the driver. 2013-06-12 14:52:57 +00:00
ar9285_diversity.h Migrate the LNA mixing diversity machinery from the AR9285 HAL to the driver. 2013-06-12 14:52:57 +00:00
ar9285_phy.c Set the antenna "config group" field. 2013-06-12 15:18:10 +00:00
ar9285_phy.h Remove the AR9285 specific structure for LNA diversity and use the HAL. 2013-06-12 06:01:53 +00:00
ar9285_reset.c Migrate the LNA mixing diversity machinery from the AR9285 HAL to the driver. 2013-06-12 14:52:57 +00:00
ar9285.c
ar9285.h Migrate the LNA mixing diversity machinery from the AR9285 HAL to the driver. 2013-06-12 14:52:57 +00:00
ar9285.ini
ar9285an.h
ar9285phy.h
ar9285v2.ini
ar9287_attach.c Add initial support for the AR9485 CUS198 / CUS230 variants. 2014-09-30 03:19:29 +00:00
ar9287_cal.c
ar9287_cal.h
ar9287_olc.c
ar9287_olc.h
ar9287_reset.c Setup needed tables for TPC on AR5416->AR9287 chips. 2013-04-17 07:31:53 +00:00
ar9287_reset.h
ar9287.c
ar9287.h
ar9287.ini
ar9287an.h
ar9287phy.h