qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] usb-ehci: move device/vendor/class id to qdev
@ 2011-06-14 17:40 Michael S. Tsirkin
  2011-06-15  6:32 ` Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

This is on top of my pci tree.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 hw/usb-ehci.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index f63519e..4d6989a 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -1945,6 +1945,10 @@ static PCIDeviceInfo ehci_info = {
     .qdev.name    = "usb-ehci",
     .qdev.size    = sizeof(EHCIState),
     .init         = usb_ehci_initfn,
+    .vendor_id    = PCI_VENDOR_ID_INTEL,
+    .device_id    = PCI_DEVICE_ID_INTEL_82801D,
+    .revision     = 0x10,
+    .class_id     = PCI_CLASS_SERIAL_USB,
 };
 
 static int usb_ehci_initfn(PCIDevice *dev)
@@ -1953,12 +1957,7 @@ static int usb_ehci_initfn(PCIDevice *dev)
     uint8_t *pci_conf = s->dev.config;
     int i;
 
-    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
-    pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82801D);
-    pci_set_byte(&pci_conf[PCI_REVISION_ID], 0x10);
     pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20);
-    pci_config_set_class(pci_conf, PCI_CLASS_SERIAL_USB);
-    pci_set_byte(&pci_conf[PCI_HEADER_TYPE], PCI_HEADER_TYPE_NORMAL);
 
     /* capabilities pointer */
     pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00);
-- 
1.7.5.53.gc233e

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

* Re: [Qemu-devel] [PATCH] usb-ehci: move device/vendor/class id to qdev
  2011-06-14 17:40 [Qemu-devel] [PATCH] usb-ehci: move device/vendor/class id to qdev Michael S. Tsirkin
@ 2011-06-15  6:32 ` Gerd Hoffmann
  2011-06-15  6:48   ` Michael S. Tsirkin
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2011-06-15  6:32 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: qemu-devel

On 06/14/11 19:40, Michael S. Tsirkin wrote:
> This is on top of my pci tree.

Looks good.  Wanna queue this up in your PCI tree, so all devices are 
switched over at once when this is merged?

cheers,
   Gerd

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

* Re: [Qemu-devel] [PATCH] usb-ehci: move device/vendor/class id to qdev
  2011-06-15  6:32 ` Gerd Hoffmann
@ 2011-06-15  6:48   ` Michael S. Tsirkin
  0 siblings, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2011-06-15  6:48 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

On Wed, Jun 15, 2011 at 08:32:50AM +0200, Gerd Hoffmann wrote:
> On 06/14/11 19:40, Michael S. Tsirkin wrote:
> >This is on top of my pci tree.
> 
> Looks good.  Wanna queue this up in your PCI tree, so all devices
> are switched over at once when this is merged?
> 
> cheers,
>   Gerd

Guess so, yes.
Thanks for the review.

-- 
MST

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

end of thread, other threads:[~2011-06-15  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 17:40 [Qemu-devel] [PATCH] usb-ehci: move device/vendor/class id to qdev Michael S. Tsirkin
2011-06-15  6:32 ` Gerd Hoffmann
2011-06-15  6:48   ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).