diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-07-27 15:46:24 +1000 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-10-12 13:20:00 +0200 |
commit | c9d1203de087ad20d1ef115355129a1b1082d8ed (patch) | |
tree | 5d4d0ea2156579cb16f91694252a0b3c3f2e27be /board-qemu/slof/tree.fs | |
parent | 35fc16fee354457ab171247d9e2b5387304b5eb3 (diff) | |
download | SLOF-c9d1203de087ad20d1ef115355129a1b1082d8ed.zip SLOF-c9d1203de087ad20d1ef115355129a1b1082d8ed.tar.gz SLOF-c9d1203de087ad20d1ef115355129a1b1082d8ed.tar.bz2 |
Add RTAS config space accessors and skeletton PHB
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'board-qemu/slof/tree.fs')
-rw-r--r-- | board-qemu/slof/tree.fs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/board-qemu/slof/tree.fs b/board-qemu/slof/tree.fs index c2ab824..2358b02 100644 --- a/board-qemu/slof/tree.fs +++ b/board-qemu/slof/tree.fs @@ -100,6 +100,28 @@ populate-vios 5a0 cp +: populate-pci-busses ( -- ) + \ Populate the /pci* children with their methods + " /" find-device get-node child + BEGIN + dup 0 <> + WHILE + dup set-node + dup " name" rot get-package-property 0 = IF + drop dup from-cstring + 2dup s" pci" strequal IF + s" pci-phb.fs" included + THEN + 2drop + THEN + peer + REPEAT drop + + device-end +; + +populate-pci-busses + 600 cp \ Add rtas cleanup last |