diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-12-10 19:25:03 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2009-12-23 16:35:00 +0200 |
commit | db579e9e73d455ab4031a9d0dcdc2c13688491ce (patch) | |
tree | a8fcc7e79297a4fa907ccb1ff5efd78b43cf61ab | |
parent | 4468fb6343f0540600e1dac04b543221fa2b42d5 (diff) | |
download | qemu-db579e9e73d455ab4031a9d0dcdc2c13688491ce.zip qemu-db579e9e73d455ab4031a9d0dcdc2c13688491ce.tar.gz qemu-db579e9e73d455ab4031a9d0dcdc2c13688491ce.tar.bz2 |
usb-uhci: symbolic names for pci registers
No functional changes. I verified that the generated binary
does not change.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Acked-by: Glauber Costa <glommer@gmail.com>
-rw-r--r-- | hw/usb-uhci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index dc52737..fdbb4d1 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -1065,11 +1065,12 @@ static int usb_uhci_common_initfn(UHCIState *s) uint8_t *pci_conf = s->dev.config; int i; - pci_conf[0x08] = 0x01; // revision number - pci_conf[0x09] = 0x00; + pci_conf[PCI_REVISION_ID] = 0x01; // revision number + pci_conf[PCI_CLASS_PROG] = 0x00; pci_config_set_class(pci_conf, PCI_CLASS_SERIAL_USB); pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type - pci_conf[0x3d] = 4; // interrupt pin 3 + /* TODO: reset value should be 0. */ + pci_conf[PCI_INTERRUPT_PIN] = 4; // interrupt pin 3 pci_conf[0x60] = 0x10; // release number usb_bus_new(&s->bus, &s->dev.qdev); |