Revision 502a5395 hw/ide.c

b/hw/ide.c
2490 2490

  
2491 2491
/* hd_table must contain 4 block drivers */
2492 2492
/* NOTE: for the PIIX3, the IRQs and IOports are hardcoded */
2493
void pci_piix3_ide_init(PCIBus *bus, BlockDriverState **hd_table)
2493
void pci_piix3_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn)
2494 2494
{
2495 2495
    PCIIDEState *d;
2496 2496
    uint8_t *pci_conf;
......
2498 2498
    /* register a function 1 of PIIX3 */
2499 2499
    d = (PCIIDEState *)pci_register_device(bus, "PIIX3 IDE", 
2500 2500
                                           sizeof(PCIIDEState),
2501
                                           ((PCIDevice *)piix3_state)->devfn + 1, 
2501
                                           devfn,
2502 2502
                                           NULL, NULL);
2503 2503
    d->type = IDE_TYPE_PIIX3;
2504 2504

  

Also available in: Unified diff