diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2012-09-12 16:57:18 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-10-04 15:54:18 +0200 |
commit | ff9d2afa618acd81d926c9c213b4ff5f7163db1d (patch) | |
tree | 7a1ed80fb959de8e5c961027cdd3b327ba124278 /hw/xics.h | |
parent | 98ca8c023825fc6dd99e6cea1956d84ed8cadb3a (diff) |
pseries: Remove XICS irq type enum type
Currently the XICS interrupt controller emulation uses a custom enum to
specify whether a given interrupt is level-sensitive or message-triggered.
This enum makes life awkward for saving the state, and isn't particularly
useful since there are only two possibilities. This patch replaces the
enum with a simple bool.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/xics.h')
-rw-r--r-- | hw/xics.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -31,14 +31,8 @@ struct icp_state; -enum xics_irq_type { - XICS_MSI, /* Message-signalled (edge) interrupt */ - XICS_LSI, /* Level-signalled interrupt */ -}; - qemu_irq xics_get_qirq(struct icp_state *icp, int irq); -void xics_set_irq_type(struct icp_state *icp, int irq, - enum xics_irq_type type); +void xics_set_irq_type(struct icp_state *icp, int irq, bool lsi); struct icp_state *xics_system_init(int nr_irqs); |