aboutsummaryrefslogtreecommitdiff
path: root/hw/sh_intc.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 06:18:24 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 06:18:24 +0000
commite96e2044a14340bf1e612b7f046093495c10a06f (patch)
treeb104c5d9280ad19c03afcecd20457324627d3580 /hw/sh_intc.h
parent823029f909b3666660418387d48ea6a207f23f26 (diff)
SH4: system emulator interrupt update, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3762 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sh_intc.h')
-rw-r--r--hw/sh_intc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/sh_intc.h b/hw/sh_intc.h
index 991e991f97..d22a4a2a4c 100644
--- a/hw/sh_intc.h
+++ b/hw/sh_intc.h
@@ -35,9 +35,11 @@ struct intc_source {
unsigned short vect;
intc_enum next_enum_id;
- int asserted;
+ int asserted; /* emulates the interrupt signal line from device to intc */
int enable_count;
int enable_max;
+ int pending; /* emulates the result of signal and masking */
+ struct intc_desc *parent;
};
struct intc_desc {
@@ -49,9 +51,13 @@ struct intc_desc {
int nr_prio_regs;
int iomemtype;
+ int pending; /* number of interrupt sources that has pending set */
};
+int sh_intc_get_pending_vector(struct intc_desc *desc, int imask);
struct intc_source *sh_intc_source(struct intc_desc *desc, intc_enum id);
+void sh_intc_toggle_source(struct intc_source *source,
+ int enable_adj, int assert_adj);
void sh_intc_register_sources(struct intc_desc *desc,
struct intc_vect *vectors,