mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Really create a tree for PCI devices (Laurent Vivier)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@362 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -93,27 +93,6 @@ hex
|
||||
|
||||
\ only forth
|
||||
|
||||
|
||||
\ -------------------------------------------------------------------------
|
||||
\ PCI encode/decode unit
|
||||
\ -------------------------------------------------------------------------
|
||||
|
||||
\ we only implement DD and DD,F
|
||||
: encode-unit-pci ( phys.lo phy.mid phys.hi -- str len )
|
||||
nip nip ff00 and 8 >> dup 3 >>
|
||||
swap 7 and
|
||||
( ddddd fff )
|
||||
|
||||
?dup if
|
||||
pocket tohexstr
|
||||
" ," pocket tmpstrcat
|
||||
else
|
||||
0 0 pocket tmpstrcpy
|
||||
then
|
||||
>r
|
||||
rot pocket tohexstr r> tmpstrcat drop
|
||||
;
|
||||
|
||||
: 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 )
|
||||
|
||||
Reference in New Issue
Block a user