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:
@@ -1,24 +1,5 @@
|
||||
[IFDEF] CONFIG_DRIVER_PCI
|
||||
|
||||
dev /
|
||||
|
||||
\ simple pci bus node
|
||||
new-device
|
||||
" pci" device-name
|
||||
3 encode-int " #address-cells" property
|
||||
2 encode-int " #size-cells" property
|
||||
0 encode-int 0 encode-int encode+ " bus-range" property
|
||||
" pci" encode-string " device_type" property
|
||||
|
||||
external
|
||||
: open ( cr ." opening PCI" cr ) true ;
|
||||
: close ;
|
||||
: decode-unit 0 decode-unit-pci-bus ;
|
||||
: encode-unit encode-unit-pci ;
|
||||
finish-device
|
||||
|
||||
device-end
|
||||
|
||||
: pci-addr-encode ( addr.lo addr.mi addr.hi )
|
||||
rot >r swap >r
|
||||
encode-int
|
||||
@@ -31,6 +12,4 @@ device-end
|
||||
rot encode-int encode+
|
||||
;
|
||||
|
||||
|
||||
|
||||
[THEN]
|
||||
|
||||
Reference in New Issue
Block a user