All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] hw/pci-bridge/dec: Classify the DEC PCI bridge as bridge device
@ 2017-06-13 19:48 ` Thomas Huth
  0 siblings, 0 replies; 14+ messages in thread
From: Thomas Huth @ 2017-06-13 19:48 UTC (permalink / raw)
  To: qemu-devel, Alexander Graf, Michael S. Tsirkin, Marcel Apfelbaum
  Cc: qemu-ppc, David Gibson, qemu-trivial

This way the bridge shows up in the correct section of the
"-device help" text.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 hw/pci-bridge/dec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/pci-bridge/dec.c b/hw/pci-bridge/dec.c
index cca9362..eb275e1 100644
--- a/hw/pci-bridge/dec.c
+++ b/hw/pci-bridge/dec.c
@@ -62,6 +62,7 @@ static void dec_21154_pci_bridge_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
 
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     k->realize = dec_pci_bridge_realize;
     k->exit = pci_bridge_exitfn;
     k->vendor_id = PCI_VENDOR_ID_DEC;
@@ -118,6 +119,7 @@ static void dec_21154_pci_host_class_init(ObjectClass *klass, void *data)
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
     DeviceClass *dc = DEVICE_CLASS(klass);
 
+    set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
     k->realize = dec_21154_pci_host_realize;
     k->vendor_id = PCI_VENDOR_ID_DEC;
     k->device_id = PCI_DEVICE_ID_DEC_21154;
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-06-19 12:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-13 19:48 [Qemu-trivial] [PATCH] hw/pci-bridge/dec: Classify the DEC PCI bridge as bridge device Thomas Huth
2017-06-13 19:48 ` [Qemu-devel] " Thomas Huth
2017-06-13 19:58 ` [Qemu-trivial] " no-reply
2017-06-13 19:58   ` no-reply
2017-06-14  2:19   ` [Qemu-trivial] " Michael S. Tsirkin
2017-06-14  2:19     ` Michael S. Tsirkin
2017-06-14  2:30     ` [Qemu-trivial] " David Gibson
2017-06-14  2:30       ` David Gibson
2017-06-14  4:53       ` [Qemu-trivial] " Fam Zheng
2017-06-14  4:53         ` Fam Zheng
2017-06-14  1:36 ` [Qemu-trivial] " David Gibson
2017-06-14  1:36   ` [Qemu-devel] " David Gibson
2017-06-19 12:11 ` [Qemu-trivial] " Marcel Apfelbaum
2017-06-19 12:11   ` [Qemu-devel] " Marcel Apfelbaum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.