diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-12-22 15:14:35 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-12-22 09:01:53 +0200 |
commit | 0ead87c8debaf12bf4e8cf5130e4e7fb83dbf126 (patch) | |
tree | 851fbd24dd47cfa05405ac732ccb31fcc3384fe7 /hw/pci.c | |
parent | 362dd48c16728a656c1ef75f8160838127fd76d5 (diff) |
pcie: add flr support
Support flr: trigger device reset on flr config write.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -137,7 +137,11 @@ static void pci_update_irq_status(PCIDevice *dev) } } -static void pci_device_reset(PCIDevice *dev) +/* + * This function is called on #RST and FLR. + * FLR if PCI_EXP_DEVCTL_BCR_FLR is set + */ +void pci_device_reset(PCIDevice *dev) { int r; /* TODO: call the below unconditionally once all pci devices |