X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fpci.h;h=ff2e27d5813e015e5ffc6a603e4327dac8d46a19;hb=c30d1b88a60c3a8df426ce81553675bbe4afef52;hp=377b3a98d97f8920a293ed2a319f2bf029d960f4;hpb=22f1d78afcf33835e3fa43ea41bb43f80f761a8a;p=palacios.git diff --git a/palacios/include/devices/pci.h b/palacios/include/devices/pci.h index 377b3a9..ff2e27d 100644 --- a/palacios/include/devices/pci.h +++ b/palacios/include/devices/pci.h @@ -51,6 +51,8 @@ typedef enum {PCI_STD_DEVICE, PCI_TO_PCI_BRIDGE, PCI_CARDBUS, PCI_MULTIFUNCTION, #define PCI_AUTO_DEV_NUM (-1) +struct guest_info; + struct pci_device; struct v3_pci_bar { @@ -81,7 +83,7 @@ struct v3_pci_bar { // Internal PCI data uint32_t val; - int updated; + uint8_t updated; uint32_t mask; }; @@ -149,9 +151,9 @@ struct pci_device { int v3_pci_set_irq_bridge(struct vm_device * pci_bus, int bus_num, - int (*raise_pci_irq)(struct vm_device * dev, struct pci_device * pci_dev), - int (*lower_pci_irq)(struct vm_device * dev, struct pci_device * pci_dev), - struct vm_device * bridge_dev); + int (*raise_pci_irq)(struct pci_device * pci_dev, void * dev_data), + int (*lower_pci_irq)(struct pci_device * pci_dev, void * dev_data), + void * dev_data); int v3_pci_raise_irq(struct vm_device * pci_bus, int bus_num, struct pci_device * dev);