Received: from eggs.gnu.org ([140.186.70.92]:55564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnuVc-0008AR-C4 for qemu-devel@nongnu.org; Thu, 19 Jan 2012 11:06:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnuKs-0007W0-5m for qemu-devel@nongnu.org; Thu, 19 Jan 2012 10:55:36 -0500 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Alexander Graf In-Reply-To: <1326979493-3789-1-git-send-email-afaerber@suse.de> Date: Thu, 19 Jan 2012 16:55:29 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1326979493-3789-1-git-send-email-afaerber@suse.de> Subject: Re: [Qemu-devel] [PATCH] unin_pci: Clean up qdev names List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Andreas_F=E4rber?= Cc: Anthony Liguori , qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 19.01.2012, at 14:24, Andreas F=E4rber wrote: > Add -pcihost to SysBus devices to resolve name conflicts, > and clarify PCI vs. Internal PCI. >=20 > Signed-off-by: Andreas F=E4rber > Cc: Alexander Graf > Cc: Anthony Liguori > --- > hw/unin_pci.c | 53 = ++++++++++++++++++++++++++++++++++++++--------------- > 1 files changed, 38 insertions(+), 15 deletions(-) >=20 > diff --git a/hw/unin_pci.c b/hw/unin_pci.c > index 14d9914..bd1b32a 100644 > --- a/hw/unin_pci.c > +++ b/hw/unin_pci.c > @@ -213,7 +213,7 @@ PCIBus *pci_pmac_init(qemu_irq *pic, >=20 > /* Use values found on a real PowerMac */ > /* Uninorth main bus */ > - dev =3D qdev_create(NULL, "uni-north"); > + dev =3D qdev_create(NULL, "uni-north-pci-pcihost"); > qdev_init_nofail(dev); > s =3D sysbus_from_qdev(dev); > d =3D FROM_SYSBUS(UNINState, s); > @@ -245,7 +245,7 @@ PCIBus *pci_pmac_init(qemu_irq *pic, >=20 > /* Uninorth AGP bus */ > pci_create_simple(d->host_state.bus, PCI_DEVFN(11, 0), = "uni-north-agp"); > - dev =3D qdev_create(NULL, "uni-north-agp"); > + dev =3D qdev_create(NULL, "uni-north-agp-pcihost"); > qdev_init_nofail(dev); > s =3D sysbus_from_qdev(dev); > sysbus_mmio_map(s, 0, 0xf0800000); > @@ -254,8 +254,8 @@ PCIBus *pci_pmac_init(qemu_irq *pic, > /* Uninorth internal bus */ > #if 0 > /* XXX: not needed for now */ > - pci_create_simple(d->host_state.bus, PCI_DEVFN(14, 0), = "uni-north-pci"); > - dev =3D qdev_create(NULL, "uni-north-pci"); > + pci_create_simple(d->host_state.bus, PCI_DEVFN(14, 0), = "uni-north-internal-pci"); agraf@lychee:/home/agraf/release/qemu> git pw am 'unin_pci: Clean up = qdev names' WARNING: line over 80 characters #53: FILE: hw/unin_pci.c:257: + pci_create_simple(d->host_state.bus, PCI_DEVFN(14, 0), = "uni-north-internal-pci"); total: 0 errors, 1 warnings, 100 lines checked Mind to fix that one up and resubmit? The rest looks good to me. Alex