Date: Fri, 21 Jan 2011 06:42:25 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r217685 - head/sys/dev/ath/ath_hal Message-ID: <201101210642.p0L6gPej041983@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Fri Jan 21 06:42:25 2011 New Revision: 217685 URL: http://svn.freebsd.org/changeset/base/217685 Log: Modify the v14/v4k eeprom diag interface to return the whole eeprom. The v1 and v3 interfaces returned the whole EEPROM but the v14/v4k interfaces just returned the base header. There's extra information outside of that which would also be nice to get access to. Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c head/sys/dev/ath/ath_hal/ah_eeprom_v4k.c Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c ============================================================================== --- head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Fri Jan 21 05:21:00 2011 (r217684) +++ head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Fri Jan 21 06:42:25 2011 (r217685) @@ -159,8 +159,8 @@ v14EepromDiag(struct ath_hal *ah, int re switch (request) { case HAL_DIAG_EEPROM: - *result = &ee->ee_base; - *resultsize = sizeof(ee->ee_base); + *result = ee; + *resultsize = sizeof(HAL_EEPROM_v14); return AH_TRUE; } return AH_FALSE; Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v4k.c ============================================================================== --- head/sys/dev/ath/ath_hal/ah_eeprom_v4k.c Fri Jan 21 05:21:00 2011 (r217684) +++ head/sys/dev/ath/ath_hal/ah_eeprom_v4k.c Fri Jan 21 06:42:25 2011 (r217685) @@ -137,8 +137,8 @@ v4kEepromDiag(struct ath_hal *ah, int re switch (request) { case HAL_DIAG_EEPROM: - *result = &ee->ee_base; - *resultsize = sizeof(ee->ee_base); + *result = ee; + *resultsize = sizeof(HAL_EEPROM_v4k); return AH_TRUE; } return AH_FALSE;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101210642.p0L6gPej041983>