diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-28 13:09:51 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:53:34 -0400 |
| commit | 39431acb1a4c464e62471cb3058b8ffffb9244db (patch) | |
| tree | ae655b4763f5a801b67b98d9131df534bcdd58d8 /include/linux | |
| parent | 1c9db52534a2c0e9776788cd34ccc193289fc18c (diff) | |
pci: Cleanup the irq_desc mess in msi
Handing down irq_desc to msi just so that msi can access
irq_desc.irq_data.msi_desc is a pretty stupid idea. The calling code
can hand down a pointer to msi_desc so msi code does not need to know
about the irq descriptor at all.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/msi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h index 329d17c395a7..05acced439a3 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h | |||
| @@ -10,13 +10,13 @@ struct msi_msg { | |||
| 10 | }; | 10 | }; |
| 11 | 11 | ||
| 12 | /* Helper functions */ | 12 | /* Helper functions */ |
| 13 | struct irq_desc; | ||
| 14 | struct irq_data; | 13 | struct irq_data; |
| 14 | struct msi_desc; | ||
| 15 | extern void mask_msi_irq(struct irq_data *data); | 15 | extern void mask_msi_irq(struct irq_data *data); |
| 16 | extern void unmask_msi_irq(struct irq_data *data); | 16 | extern void unmask_msi_irq(struct irq_data *data); |
| 17 | extern void read_msi_msg_desc(struct irq_desc *desc, struct msi_msg *msg); | 17 | extern void __read_msi_msg(struct msi_desc *entry, struct msi_msg *msg); |
| 18 | extern void get_cached_msi_msg_desc(struct irq_desc *desc, struct msi_msg *msg); | 18 | extern void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg); |
| 19 | extern void write_msi_msg_desc(struct irq_desc *desc, struct msi_msg *msg); | 19 | extern void __write_msi_msg(struct msi_desc *entry, struct msi_msg *msg); |
| 20 | extern void read_msi_msg(unsigned int irq, struct msi_msg *msg); | 20 | extern void read_msi_msg(unsigned int irq, struct msi_msg *msg); |
| 21 | extern void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg); | 21 | extern void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg); |
| 22 | extern void write_msi_msg(unsigned int irq, struct msi_msg *msg); | 22 | extern void write_msi_msg(unsigned int irq, struct msi_msg *msg); |
