summaryrefslogtreecommitdiff
path: root/hw/sh.h
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-12 01:11:42 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-12 01:11:42 +0000
commit703243a044c8b7d5c52fdf67e4c1aacf1d6c4d76 (patch)
tree3312b6ec7097fc1c48fada3ec85a65053b4d45a6 /hw/sh.h
parentb7d35e65834d6ef989bdab7dbd097fd879898168 (diff)
downloadqemu-703243a044c8b7d5c52fdf67e4c1aacf1d6c4d76.tar.gz
Adds interrupt support to the sh specific timer code (Magnus Damm).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3812 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sh.h')
-rw-r--r--hw/sh.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/sh.h b/hw/sh.h
index 57a2485cba..7df31640ef 100644
--- a/hw/sh.h
+++ b/hw/sh.h
@@ -2,6 +2,8 @@
#define QEMU_SH_H
/* Definitions for SH board emulation. */
+#include "sh_intc.h"
+
/* sh7750.c */
struct SH7750State;
@@ -25,7 +27,10 @@ int sh7750_register_io_device(struct SH7750State *s,
#define TMU012_FEAT_TOCR (1 << 0)
#define TMU012_FEAT_3CHAN (1 << 1)
#define TMU012_FEAT_EXTCLK (1 << 2)
-void tmu012_init(uint32_t base, int feat, uint32_t freq);
+void tmu012_init(target_phys_addr_t base, int feat, uint32_t freq,
+ struct intc_source *ch0_irq, struct intc_source *ch1_irq,
+ struct intc_source *ch2_irq0, struct intc_source *ch2_irq1);
+
/* sh_serial.c */
#define SH_SERIAL_FEAT_SCIF (1 << 0)