From: Blue Swirl Date: Tue, 17 Feb 2009 15:09:04 +0000 Subject: Re: [Qemu-devel] [PATCH 2/5] kvm/powerpc: Add freescale pci Message-Id: List-Id: References: <1234864778-19099-1-git-send-email-yu.liu@freescale.com> <1234864778-19099-2-git-send-email-yu.liu@freescale.com> <1234864778-19099-3-git-send-email-yu.liu@freescale.com> In-Reply-To: <1234864778-19099-3-git-send-email-yu.liu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: qemu-devel@nongnu.org Cc: kvm-ppc@vger.kernel.org, Liu Yu , hollisb@us.ibm.com, aurelien@aurel32.net On 2/17/09, Liu Yu wrote: > This patch add the emulation of freescale's pci controller for E500 platform. > > Signed-off-by: Liu Yu A reset function (registered with qemu_register_reset) would be nice. > + * Copyright (C) 2009 Freescale Semiconductor, Inc. All rights reserved. "All rights reserved" conflicts with GPL. > + d->config[0x00] = 0x57; // vendor_id > + d->config[0x01] = 0x19; > + d->config[0x02] = 0x30; // device_id > + d->config[0x03] = 0x00; Please use pci_config_set_vendor_id and pci_config_set_device_id functions and add the ID #defines to hw/pci.h. > + d->config[0x0a] = 0x20; // class_sub = other bridge type > + d->config[0x0b] = 0x0B; // class_base = PCI_bridge I'd think these should be 0x06 (PCI_BASE_CLASS_BRIDGE) and 0x04 (PCI_CLASS_BRIDGE_PCI). Are these correct?