Skip to contentSkip to conversation

[6661] kvm/powerpc: Add freescale pci controller's support

Qemu-devel Aurelien Jarno 1 participant 1 message Mar 2, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 6661

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6661
Author:   aurel32
Date:     2009-03-02 16:42:23 +0000 (Mon, 02 Mar 2009)

Log Message:
-----------
kvm/powerpc: Add freescale pci controller's support

This patch add the emulation of freescale's pci controller for MPC85xx platform.

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

Added Paths:
-----------

    trunk/hw/ppce500_pci.c

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

Makefile.target +2 -0
@@ -602,6 +602,8 @@
 # PowerPC 4xx boards
 OBJS+= pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
 OBJS+= ppc440.o ppc440_bamboo.o
+# PowerPC E500 boards
+OBJS+= ppce500_pci.o
 ifdef FDT_LIBS
 OBJS+= device_tree.o
 LIBS+= $(FDT_LIBS)

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

hw/pci.h +4 -0
@@ -40,6 +40,7 @@
 #define PCI_CLASS_BRIDGE_OTHER           0x0680
 
 #define PCI_CLASS_PROCESSOR_CO           0x0b40
+#define PCI_CLASS_PROCESSOR_POWERPC      0x0b20
 
 #define PCI_CLASS_OTHERS                 0xff
 
@@ -112,6 +113,9 @@
 #define PCI_DEVICE_ID_INTEL_82371AB_2    0x7112
 #define PCI_DEVICE_ID_INTEL_82371AB_3    0x7113
 
+#define PCI_VENDOR_ID_FSL                0x1957
+#define PCI_DEVICE_ID_FSL_E500           0x0030
+
 /* Red Hat / Qumranet (for QEMU) -- see pci-ids.txt */
 #define PCI_VENDOR_ID_REDHAT_QUMRANET    0x1af4
 #define PCI_SUBVENDOR_ID_REDHAT_QUMRANET 0x1af4

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

hw/ppce500_pci.c +365 -0

365 lines not on this page · raw message