diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-05-03 19:03:00 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-05-03 19:03:00 +0000 |
commit | 6407f37373093fd56cde9e20b0b5a878b67521ca (patch) | |
tree | 88aaaa831dd73aa4d3381a53f506ea89b7d685bf /hw/grackle_pci.c | |
parent | ccbb4d44fc5e92bac6006a218ccda3138407352c (diff) | |
download | qemu-6407f37373093fd56cde9e20b0b5a878b67521ca.zip qemu-6407f37373093fd56cde9e20b0b5a878b67521ca.tar.gz qemu-6407f37373093fd56cde9e20b0b5a878b67521ca.tar.bz2 |
use PCI_HEADER_TYPE.
use symbolic value instead of 0x0e and related value.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'hw/grackle_pci.c')
-rw-r--r-- | hw/grackle_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c index 5161727..61606b2 100644 --- a/hw/grackle_pci.c +++ b/hw/grackle_pci.c @@ -149,7 +149,7 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic) d->config[0x08] = 0x00; // revision d->config[0x09] = 0x01; pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST); - d->config[0x0e] = 0x00; // header_type + d->config[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type #if 0 /* PCI2PCI bridge same values as PearPC - check this */ @@ -157,7 +157,7 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic) pci_config_set_device_id(d->config, PCI_DEVICE_ID_DEC_21154); d->config[0x08] = 0x02; // revision pci_config_set_class(d->config, PCI_CLASS_BRIDGE_PCI); - d->config[0x0e] = 0x01; // header_type + d->config[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_BRIDGE; // header_type d->config[0x18] = 0x0; // primary_bus d->config[0x19] = 0x1; // secondary_bus |