aboutsummaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2024-01-14 13:39:06 +0100
committerMichael S. Tsirkin <mst@redhat.com>2024-02-14 06:09:32 -0500
commitf165cdf102bb93c255c63b77617ba371d73344e0 (patch)
tree12797f4bb3b1feae2c39caa99f53e4561a44f449 /include/exec
parentad2b652341f4257e2fb7ebf3834724f91173a07a (diff)
downloadqemu-f165cdf102bb93c255c63b77617ba371d73344e0.zip
qemu-f165cdf102bb93c255c63b77617ba371d73344e0.tar.gz
qemu-f165cdf102bb93c255c63b77617ba371d73344e0.tar.bz2
exec/ioport: Add portio_list_set_enabled()
Some SuperI/O devices such as the VIA south bridges or the PC87312 controller allow to enable or disable their SuperI/O functions. Add a convenience function for implementing this in the VIA south bridges. The naming of the functions is inspired by its memory_region_set_enabled() pendant. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-Id: <20240114123911.4877-7-shentey@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/ioport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exec/ioport.h b/include/exec/ioport.h
index 96858e5..4397f12 100644
--- a/include/exec/ioport.h
+++ b/include/exec/ioport.h
@@ -71,6 +71,7 @@ void portio_list_add(PortioList *piolist,
struct MemoryRegion *address_space,
uint32_t addr);
void portio_list_del(PortioList *piolist);
+void portio_list_set_enabled(PortioList *piolist, bool enabled);
void portio_list_set_address(PortioList *piolist, uint32_t addr);
#endif /* IOPORT_H */