aboutsummaryrefslogtreecommitdiff
path: root/hw/pci_host.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-08-04 17:15:22 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-04 17:15:22 -0500
commit81e34a2401f7ffd519bb7f093e833cb48734169f (patch)
tree146a7b6eebbee1367453fde501d4462ac6d9f8b4 /hw/pci_host.h
parente06516f565dca3636a4cbef770b191a5fcdf63ab (diff)
parentcb4b4fde82b064472c13fb9d983ca36a70e560aa (diff)
Merge remote-tracking branch 'mst/for_anthony' into staging
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 05dcb662c6..7f551143bb 100644
--- a/hw/pci_host.h
+++ b/hw/pci_host.h
@@ -40,6 +40,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);