summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorBALATON Zoltan2021-10-15 03:06:20 +0200
committerPhilippe Mathieu-Daudé2021-10-18 00:41:36 +0200
commita4d65b701ffce52b69b5b6c3f253519129af182e (patch)
treea4a98dc55a8644b6dd489bc12e24eb5ca9c65a4d /include/hw
parentvt82c686: Move common code to via_isa_realize (diff)
downloadqemu-a4d65b701ffce52b69b5b6c3f253519129af182e.tar.gz
qemu-a4d65b701ffce52b69b5b6c3f253519129af182e.tar.xz
qemu-a4d65b701ffce52b69b5b6c3f253519129af182e.zip
vt82c686: Add a method to VIA_ISA to raise ISA interrupts
Other functions in the VT82xx chips need to raise ISA interrupts. Keep a reference to them in the device state and add via_isa_set_irq() to allow setting their state. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Message-Id: <778c04dc2c8affac060b8edf9e8d7dab3c3e04eb.1634259980.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/isa/vt82c686.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/isa/vt82c686.h b/include/hw/isa/vt82c686.h
index 0f01aaa471..56ac141be3 100644
--- a/include/hw/isa/vt82c686.h
+++ b/include/hw/isa/vt82c686.h
@@ -1,6 +1,8 @@
#ifndef HW_VT82C686_H
#define HW_VT82C686_H
+#include "hw/pci/pci.h"
+
#define TYPE_VT82C686B_ISA "vt82c686b-isa"
#define TYPE_VT82C686B_PM "vt82c686b-pm"
#define TYPE_VT8231_ISA "vt8231-isa"
@@ -8,4 +10,6 @@
#define TYPE_VIA_AC97 "via-ac97"
#define TYPE_VIA_MC97 "via-mc97"
+void via_isa_set_irq(PCIDevice *d, int n, int level);
+
#endif