diff mbox

[IGDVFIO,6/8] RFC and help completing: Intel IGD Direct Assignment with VFIO

Message ID CAKJ_wKTs8E6_qAcaLfJzm5upQc4hAA+HMRmnUZwE4skd3ARWUQ@mail.gmail.com
State New
Headers show

Commit Message

Andrew Barnes Sept. 24, 2014, 1:20 p.m. UTC
include/hw/pci/pci.h

patch
---------------------

 bool pci_bus_is_express(PCIBus *bus);
 bool pci_bus_is_root(PCIBus *bus);
 void pci_bus_new_inplace(PCIBus *bus, size_t bus_size, DeviceState *parent,
diff mbox

Patch

diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index c352c7b..d3bc224 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -338,6 +338,9 @@  typedef PCIINTxRoute (*pci_route_irq_fn)(void *opaque,
int pin);
 #define PCI_BUS(obj) OBJECT_CHECK(PCIBus, (obj), TYPE_PCI_BUS)
 #define TYPE_PCIE_BUS "PCIE"

+uint32_t host_pci_read_config(int bus, int slot, int fn, uint32_t address,
int len);
+void host_pci_write_config(int bus, int slot, int fn, uint32_t address,
int len, uint32_t val);
+