diff options
author | Yinghai Lu <yinghai@kernel.org> | 2008-12-05 18:58:34 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-08 14:31:59 +0100 |
commit | 3145e941fcfe2548fa2270afb1a05bab3a6bc418 (patch) | |
tree | 5bd08b9de84d1be58be040058ac77a4dd8c8d7b2 /include/linux/msi.h | |
parent | be5d5350a937cd8513b258739f1099420129e96f (diff) | |
download | lwn-3145e941fcfe2548fa2270afb1a05bab3a6bc418.tar.gz lwn-3145e941fcfe2548fa2270afb1a05bab3a6bc418.zip |
x86, MSI: pass irq_cfg and irq_desc
Impact: simplify code
Pass irq_desc and cfg around, instead of raw IRQ numbers - this way
we dont have to look it up again and again.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/msi.h')
-rw-r--r-- | include/linux/msi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h index 8f2939227207..d2b8a1e8ca11 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -10,8 +10,11 @@ struct msi_msg { }; /* Helper functions */ +struct irq_desc; extern void mask_msi_irq(unsigned int irq); extern void unmask_msi_irq(unsigned int irq); +extern void read_msi_msg_desc(struct irq_desc *desc, struct msi_msg *msg); +extern void write_msi_msg_desc(struct irq_desc *desc, struct msi_msg *msg); extern void read_msi_msg(unsigned int irq, struct msi_msg *msg); extern void write_msi_msg(unsigned int irq, struct msi_msg *msg); |