diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-02-26 07:02:11 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-17 01:19:14 (GMT) |
commit | 0399bb5b918bd8ffbf065a3db142ff121aaa18e0 (patch) | |
tree | 12a4d8a64993c7e7b1fd4acf0e4a729b95551357 /arch/sparc/kernel/irq.h | |
parent | 1d05995b0880b23353741d5b2b826f7c2fd6a296 (diff) | |
download | linux-fsl-qoriq-0399bb5b918bd8ffbf065a3db142ff121aaa18e0.tar.xz |
sparc32,sun4m: percpu and global register definitions moved to irq.h
entry.S access percpu + global data defined in
sun4m_irq.c - so move the types to irq.h.
This makes sparse happy and allow us to utilize
asm-offsets later.
Also updated a few comments in the sun4m_irq.c file.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/irq.h')
-rw-r--r-- | arch/sparc/kernel/irq.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/sparc/kernel/irq.h b/arch/sparc/kernel/irq.h index 0b4d5b9..008453b 100644 --- a/arch/sparc/kernel/irq.h +++ b/arch/sparc/kernel/irq.h @@ -2,6 +2,27 @@ #include <asm/btfixup.h> +/* sun4m specific type definitions */ + +/* This maps direct to CPU specific interrupt registers */ +struct sun4m_irq_percpu { + u32 pending; + u32 clear; + u32 set; +}; + +/* This maps direct to global interrupt registers */ +struct sun4m_irq_global { + u32 pending; + u32 mask; + u32 mask_clear; + u32 mask_set; + u32 interrupt_target; +}; + +extern struct sun4m_irq_percpu __iomem *sun4m_irq_percpu[SUN4M_NCPUS]; +extern struct sun4m_irq_global __iomem *sun4m_irq_global; + /* * Platform specific irq configuration * The individual platforms assign their platform |