]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prepare for embedded use of the AR9285/AR9287.
authorAdrian Chadd <adrian@FreeBSD.org>
Sat, 30 Jul 2011 13:37:38 +0000 (13:37 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Sat, 30 Jul 2011 13:37:38 +0000 (13:37 +0000)
commitb649b13f03ce99f1125547730706b875720c159d
tree927273f094f0202a236a1aa7e94dac2d781c1ded
parentbb40c7e83f852a7e4d457e7d2ebe3c51d253db06
Prepare for embedded use of the AR9285/AR9287.

Calibration/PCI data that's written to flash (rather than EEPROM attached
to the NIC) is typically already in host-endian. The existing checks
end up swapping 16 bit words incorrectly - the correct solution would be
to read the magic value and determine the EEPROM endianness from that.
(This is what Linux does.)

This doesn't completely enable embedded use of the AR9285/AR9287 -
notably, the EEPROM read methods need to be made generic and available
to all EEPROM drivers. I'll worry about that later.

Approved by: re (kib)
sys/dev/ath/ath_hal/ah_eeprom_9287.c
sys/dev/ath/ath_hal/ah_eeprom_v4k.c