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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to