Patchwork pci: add some stubs

login
register
mail settings
Submitter Hervé Poussineau
Date Aug. 3, 2012, 8:13 p.m.
Message ID <1344024818-32389-1-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/175044/
State New
Headers show

Comments

Hervé Poussineau - Aug. 3, 2012, 8:13 p.m.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/pci-stub.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/hw/pci-stub.c b/hw/pci-stub.c
index e083191..ed31441 100644
--- a/hw/pci-stub.c
+++ b/hw/pci-stub.c
@@ -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,