Revision 231f5f43 hw/gt64xxx.c

b/hw/gt64xxx.c
1118 1118
static int gt64120_pci_init(PCIDevice *d)
1119 1119
{
1120 1120
    /* FIXME: Malta specific hw assumptions ahead */
1121
    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_MARVELL);
1122
    pci_config_set_device_id(d->config, PCI_DEVICE_ID_MARVELL_GT6412X);
1123 1121
    pci_set_word(d->config + PCI_COMMAND, 0);
1124 1122
    pci_set_word(d->config + PCI_STATUS,
1125 1123
                 PCI_STATUS_FAST_BACK | PCI_STATUS_DEVSEL_MEDIUM);
1126
    pci_set_byte(d->config + PCI_CLASS_REVISION, 0x10);
1127 1124
    pci_config_set_prog_interface(d->config, 0);
1128
    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);
1129 1125
    pci_set_long(d->config + PCI_BASE_ADDRESS_0, 0x00000008);
1130 1126
    pci_set_long(d->config + PCI_BASE_ADDRESS_1, 0x01000008);
1131 1127
    pci_set_long(d->config + PCI_BASE_ADDRESS_2, 0x1c000000);
......
1141 1137
    .qdev.name = "gt64120_pci",
1142 1138
    .qdev.size = sizeof(PCIDevice),
1143 1139
    .init      = gt64120_pci_init,
1140
    .vendor_id = PCI_VENDOR_ID_MARVELL,
1141
    .device_id = PCI_DEVICE_ID_MARVELL_GT6412X,
1142
    .revision  = 0x10,
1143
    .class_id  = PCI_CLASS_BRIDGE_HOST,
1144 1144
};
1145 1145

  
1146 1146
static void gt64120_pci_register_devices(void)

Also available in: Unified diff