diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-10 07:08:38 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:21 -0500 |
commit | 2bff17ad2107c66fc8ca96501a7128dd7fa7a390 (patch) | |
tree | a022acf5cdc290b1ede54f3d4a26b6365c3cc94b /include/linux/irq.h | |
parent | 5d4d8fc9ac3e9a90bbdf90bae6864cb2c01f2208 (diff) |
genirq: Add flags to irq_chip
Looking through irq_chip implementations I noticed that some of them
have special requirements, like setting the type masked and therefor
fiddle in irq_desc->status. Add a flag field, so the core code can
handle it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 2e3d1e5f0408..aefb30bbcf0e 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -253,6 +253,7 @@ static inline bool irqd_is_level_type(struct irq_data *d) | |||
253 | * @irq_set_wake: enable/disable power-management wake-on of an IRQ | 253 | * @irq_set_wake: enable/disable power-management wake-on of an IRQ |
254 | * @irq_bus_lock: function to lock access to slow bus (i2c) chips | 254 | * @irq_bus_lock: function to lock access to slow bus (i2c) chips |
255 | * @irq_bus_sync_unlock:function to sync and unlock slow bus (i2c) chips | 255 | * @irq_bus_sync_unlock:function to sync and unlock slow bus (i2c) chips |
256 | * @flags: chip specific flags | ||
256 | * | 257 | * |
257 | * @release: release function solely used by UML | 258 | * @release: release function solely used by UML |
258 | */ | 259 | */ |
@@ -299,6 +300,8 @@ struct irq_chip { | |||
299 | void (*irq_bus_lock)(struct irq_data *data); | 300 | void (*irq_bus_lock)(struct irq_data *data); |
300 | void (*irq_bus_sync_unlock)(struct irq_data *data); | 301 | void (*irq_bus_sync_unlock)(struct irq_data *data); |
301 | 302 | ||
303 | unsigned long flags; | ||
304 | |||
302 | /* Currently used only by UML, might disappear one day.*/ | 305 | /* Currently used only by UML, might disappear one day.*/ |
303 | #ifdef CONFIG_IRQ_RELEASE_METHOD | 306 | #ifdef CONFIG_IRQ_RELEASE_METHOD |
304 | void (*release)(unsigned int irq, void *dev_id); | 307 | void (*release)(unsigned int irq, void *dev_id); |