Date: Sat, 30 Jul 2011 13:37:38 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/ath/ath_hal ah_eeprom_9287.c ah_eeprom_v4k.c Message-ID: <201107301337.p6UDbkw2057174@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
adrian 2011-07-30 13:37:38 UTC
FreeBSD src repository
Modified files:
sys/dev/ath/ath_hal ah_eeprom_9287.c ah_eeprom_v4k.c
Log:
SVN rev 224518 on 2011-07-30 13:37:38Z by adrian
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)
Revision Changes Path
1.5 +17 -6 src/sys/dev/ath/ath_hal/ah_eeprom_9287.c
1.6 +16 -6 src/sys/dev/ath/ath_hal/ah_eeprom_v4k.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107301337.p6UDbkw2057174>
