summaryrefslogtreecommitdiff
path: root/hw/pci_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pci_host.h')
-rw-r--r--hw/pci_host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/pci_host.h b/hw/pci_host.h
index 0a585951e0..c8390eec56 100644
--- a/hw/pci_host.h
+++ b/hw/pci_host.h
@@ -39,6 +39,12 @@ struct PCIHostState {
PCIBus *bus;
};
+/* common internal helpers for PCI/PCIe hosts, cut off overflows */
+void pci_host_config_write_common(PCIDevice *pci_dev, uint32_t addr,
+ uint32_t limit, uint32_t val, uint32_t len);
+uint32_t pci_host_config_read_common(PCIDevice *pci_dev, uint32_t addr,
+ uint32_t limit, uint32_t len);
+
void pci_data_write(PCIBus *s, uint32_t addr, uint32_t val, int len);
uint32_t pci_data_read(PCIBus *s, uint32_t addr, int len);