Revision d7b61ecc

b/hw/unin_pci.c
279 279

  
280 280
static int unin_main_pci_host_init(PCIDevice *d)
281 281
{
282
    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
283
    pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);
284
    d->config[0x08] = 0x00; // revision
285
    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);
286 282
    d->config[0x0C] = 0x08; // cache_line_size
287 283
    d->config[0x0D] = 0x10; // latency_timer
288 284
    d->config[0x34] = 0x00; // capabilities_pointer
......
291 287

  
292 288
static int unin_agp_pci_host_init(PCIDevice *d)
293 289
{
294
    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
295
    pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_AGP);
296
    d->config[0x08] = 0x00; // revision
297
    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);
298 290
    d->config[0x0C] = 0x08; // cache_line_size
299 291
    d->config[0x0D] = 0x10; // latency_timer
300 292
    //    d->config[0x34] = 0x80; // capabilities_pointer
......
303 295

  
304 296
static int u3_agp_pci_host_init(PCIDevice *d)
305 297
{
306
    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
307
    pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_U3_AGP);
308
    /* revision */
309
    d->config[0x08] = 0x00;
310
    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);
311 298
    /* cache line size */
312 299
    d->config[0x0C] = 0x08;
313 300
    /* latency timer */
......
317 304

  
318 305
static int unin_internal_pci_host_init(PCIDevice *d)
319 306
{
320
    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
321
    pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_I_PCI);
322
    d->config[0x08] = 0x00; // revision
323
    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);
324 307
    d->config[0x0C] = 0x08; // cache_line_size
325 308
    d->config[0x0D] = 0x10; // latency_timer
326 309
    d->config[0x34] = 0x00; // capabilities_pointer
......
331 314
    .qdev.name = "uni-north",
332 315
    .qdev.size = sizeof(PCIDevice),
333 316
    .init      = unin_main_pci_host_init,
317
    .vendor_id = PCI_VENDOR_ID_APPLE,
318
    .device_id = PCI_DEVICE_ID_APPLE_UNI_N_PCI,
319
    .revision  = 0x00,
320
    .class_id  = PCI_CLASS_BRIDGE_HOST,
334 321
};
335 322

  
336 323
static PCIDeviceInfo u3_agp_pci_host_info = {
337 324
    .qdev.name = "u3-agp",
338 325
    .qdev.size = sizeof(PCIDevice),
339 326
    .init      = u3_agp_pci_host_init,
327
    .vendor_id = PCI_VENDOR_ID_APPLE,
328
    .device_id = PCI_DEVICE_ID_APPLE_U3_AGP,
329
    .revision  = 0x00,
330
    .class_id  = PCI_CLASS_BRIDGE_HOST,
340 331
};
341 332

  
342 333
static PCIDeviceInfo unin_agp_pci_host_info = {
343 334
    .qdev.name = "uni-north-agp",
344 335
    .qdev.size = sizeof(PCIDevice),
345 336
    .init      = unin_agp_pci_host_init,
337
    .vendor_id = PCI_VENDOR_ID_APPLE,
338
    .device_id = PCI_DEVICE_ID_APPLE_UNI_N_AGP,
339
    .revision  = 0x00,
340
    .class_id  = PCI_CLASS_BRIDGE_HOST,
346 341
};
347 342

  
348 343
static PCIDeviceInfo unin_internal_pci_host_info = {
349 344
    .qdev.name = "uni-north-pci",
350 345
    .qdev.size = sizeof(PCIDevice),
351 346
    .init      = unin_internal_pci_host_init,
347
    .vendor_id = PCI_VENDOR_ID_APPLE,
348
    .device_id = PCI_DEVICE_ID_APPLE_UNI_N_I_PCI,
349
    .revision  = 0x00,
350
    .class_id  = PCI_CLASS_BRIDGE_HOST,
352 351
};
353 352

  
354 353
static void unin_register_devices(void)

Also available in: Unified diff