From 4c92325b5196ebd34886174a80d2f9fac35a004f Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Thu, 20 Jan 2011 16:21:38 +0900 Subject: pci: deassert intx on reset. deassert intx on device reset. So far pci_device_reset() is used for system reset. In that case, interrupt controller is reset at the same time so that all irq is are deasserted. But now pci bus reset/flr is supported, and in that case irq needs to be disabled explicitly. Signed-off-by: Isaku Yamahata Signed-off-by: Michael S. Tsirkin --- hw/pci.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/pci.h') diff --git a/hw/pci.h b/hw/pci.h index bc8d5bb3c7..0d2753f27e 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -264,6 +264,8 @@ void do_pci_info_print(Monitor *mon, const QObject *data); void do_pci_info(Monitor *mon, QObject **ret_data); void pci_bridge_update_mappings(PCIBus *b); +void pci_device_deassert_intx(PCIDevice *dev); + static inline void pci_set_byte(uint8_t *config, uint8_t val) { -- cgit v1.2.3