[OpenBIOS] r392 - cpu/x86/pc/olpc
svn at openbios.org
svn at openbios.org
Thu May 17 03:04:15 CEST 2007
Author: wmb
Date: 2007-05-17 03:04:15 +0200 (Thu, 17 May 2007)
New Revision: 392
Added:
cpu/x86/pc/olpc/mfgtree.fth
Modified:
cpu/x86/pc/olpc/devices.fth
cpu/x86/pc/olpc/mfgdata.fth
Log:
OLPC trac 1493 - added all manufacturing data tags to the
device tree, as properties of the new "/mfg-data" node.
Modified: cpu/x86/pc/olpc/devices.fth
===================================================================
--- cpu/x86/pc/olpc/devices.fth 2007-05-16 10:07:06 UTC (rev 391)
+++ cpu/x86/pc/olpc/devices.fth 2007-05-17 01:04:15 UTC (rev 392)
@@ -280,6 +280,7 @@
;
fload ${BP}/cpu/x86/pc/olpc/mfgdata.fth \ Manufacturing data
+fload ${BP}/cpu/x86/pc/olpc/mfgtree.fth \ Manufacturing data in device tree
fload ${BP}/cpu/x86/pc/olpc/kbdtype.fth \ Export keyboard type
fload ${BP}/dev/olpc/spiflash/spiflash.fth \ SPI FLASH programming
Modified: cpu/x86/pc/olpc/mfgdata.fth
===================================================================
--- cpu/x86/pc/olpc/mfgdata.fth 2007-05-16 10:07:06 UTC (rev 391)
+++ cpu/x86/pc/olpc/mfgdata.fth 2007-05-17 01:04:15 UTC (rev 392)
@@ -1,4 +1,5 @@
purpose: Manufacturing data reader
+\ See license at end of file
\ The manufacturing data format is specified by
\ http://wiki.laptop.org/go/Manufacturing_Data
@@ -80,3 +81,27 @@
here 4 2r> + write-spi-flash ( )
;
[then]
+
+\ LICENSE_BEGIN
+\ Copyright (c) 2007 FirmWorks
+\
+\ Permission is hereby granted, free of charge, to any person obtaining
+\ a copy of this software and associated documentation files (the
+\ "Software"), to deal in the Software without restriction, including
+\ without limitation the rights to use, copy, modify, merge, publish,
+\ distribute, sublicense, and/or sell copies of the Software, and to
+\ permit persons to whom the Software is furnished to do so, subject to
+\ the following conditions:
+\
+\ The above copyright notice and this permission notice shall be
+\ included in all copies or substantial portions of the Software.
+\
+\ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+\ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+\ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+\ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+\ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+\ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+\ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+\
+\ LICENSE_END
Added: cpu/x86/pc/olpc/mfgtree.fth
===================================================================
--- cpu/x86/pc/olpc/mfgtree.fth (rev 0)
+++ cpu/x86/pc/olpc/mfgtree.fth 2007-05-17 01:04:15 UTC (rev 392)
@@ -0,0 +1,40 @@
+purpose: Export manufacturing data via the device tree
+\ See license at end of file
+
+0 0 " " " /" begin-package
+ " mfg-data" device-name
+end-package
+
+stand-init: Manufacturing data
+ " /mfg-data" find-device
+ mfg-data-top ( adr )
+ begin another-tag? while ( adr' data$ tname-adr )
+ >r encode-bytes r> 2 property ( adr )
+ repeat ( adr )
+ drop
+ device-end
+;
+
+\ LICENSE_BEGIN
+\ Copyright (c) 2007 FirmWorks
+\
+\ Permission is hereby granted, free of charge, to any person obtaining
+\ a copy of this software and associated documentation files (the
+\ "Software"), to deal in the Software without restriction, including
+\ without limitation the rights to use, copy, modify, merge, publish,
+\ distribute, sublicense, and/or sell copies of the Software, and to
+\ permit persons to whom the Software is furnished to do so, subject to
+\ the following conditions:
+\
+\ The above copyright notice and this permission notice shall be
+\ included in all copies or substantial portions of the Software.
+\
+\ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+\ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+\ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+\ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+\ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+\ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+\ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+\
+\ LICENSE_END
More information about the OpenBIOS
mailing list