Skip to contentSkip to conversation

[5862] IBM PowerPC 4xx 32-bit PCI controller emulation

Qemu-devel Aurelien Jarno 1 participant 1 message Dec 2, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 5862

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5862
Author:   aurel32
Date:     2008-12-02 23:53:50 +0000 (Tue, 02 Dec 2008)

Log Message:
-----------
IBM PowerPC 4xx 32-bit PCI controller emulation

This PCI controller can be found on a number of 4xx SoCs, including the 440EP.

Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/ppc4xx.h

Added Paths:
-----------
trunk/hw/ppc4xx_pci.c

Modified: trunk/Makefile.target
===================================================================

Makefile.target +1 -1
@@ -679,7 +679,7 @@
 # NewWorld PowerMac
 OBJS+= unin_pci.o ppc_chrp.o
 # PowerPC 4xx boards
-OBJS+= pflash_cfi02.o ppc4xx_devs.o ppc405_uc.o ppc405_boards.o
+OBJS+= pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
 endif
 ifeq ($(TARGET_BASE_ARCH), mips)
 OBJS+= mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o

Modified: trunk/hw/ppc4xx.h
===================================================================

hw/ppc4xx.h +8 -0
@@ -25,6 +25,8 @@
 #if !defined(PPC_4XX_H)
 #define PPC_4XX_H
 
+#include "pci.h"
+
 /* PowerPC 4xx core initialization */
 CPUState *ppc4xx_init (const char *cpu_model,
                        clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
@@ -46,4 +48,10 @@
 qemu_irq *ppcuic_init (CPUState *env, qemu_irq *irqs,
                        uint32_t dcr_base, int has_ssr, int has_vr);
 
+PCIBus *ppc4xx_pci_init(CPUState *env, qemu_irq pci_irqs[4],
+                        target_phys_addr_t config_space,
+                        target_phys_addr_t int_ack,
+                        target_phys_addr_t special_cycle,
+                        target_phys_addr_t registers);
+
 #endif /* !defined(PPC_4XX_H) */

Added: trunk/hw/ppc4xx_pci.c
===================================================================

hw/ppc4xx_pci.c +419 -0

419 lines not on this page · raw message