From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgWEk-0005yZ-At for qemu-devel@nongnu.org; Mon, 28 Sep 2015 07:04:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgWEg-0002AA-D4 for qemu-devel@nongnu.org; Mon, 28 Sep 2015 07:04:50 -0400 References: <1443284532-8634-1-git-send-email-laurent@vivier.eu> <1443284532-8634-8-git-send-email-laurent@vivier.eu> From: Thomas Huth Message-ID: <56091EC3.9010007@redhat.com> Date: Mon, 28 Sep 2015 13:04:35 +0200 MIME-Version: 1.0 In-Reply-To: <1443284532-8634-8-git-send-email-laurent@vivier.eu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 07/10][TRIVIAL] uninorth: add to bridge category List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-trivial@nongnu.org Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Alexander Graf , qemu-ppc@nongnu.org, Paolo Bonzini , John Snow On 26/09/15 18:22, Laurent Vivier wrote: > Uninorth is the mac99 PCI host controller, so add > it to the bridge category. > > Signed-off-by: Laurent Vivier > --- > hw/pci-host/uninorth.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/hw/pci-host/uninorth.c b/hw/pci-host/uninorth.c > index f0144eb..215b64f 100644 > --- a/hw/pci-host/uninorth.c > +++ b/hw/pci-host/uninorth.c > @@ -446,8 +446,10 @@ static const TypeInfo unin_internal_pci_host_info = { > static void pci_unin_main_class_init(ObjectClass *klass, void *data) > { > SysBusDeviceClass *sbc = SYS_BUS_DEVICE_CLASS(klass); > + DeviceClass *dc = DEVICE_CLASS(klass); > > sbc->init = pci_unin_main_init_device; > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > > static const TypeInfo pci_unin_main_info = { > @@ -460,8 +462,10 @@ static const TypeInfo pci_unin_main_info = { > static void pci_u3_agp_class_init(ObjectClass *klass, void *data) > { > SysBusDeviceClass *sbc = SYS_BUS_DEVICE_CLASS(klass); > + DeviceClass *dc = DEVICE_CLASS(klass); > > sbc->init = pci_u3_agp_init_device; > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > > static const TypeInfo pci_u3_agp_info = { > @@ -474,8 +478,10 @@ static const TypeInfo pci_u3_agp_info = { > static void pci_unin_agp_class_init(ObjectClass *klass, void *data) > { > SysBusDeviceClass *sbc = SYS_BUS_DEVICE_CLASS(klass); > + DeviceClass *dc = DEVICE_CLASS(klass); > > sbc->init = pci_unin_agp_init_device; > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > > static const TypeInfo pci_unin_agp_info = { > @@ -488,8 +494,10 @@ static const TypeInfo pci_unin_agp_info = { > static void pci_unin_internal_class_init(ObjectClass *klass, void *data) > { > SysBusDeviceClass *sbc = SYS_BUS_DEVICE_CLASS(klass); > + DeviceClass *dc = DEVICE_CLASS(klass); > > sbc->init = pci_unin_internal_init_device; > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } Reviewed-by: Thomas Huth