[openfirmware] [commit] r3480 - dev

repository service svn at openfirmware.info
Fri Dec 7 06:09:55 CET 2012


Author: quozl
Date: Fri Dec  7 06:09:54 2012
New Revision: 3480
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3480

Log:
OLPC - libertas, add unused eeprom dump helper

Modified:
   dev/libertas.fth

Modified: dev/libertas.fth
==============================================================================
--- dev/libertas.fth	Fri Dec  7 06:08:04 2012	(r3479)
+++ dev/libertas.fth	Fri Dec  7 06:09:54 2012	(r3480)
@@ -829,11 +829,26 @@
    a 59 ( CMD_EEPROM_ACCESS ) prepare-cmd
    ACTION_GET +xw
    ( idx ) +xw
-   4 +xw
+   4 +xw \ maximum h# 10
    outbuf-wait  if  0 exit  then
    respbuf >fw-data 6 + le-l@
 ;
 
+[ifdef] notdef
+   : eeprom-dump
+      400 0 do
+	 i 8 .r ." :  "
+	 a 59 ( CMD_EEPROM_ACCESS ) prepare-cmd
+	 ACTION_GET +xw \ Action
+	 i +xw \ Offset
+	 10 +xw \ Byte Count
+	 outbuf-wait  if  unloop exit  then
+	 respbuf >fw-data 6 +
+	 dup 8 cdump space 8 + 8 cdump cr
+      10 +loop
+   ;
+[then]
+
 \ =========================================================================
 \ Miscellaneous control settings
 \ =========================================================================



More information about the openfirmware mailing list