From: "Michael S. Tsirkin" <mst@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Alexander Graf <agraf@suse.de>,
Anthony Liguori <aliguori@us.ibm.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
kvm@vger.kernel.org, "Michael S. Tsirkin" <mst@redhat.com>,
Jan Kiszka <jan.kiszka@siemens.com>,
Riku Voipio <riku.voipio@iki.fi>, Christoph Hellwig <hch@lst.de>,
Blue Swirl <blauwirbel@gmail.com>,
Alex Williamson <alex.williamson@redhat.com>,
Isaku Yamahata <yamahata@valinux.co.jp>,
Paul Brook <paul@codesourcery.com>,
Paolo Bonzini <pbonzini@redhat.com>, Avi Kivity <avi@redhat.com>,
Aurelien Jarno <aurelien@aurel32.net>,
Richard Henderson <rth@twiddle.net>
Subject: [Qemu-devel] [PATCH 02/10] usb-ehci: move device/vendor/class id to qdev
Date: Tue, 14 Jun 2011 20:35:28 +0300 [thread overview]
Message-ID: <3f364eeef711d9150d3f6d55696c55d2a6dab4cd.1308072799.git.mst@redhat.com> (raw)
In-Reply-To: <cover.1308072799.git.mst@redhat.com>
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
next prev parent reply other threads:[~2011-06-14 17:35 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
2011-06-14 22:42 ` Isaku Yamahata
2011-06-14 17:35 ` Michael S. Tsirkin [this message]
2011-06-14 17:35 ` [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables Michael S. Tsirkin
2011-06-15 6:45 ` Gerd Hoffmann
2011-06-14 17:35 ` [Qemu-devel] [PATCH 04/10] lsi53c895a: " Michael S. Tsirkin
2011-06-15 9:23 ` Stefan Hajnoczi
2011-06-14 17:35 ` [Qemu-devel] [PATCH 05/10] wdt: " Michael S. Tsirkin
2011-06-14 22:47 ` Isaku Yamahata
2011-06-14 17:36 ` [Qemu-devel] [PATCH 06/10] kvm: " Michael S. Tsirkin
2011-06-15 7:38 ` Kevin Wolf
2011-06-15 8:25 ` Michael S. Tsirkin
2011-06-15 8:42 ` Jan Kiszka
2011-06-15 12:44 ` Chris Krumme
2011-06-15 18:29 ` Michael S. Tsirkin
2011-06-14 17:36 ` [Qemu-devel] [PATCH 07/10] alpha/translate: remve " Michael S. Tsirkin
2011-06-14 17:47 ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 08/10] alpha: remove unused variable Michael S. Tsirkin
2011-06-14 17:47 ` Richard Henderson
2011-06-23 11:47 ` Peter Maydell
2011-06-23 15:25 ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 09/10] exec: " Michael S. Tsirkin
2011-06-26 11:08 ` Michael S. Tsirkin
2011-06-26 14:32 ` Stefan Hajnoczi
2011-06-14 17:36 ` [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables Michael S. Tsirkin
2011-06-15 8:35 ` Alexander Graf
2011-06-15 8:55 ` Michael S. Tsirkin
2011-06-15 14:32 ` Richard Henderson
2011-06-15 18:40 ` Michael S. Tsirkin
2011-06-15 16:51 ` Peter Maydell
2011-06-26 11:11 ` Michael S. Tsirkin
2011-06-27 9:06 ` Peter Maydell
2011-06-27 9:13 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f364eeef711d9150d3f6d55696c55d2a6dab4cd.1308072799.git.mst@redhat.com \
--to=mst@redhat.com \
--cc=agraf@suse.de \
--cc=alex.williamson@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=aurelien@aurel32.net \
--cc=avi@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=hch@lst.de \
--cc=jan.kiszka@siemens.com \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.com \
--cc=mtosatti@redhat.com \
--cc=paul@codesourcery.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
--cc=rth@twiddle.net \
--cc=stefanha@linux.vnet.ibm.com \
--cc=yamahata@valinux.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).