From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0kRg-0000Yv-Vf for qemu-devel@nongnu.org; Mon, 14 Feb 2005 12:55:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0kRW-0000V0-VH for qemu-devel@nongnu.org; Mon, 14 Feb 2005 12:55:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0kRW-0000Ui-PF for qemu-devel@nongnu.org; Mon, 14 Feb 2005 12:55:30 -0500 Received: from [161.58.242.233] (helo=hotwww5.hotwww.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D0kDV-0002bu-Hu for qemu-devel@nongnu.org; Mon, 14 Feb 2005 12:41:01 -0500 From: Thayne Harbaugh Content-Type: text/plain Date: Mon, 14 Feb 2005 10:40:51 -0700 Message-Id: <1108402851.18292.15.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] PPC PReP PCI host bridge Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel I previously sent a patch to add a PCI host bridge to PPC PReP - it hasn't been applied. Currently, PReP lacks a PCI host bridge and only has a PCI to PCI bridge. Without a host bridge, PReP doesn't work correctly. I'm wondering when a correct host bridge, either the one I submitted or another one, will be added? I'd like to know so that OpenHackWare can be configured to recognize it. -------- Forwarded Message -------- > From: Thayne Harbaugh > Index: qemu-0.6.1/hw/pci.c > =================================================================== > --- qemu-0.6.1/hw/pci.c (.../qemu-0.6.1) (revision 7) > +++ qemu-0.6.1/hw/pci.c (.../external/qemu-0.6.1) (working copy) > @@ -698,10 +698,25 @@ > PPC_PCIIO_write, s); > cpu_register_physical_memory(0x80800000, 0x00400000, PPC_io_memory); > > - d = pci_register_device(s, "PREP PCI Bridge", sizeof(PCIDevice), 0, > - NULL, NULL); > + /* PCI host bridge */ > + d = pci_register_device(s, "PREP Host Bridge - Motorola Raven", sizeof(PCIDevice), > + 0, NULL, NULL); > + d->config[0x00] = 0x57; // vendor_id : Apple > + d->config[0x01] = 0x10; > + d->config[0x02] = 0x01; // device_id > + d->config[0x03] = 0x48; > + d->config[0x08] = 0x00; // revision > + d->config[0x0A] = 0x00; // class_sub = pci host > + d->config[0x0B] = 0x06; // class_base = PCI_bridge > + d->config[0x0C] = 0x08; // cache_line_size > + d->config[0x0D] = 0x10; // latency_timer > + d->config[0x0E] = 0x00; // header_type > + d->config[0x34] = 0x00; // capabilities_pointer > > - /* XXX: put correct IDs */ > + /* PCI to PCI bridge */ > + d = pci_register_device(s, "PREP PCI Bridge - Digital 21154", sizeof(PCIDevice), > + 0xa0 << 3, NULL, NULL); > + /* same values as PearPC - check this */ > d->config[0x00] = 0x11; // vendor_id > d->config[0x01] = 0x10; > d->config[0x02] = 0x26; // device_id > @@ -710,6 +725,7 @@ > d->config[0x0a] = 0x04; // class_sub = pci2pci > d->config[0x0b] = 0x06; // class_base = PCI_bridge > d->config[0x0e] = 0x01; // header_type > + > return s; > }