diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-05-25 10:58:07 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-06-12 10:33:34 +0300 |
commit | 51387f864c7421aba07b5b445cd7835bbc496a07 (patch) | |
tree | 61c1db0f5a5613afa97f316e7c48be730a73f2e6 /hw/bonito.c | |
parent | 580b7295e10d08d3a228ad2b1d5f3f3af9218ec5 (diff) | |
download | qemu-51387f864c7421aba07b5b445cd7835bbc496a07.zip qemu-51387f864c7421aba07b5b445cd7835bbc496a07.tar.gz qemu-51387f864c7421aba07b5b445cd7835bbc496a07.tar.bz2 |
hw/bonito.c: convert to PCIDeviceInfo to initialize ids
use PCIDeviceInfo to initialize ids.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/bonito.c')
-rw-r--r-- | hw/bonito.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/hw/bonito.c b/hw/bonito.c index 65a4a63..e8c57a3 100644 --- a/hw/bonito.c +++ b/hw/bonito.c @@ -691,11 +691,7 @@ static int bonito_initfn(PCIDevice *dev) PCIBonitoState *s = DO_UPCAST(PCIBonitoState, dev, dev); /* Bonito North Bridge, built on FPGA, VENDOR_ID/DEVICE_ID are "undefined" */ - pci_config_set_vendor_id(dev->config, 0xdf53); - pci_config_set_device_id(dev->config, 0x00d5); - pci_config_set_class(dev->config, PCI_CLASS_BRIDGE_HOST); pci_config_set_prog_interface(dev->config, 0x00); - pci_config_set_revision(dev->config, 0x01); /* set the north bridge register mapping */ s->bonito_reg_handle = cpu_register_io_memory(bonito_read, bonito_write, s, @@ -796,6 +792,11 @@ static PCIDeviceInfo bonito_info = { .qdev.vmsd = &vmstate_bonito, .qdev.no_user = 1, .init = bonito_initfn, + /*Bonito North Bridge, built on FPGA, VENDOR_ID/DEVICE_ID are "undefined"*/ + .vendor_id = 0xdf53, + .device_id = 0x00d5, + .revision = 0x01, + .class_id = PCI_CLASS_BRIDGE_HOST, }; static SysBusDeviceInfo bonito_pcihost_info = { |