aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@linux.intel.com>2009-03-17 08:54:08 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-03-20 13:48:13 -0400
commit264d9caaa1c574c0274b019a810abfe957391005 (patch)
tree06ac3d9df11a0e64e2f8571145e8865424fb7dc6 /include
parent379f5327a86f7822a51ec7d088a085167724df75 (diff)
PCI MSI: Use mask_pos instead of mask_base when appropriate
MSI interrupts have a mask_pos where MSI-X have a mask_base. Use a transparent union to get rid of some ugly casts. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/msi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h
index 9c5ce214fbf..5025ca4d91e 100644
--- a/include/linux/msi.h
+++ b/include/linux/msi.h
@@ -33,7 +33,10 @@ struct msi_desc {
33 unsigned int irq; 33 unsigned int irq;
34 struct list_head list; 34 struct list_head list;
35 35
36 void __iomem *mask_base; 36 union {
37 void __iomem *mask_base;
38 u8 mask_pos;
39 };
37 struct pci_dev *dev; 40 struct pci_dev *dev;
38 41
39 /* Last set MSI message */ 42 /* Last set MSI message */