aboutsummaryrefslogtreecommitdiff
path: root/hw/devices.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-08-11 16:07:20 -0700
committerAvi Kivity <avi@redhat.com>2011-10-02 16:14:02 +0200
commit27a9d2eacb7f5533c31d6f0f1560ee824407f037 (patch)
tree81bff508688eaaaad37a107ef0db23b1519abee5 /hw/devices.h
parenta6dc4c2d95f7b7bd95a53e8c2e524a8a202b4d1f (diff)
sm501: Pass address_space_mem to sm501_init
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/devices.h')
-rw-r--r--hw/devices.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/devices.h b/hw/devices.h
index 07fda83169..8ac384ff20 100644
--- a/hw/devices.h
+++ b/hw/devices.h
@@ -1,6 +1,9 @@
#ifndef QEMU_DEVICES_H
#define QEMU_DEVICES_H
+/* ??? Not all users of this file can include cpu-common.h. */
+struct MemoryRegion;
+
/* Devices that have nowhere better to go. */
/* smc91c111.c */
@@ -57,7 +60,8 @@ qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s);
qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
/* sm501.c */
-void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq,
+void sm501_init(struct MemoryRegion *address_space_mem, uint32_t base,
+ uint32_t local_mem_bytes, qemu_irq irq,
CharDriverState *chr);
#endif