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
..
2014-09-22 16:20:38 +00:00
2014-08-08 11:47:18 +00:00
2014-09-27 18:35:16 +00:00
2014-09-27 05:50:31 +00:00
2014-09-03 09:58:59 +00:00
2014-09-17 08:28:50 +00:00
2013-08-28 14:49:36 +00:00
2014-08-05 23:35:19 +00:00
2014-08-05 23:58:49 +00:00
2014-08-05 23:47:26 +00:00
2014-05-20 19:55:06 +00:00
2014-09-28 07:40:26 +00:00
2014-09-28 07:29:45 +00:00
2013-07-07 19:47:22 +00:00
2014-09-19 10:32:20 +00:00
2014-07-30 18:21:06 +00:00
2014-09-25 05:47:33 +00:00
2013-05-10 16:41:26 +00:00
2013-09-05 23:14:27 +00:00
2014-04-30 06:40:30 +00:00
2014-09-23 02:56:40 +00:00
2014-09-19 10:32:20 +00:00
2014-08-31 17:56:54 +00:00
2014-09-19 03:55:19 +00:00
2014-05-16 21:19:17 +00:00
2013-05-10 16:41:26 +00:00
2014-07-07 00:27:09 +00:00
2014-07-29 14:41:28 +00:00
2014-02-04 20:52:33 +00:00