X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fide.c;h=b1c13a6f6a993ed6052c52dbf6133fa18f2162c4;hp=1776e9c8d35e4dcee85236c0aab7f29e1dba5c94;hb=3a4e54ec208ea3589963b410d2d73292bbc4a8fe;hpb=8a441df14ef65bb559ce090249343ec1dac1a7fc diff --git a/palacios/src/devices/ide.c b/palacios/src/devices/ide.c index 1776e9c..b1c13a6 100644 --- a/palacios/src/devices/ide.c +++ b/palacios/src/devices/ide.c @@ -1397,7 +1397,7 @@ static void init_channel(struct ide_channel * channel) { } -static int pci_config_update(struct pci_device * pci_dev, uint_t reg_num, int length) { +static int pci_config_update(uint_t reg_num, void * src, uint_t length, void * private_data) { PrintDebug("PCI Config Update\n"); PrintDebug("\t\tInterupt register (Dev=%s), irq=%d\n", pci_dev->name, pci_dev->config_header.intr_line); @@ -1566,7 +1566,7 @@ static int ide_init(struct guest_info * vm, void * cfg_data) { pci_dev = v3_pci_register_device(ide->pci_bus, PCI_STD_DEVICE, 0, sb_pci->dev_num, 1, "PIIX3_IDE", bars, - pci_config_update, NULL, NULL, dev); + pci_config_update, NULL, NULL, dev, dev); if (pci_dev == NULL) { PrintError("Failed to register IDE BUS %d with PCI\n", i);