Skip to contentSkip to conversation

pci: add some stubs

PATCH New Hervé Poussineau 1 participant 1 message Aug 3, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: add some stubs

---
 hw/pci-stub.c |   10 ++++++++++
 1 file changed, 10 insertions(+)
hw/pci-stub.c +10 -0
index e083191..ed31441 100644
@@ -39,6 +39,16 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num,
 {
 }
 
+uint32_t pci_default_read_config(PCIDevice *d,
+                                 uint32_t address, int len)
+{
+    return 0;
+}
+
+void pci_default_write_config(PCIDevice *d, uint32_t addr, uint32_t val, int l)
+{
+}
+
 const VMStateDescription vmstate_pci_device = {
     .name = "PCIDeviceStub",
     .version_id = 1,
Signature · 1 line
1.7.10.4