[OpenBIOS] [PATCH] Expose PCI controller information
Alexander Graf
agraf at suse.de
Thu Mar 5 22:24:15 CET 2009
Linux tries to detect which PCI controller it's supposed to work with.
On PPC32 there is fallback code that doesn't get compiled with
CONFIG_PPC64, so we really have to expose a controller or we don't have
pci config space accessor functions.
Let's expose a un3-agp if we have a mac99 model, as that's what is
supposed to be in there anyways.
Signed-off-by: Alexander Graf <alex at csgraf.de>
---
arch/ppc/qemu/init.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c
index 9b7bdab..f53cdc7 100644
--- a/arch/ppc/qemu/init.c
+++ b/arch/ppc/qemu/init.c
@@ -561,6 +561,17 @@ arch_of_init( void )
push_str("system-id");
fword("property");
+ /* pci info */
+
+ if (machine_id == ARCH_MAC99) {
+ push_str("/pci");
+ fword("find-device");
+ push_str("u3-agp");
+ fword("encode-string");
+ push_str("compatible");
+ fword("property");
+ }
+
/* memory info */
push_str("/memory");
--
1.6.0.2
More information about the OpenBIOS
mailing list