Fully decode PCI unit name attribute.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@603 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Laurent Vivier
2009-11-10 21:39:42 +00:00
parent 92e6599c92
commit d6365bca24
4 changed files with 138 additions and 17 deletions

View File

@@ -90,17 +90,3 @@ hex
\ : test-pci
\ 0 2 0 dump-pci-device
\ ;
\ only forth
: decode-unit-pci-bus ( str len bus -- phys.lo phys.mid phys.hi )
-rot ascii , left-split
( addr-R len-R addr-L len-L )
parse-hex b << f800 and
-rot parse-hex 8 << 700 and
or
( bus phys.hi )
swap ff and 10 << or
0 0 rot
;