diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-03-11 13:24:13 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-04-17 02:01:39 -0400 |
commit | 0b51b02edff2417deff98d8bbf294fa56b765bc6 (patch) | |
tree | 709358fd88085a368795b8d7be068073b5b16180 /arch | |
parent | acaa7aa30a8cdf7276945629f56d6daf30beb157 (diff) |
[POWERPC] QE: implement qe_muram_offset
qe_muram_offset is the reverse of the qe_muram_addr, will be
used for the Freescale QE USB Host Controller driver.
This patch also moves qe_muram_addr into the qe.h header, plus
adds __iomem hints to use with sparse.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index cc81fd1141b0..addabcd443a6 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c | |||
@@ -55,7 +55,7 @@ struct qe_snum { | |||
55 | /* We allocate this here because it is used almost exclusively for | 55 | /* We allocate this here because it is used almost exclusively for |
56 | * the communication processor devices. | 56 | * the communication processor devices. |
57 | */ | 57 | */ |
58 | struct qe_immap *qe_immr = NULL; | 58 | struct qe_immap __iomem *qe_immr; |
59 | EXPORT_SYMBOL(qe_immr); | 59 | EXPORT_SYMBOL(qe_immr); |
60 | 60 | ||
61 | static struct qe_snum snums[QE_NUM_OF_SNUM]; /* Dynamically allocated SNUMs */ | 61 | static struct qe_snum snums[QE_NUM_OF_SNUM]; /* Dynamically allocated SNUMs */ |
@@ -415,12 +415,6 @@ void qe_muram_dump(void) | |||
415 | } | 415 | } |
416 | EXPORT_SYMBOL(qe_muram_dump); | 416 | EXPORT_SYMBOL(qe_muram_dump); |
417 | 417 | ||
418 | void *qe_muram_addr(unsigned long offset) | ||
419 | { | ||
420 | return (void *)&qe_immr->muram[offset]; | ||
421 | } | ||
422 | EXPORT_SYMBOL(qe_muram_addr); | ||
423 | |||
424 | /* The maximum number of RISCs we support */ | 418 | /* The maximum number of RISCs we support */ |
425 | #define MAX_QE_RISC 2 | 419 | #define MAX_QE_RISC 2 |
426 | 420 | ||