aboutsummaryrefslogtreecommitdiff
path: root/hw/dec_pci.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-02-14 09:01:14 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-02-14 09:01:14 +0000
commit204ff57128532207893f170dab4db158f2ca7024 (patch)
treeae7e097d91aa28e70d33c38a22e45347e908f5f2 /hw/dec_pci.c
parent9fe52c7f4876ad389a95da0daf54dde8a170cde9 (diff)
dec: use PCI accessors
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/dec_pci.c')
-rw-r--r--hw/dec_pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/dec_pci.c b/hw/dec_pci.c
index 8d059f1315..fb4973bb7c 100644
--- a/hw/dec_pci.c
+++ b/hw/dec_pci.c
@@ -81,9 +81,8 @@ static int dec_21154_pci_host_init(PCIDevice *d)
/* PCI2PCI bridge same values as PearPC - check this */
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_DEC);
pci_config_set_device_id(d->config, PCI_DEVICE_ID_DEC_21154);
- d->config[0x08] = 0x02; // revision
+ pci_set_byte(d->config + PCI_REVISION_ID, 0x02);
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_PCI);
- d->config[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_BRIDGE; // header_type
return 0;
}