From owner-cvs-src-old@FreeBSD.ORG Sat Jul 30 13:37:46 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FC5D1065678 for ; Sat, 30 Jul 2011 13:37:46 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4D68A8FC12 for ; Sat, 30 Jul 2011 13:37:46 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p6UDbkUl057175 for ; Sat, 30 Jul 2011 13:37:46 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p6UDbkw2057174 for cvs-src-old@freebsd.org; Sat, 30 Jul 2011 13:37:46 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <201107301337.p6UDbkw2057174@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Sat, 30 Jul 2011 13:37:38 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ath/ath_hal ah_eeprom_9287.c ah_eeprom_v4k.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2011 13:37:46 -0000 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