aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_msi.h
diff options
context:
space:
mode:
authorTudor Laurentiu <b10716@freescale.com>2014-08-19 07:25:01 -0400
committerScott Wood <scottwood@freescale.com>2014-09-04 19:41:29 -0400
commit834952314c8bae7331b0797a071958dda9bec60d (patch)
tree133a937dafd225ad293a2c2b3289c458324ecf6f /arch/powerpc/sysdev/fsl_msi.h
parent26a047ab101a6ab765b805c7417e82e1ed413ff2 (diff)
powerpc/fsl_msi: reorganize structs to improve clarity and flexibility
Store cascade_data in an array inside the driver data for later use. Get rid of the msi_virq array since now we can encapsulate the virqs in the cascade_data directly and access them through the array mentioned earlier. Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com> Cc: Scott Wood <scottwood@freescale.com> Cc: Mihai Caraman <mihai.caraman@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_msi.h')
-rw-r--r--arch/powerpc/sysdev/fsl_msi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_msi.h b/arch/powerpc/sysdev/fsl_msi.h
index df9aa9fe0933..420cfcbdac01 100644
--- a/arch/powerpc/sysdev/fsl_msi.h
+++ b/arch/powerpc/sysdev/fsl_msi.h
@@ -27,6 +27,8 @@
27#define FSL_PIC_IP_IPIC 0x00000002 27#define FSL_PIC_IP_IPIC 0x00000002
28#define FSL_PIC_IP_VMPIC 0x00000003 28#define FSL_PIC_IP_VMPIC 0x00000003
29 29
30struct fsl_msi_cascade_data;
31
30struct fsl_msi { 32struct fsl_msi {
31 struct irq_domain *irqhost; 33 struct irq_domain *irqhost;
32 34
@@ -37,7 +39,7 @@ struct fsl_msi {
37 u32 srs_shift; /* Shift of the shared interrupt register select */ 39 u32 srs_shift; /* Shift of the shared interrupt register select */
38 void __iomem *msi_regs; 40 void __iomem *msi_regs;
39 u32 feature; 41 u32 feature;
40 int msi_virqs[NR_MSI_REG_MAX]; 42 struct fsl_msi_cascade_data *cascade_array[NR_MSI_REG_MAX];
41 43
42 struct msi_bitmap bitmap; 44 struct msi_bitmap bitmap;
43 45