diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-03 14:48:29 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:18 -0500 |
commit | 91c499178139d6597e68db19638e4135510a34b8 (patch) | |
tree | 9f2a58301e73178009d99e181d8de417659eda60 /include/linux/irq.h | |
parent | 6d2cd17fde1fc3e93302815f049f255bb2b3123e (diff) |
genirq: Add state field to irq_data
Some chip implementations need to access certain status flags. With
sparse irqs that requires a lookup of the irq descriptor. Add a state
field which contains such flags.
Name it in a way which will make coders happy to access it with the
proper accessor functions. And it's easy to grep for.
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 3ce45c257edb..62bb08e4af13 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -102,6 +102,8 @@ struct msi_desc; | |||
102 | * struct irq_data - per irq and irq chip data passed down to chip functions | 102 | * struct irq_data - per irq and irq chip data passed down to chip functions |
103 | * @irq: interrupt number | 103 | * @irq: interrupt number |
104 | * @node: node index useful for balancing | 104 | * @node: node index useful for balancing |
105 | * @state_use_accessor: status information for irq chip functions. | ||
106 | * Use accessor functions to deal with it | ||
105 | * @chip: low level interrupt hardware access | 107 | * @chip: low level interrupt hardware access |
106 | * @handler_data: per-IRQ data for the irq_chip methods | 108 | * @handler_data: per-IRQ data for the irq_chip methods |
107 | * @chip_data: platform-specific per-chip private data for the chip | 109 | * @chip_data: platform-specific per-chip private data for the chip |
@@ -116,6 +118,7 @@ struct msi_desc; | |||
116 | struct irq_data { | 118 | struct irq_data { |
117 | unsigned int irq; | 119 | unsigned int irq; |
118 | unsigned int node; | 120 | unsigned int node; |
121 | unsigned int state_use_accessors; | ||
119 | struct irq_chip *chip; | 122 | struct irq_chip *chip; |
120 | void *handler_data; | 123 | void *handler_data; |
121 | void *chip_data; | 124 | void *chip_data; |