aboutsummaryrefslogtreecommitdiff
path: root/hw/pci_bridge.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-10-20 17:18:51 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-10-20 12:05:10 +0200
commit0208def1cadd4f72f862e62548c2af268a543b20 (patch)
treeead3f1ff630bb7befced3d273b819b68ddedb639 /hw/pci_bridge.h
parent6da6d29fa63ab7adcc2959355497a44654f3703e (diff)
pci/bridge: fix pci_bridge_reset()
The lower bits of base/limit registers is RO and shouldn't be zero cleared on reset. This patch fixes it. In fact, the default value of base/limit registers aren't specified in the spec. And some bridges disable forwarding on reset instead of zeroing base/limit registers. So introduce one function to disable bridge forwarding so that such bridges can use it. It will be used later. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci_bridge.h')
-rw-r--r--hw/pci_bridge.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci_bridge.h b/hw/pci_bridge.h
index f6fade0322..84411a69dc 100644
--- a/hw/pci_bridge.h
+++ b/hw/pci_bridge.h
@@ -39,6 +39,7 @@ pcibus_t pci_bridge_get_limit(const PCIDevice *bridge, uint8_t type);
void pci_bridge_write_config(PCIDevice *d,
uint32_t address, uint32_t val, int len);
+void pci_bridge_disable_base_limit(PCIDevice *dev);
void pci_bridge_reset_reg(PCIDevice *dev);
void pci_bridge_reset(DeviceState *qdev);