
Author: laurent Date: 2009-03-08 02:06:56 +0100 (Sun, 08 Mar 2009) New Revision: 466 Modified: openbios-devel/arch/ppc/qemu/init.c Log: Author: Alexander Graf <alex@csgraf.de> Expose PCI controller information 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@csgraf.de> Signed-off-by: Laurent Vivier <Laurent@vivier.eu> Modified: openbios-devel/arch/ppc/qemu/init.c =================================================================== --- openbios-devel/arch/ppc/qemu/init.c 2009-03-08 01:03:17 UTC (rev 465) +++ openbios-devel/arch/ppc/qemu/init.c 2009-03-08 01:06:56 UTC (rev 466) @@ -566,6 +566,17 @@ 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");
participants (1)
-
svn@openbios.org