aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_msi.h
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2008-08-05 19:10:02 -0400
committerPaul Mackerras <paulus@samba.org>2008-08-20 02:34:58 -0400
commit7e7ab3677502a0f798f38bfa1a7d53dd22faa0bc (patch)
tree7bb1d6b2f7f45907033d2db517d1c804a1e5e1ed /arch/powerpc/sysdev/fsl_msi.h
parent7e302869e0c5261aba779e059cddcd2fbf7aedbe (diff)
powerpc: Convert the FSL MSI code to use msi_bitmap
This is 90% straight forward, although we have to change a few printk format strings as well because of the change in type of hwirq. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_msi.h')
-rw-r--r--arch/powerpc/sysdev/fsl_msi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/fsl_msi.h b/arch/powerpc/sysdev/fsl_msi.h
index 6574550c00a5..331c7e7025b7 100644
--- a/arch/powerpc/sysdev/fsl_msi.h
+++ b/arch/powerpc/sysdev/fsl_msi.h
@@ -13,6 +13,8 @@
13#ifndef _POWERPC_SYSDEV_FSL_MSI_H 13#ifndef _POWERPC_SYSDEV_FSL_MSI_H
14#define _POWERPC_SYSDEV_FSL_MSI_H 14#define _POWERPC_SYSDEV_FSL_MSI_H
15 15
16#include <asm/msi_bitmap.h>
17
16#define NR_MSI_REG 8 18#define NR_MSI_REG 8
17#define IRQS_PER_MSI_REG 32 19#define IRQS_PER_MSI_REG 32
18#define NR_MSI_IRQS (NR_MSI_REG * IRQS_PER_MSI_REG) 20#define NR_MSI_IRQS (NR_MSI_REG * IRQS_PER_MSI_REG)
@@ -31,8 +33,7 @@ struct fsl_msi {
31 void __iomem *msi_regs; 33 void __iomem *msi_regs;
32 u32 feature; 34 u32 feature;
33 35
34 unsigned long *fsl_msi_bitmap; 36 struct msi_bitmap bitmap;
35 spinlock_t bitmap_lock;
36}; 37};
37 38
38#endif /* _POWERPC_SYSDEV_FSL_MSI_H */ 39#endif /* _POWERPC_SYSDEV_FSL_MSI_H */