Re: [PATCH] DSPBRIDGE: Change address resources to void __iomem *
On Wed, Mar 4, 2009 at 8:11 PM, Fernando Guzman Lugo wrote: > This patch changes address resources to void __iomem * > Signed-off-by: Guzman Lugo Fernando > --- > arch/arm/plat-omap/include/dspbridge/cfgdefs.h | 16 > drivers/dsp/bridge/hw/hw_dspssC64P.c | 2 +- > drivers/dsp/bridge/hw/hw_dspssC64P.h | 2 +- > drivers/dsp/bridge/hw/hw_mbox.c | 30 +++-- > drivers/dsp/bridge/hw/hw_mbox.h | 18 > drivers/dsp/bridge/hw/hw_mmu.c | 43 ++-- > drivers/dsp/bridge/hw/hw_mmu.h | 30 +++--- > drivers/dsp/bridge/hw/hw_prcm.c | 26 ++-- > drivers/dsp/bridge/hw/hw_prcm.h | 17 > drivers/dsp/bridge/rmgr/drv.c | 52 > > drivers/dsp/bridge/rmgr/node.c | 2 +- > drivers/dsp/bridge/wmd/_tiomap.h | 2 +- > drivers/dsp/bridge/wmd/tiomap3430.c | 47 ++--- > 13 files changed, 145 insertions(+), 142 deletions(-) > > diff --git a/arch/arm/plat-omap/include/dspbridge/cfgdefs.h > b/arch/arm/plat-omap/include/dspbridge/cfgdefs.h > index ca96b3c..e7633b5 > --- a/arch/arm/plat-omap/include/dspbridge/cfgdefs.h > +++ b/arch/arm/plat-omap/include/dspbridge/cfgdefs.h > @@ -96,14 +96,14 @@ > u32 dwChnlOffset; > u32 dwChnlBufSize; > u32 dwNumChnls; > - u32 dwPrmBase; > - u32 dwCmBase; > - u32 dwPerBase; > - u32 dwWdTimerDspBase; > - u32 dwMboxBase; > - u32 dwDmmuBase; > - u32 dwDipiBase; > - u32 dwSysCtrlBase; > + void __iomem *dwPrmBase; > + void __iomem *dwCmBase; > + void __iomem *dwPerBase; > + void __iomem *dwWdTimerDspBase; > + void __iomem *dwMboxBase; > + void __iomem *dwDmmuBase; > + u32 *dwDipiBase; > + void __iomem *dwSysCtrlBase; > } ; > > struct CFG_DSPMEMDESC { > diff --git a/drivers/dsp/bridge/hw/hw_dspssC64P.c > b/drivers/dsp/bridge/hw/hw_dspssC64P.c > index 0d0d45c..6aac57d > --- a/drivers/dsp/bridge/hw/hw_dspssC64P.c > +++ b/drivers/dsp/bridge/hw/hw_dspssC64P.c > @@ -34,7 +34,7 @@ > #include > > /* HW FUNCTIONS */ > -HW_STATUS HW_DSPSS_BootModeSet(const u32 baseAddress, > +HW_STATUS HW_DSPSS_BootModeSet(const void __iomem *baseAddress, > enum HW_DSPSYSC_BootMode_t bootMode, > const u32 bootAddress) > { > diff --git a/drivers/dsp/bridge/hw/hw_dspssC64P.h > b/drivers/dsp/bridge/hw/hw_dspssC64P.h > index 493effd..50f9af4 > --- a/drivers/dsp/bridge/hw/hw_dspssC64P.h > +++ b/drivers/dsp/bridge/hw/hw_dspssC64P.h > @@ -41,7 +41,7 @@ > > #define HW_DSP_IDLEBOOT_ADDR 0x007E > > - extern HW_STATUS HW_DSPSS_BootModeSet(const u32 baseAddress, > + extern HW_STATUS HW_DSPSS_BootModeSet(const void __iomem *baseAddress, > enum HW_DSPSYSC_BootMode_t bootMode, > const u32 bootAddress); > > diff --git a/drivers/dsp/bridge/hw/hw_mbox.c b/drivers/dsp/bridge/hw/hw_mbox.c > index bc61d64..93fa51e > --- a/drivers/dsp/bridge/hw/hw_mbox.c > +++ b/drivers/dsp/bridge/hw/hw_mbox.c > @@ -36,7 +37,7 @@ > struct MAILBOX_CONTEXT mboxsetting = {0x4, 0x1, 0x1}; > > /* Saves the mailbox context */ > -HW_STATUS HW_MBOX_saveSettings(u32 baseAddress) > +HW_STATUS HW_MBOX_saveSettings(void __iomem *baseAddress) > { > HW_STATUS status = RET_OK; > > @@ -50,7 +51,7 @@ HW_STATUS HW_MBOX_saveSettings(u32 baseAddress) > } > > /* Restores the mailbox context */ > -HW_STATUS HW_MBOX_restoreSettings(u32 baseAddress) > +HW_STATUS HW_MBOX_restoreSettings(void __iomem *baseAddress) > { > HW_STATUS status = RET_OK; > /* Restor IRQ enable status */ > @@ -65,8 +66,8 @@ HW_STATUS HW_MBOX_restoreSettings(u32 baseAddress) > > /* Reads a u32 from the sub module message box Specified. if there are no > * messages in the mailbox then and error is returned. */ > -HW_STATUS HW_MBOX_MsgRead(const u32 baseAddress, const HW_MBOX_Id_t > mailBoxId, > - u32 *const pReadValue) > +HW_STATUS HW_MBOX_MsgRead(const void __iomem *baseAddress, > + const HW_MBOX_Id_t mailBoxId, u32 *const pReadValue) > { > HW_STATUS status = RET_OK; > > @@ -86,8 +87,8 @@ HW_STATUS HW_MBOX_MsgRead(const u32 baseAddress, const > HW_MBOX_Id_t mailBoxId, > } > > /* Writes a u32 from the sub module message box Specified. */ > -HW_STATUS HW_MBOX_MsgWrite(const u32 baseAddress, const HW_MBOX_Id_t > mailBoxId, > - const u32 writeValue) > +HW_STATUS HW_MBOX_MsgWrite(const void __iomem *baseAddress, > + const HW_MBOX_Id_t mailBoxId, const u32 writeValue) > { > HW_STATUS status = RET_OK
[PATCH] DSPBRIDGE: Change address resources to void __iomem *
This patch changes address resources to void __iomem * Signed-off-by: Guzman Lugo Fernando --- arch/arm/plat-omap/include/dspbridge/cfgdefs.h | 16 drivers/dsp/bridge/hw/hw_dspssC64P.c |2 +- drivers/dsp/bridge/hw/hw_dspssC64P.h |2 +- drivers/dsp/bridge/hw/hw_mbox.c| 30 +++-- drivers/dsp/bridge/hw/hw_mbox.h| 18 drivers/dsp/bridge/hw/hw_mmu.c | 43 ++-- drivers/dsp/bridge/hw/hw_mmu.h | 30 +++--- drivers/dsp/bridge/hw/hw_prcm.c| 26 ++-- drivers/dsp/bridge/hw/hw_prcm.h| 17 drivers/dsp/bridge/rmgr/drv.c | 52 drivers/dsp/bridge/rmgr/node.c |2 +- drivers/dsp/bridge/wmd/_tiomap.h |2 +- drivers/dsp/bridge/wmd/tiomap3430.c| 47 ++--- 13 files changed, 145 insertions(+), 142 deletions(-) diff --git a/arch/arm/plat-omap/include/dspbridge/cfgdefs.h b/arch/arm/plat-omap/include/dspbridge/cfgdefs.h index ca96b3c..e7633b5 --- a/arch/arm/plat-omap/include/dspbridge/cfgdefs.h +++ b/arch/arm/plat-omap/include/dspbridge/cfgdefs.h @@ -96,14 +96,14 @@ u32 dwChnlOffset; u32 dwChnlBufSize; u32 dwNumChnls; - u32 dwPrmBase; - u32 dwCmBase; - u32 dwPerBase; - u32 dwWdTimerDspBase; - u32 dwMboxBase; - u32 dwDmmuBase; - u32 dwDipiBase; - u32 dwSysCtrlBase; + void __iomem *dwPrmBase; + void __iomem *dwCmBase; + void __iomem *dwPerBase; + void __iomem *dwWdTimerDspBase; + void __iomem *dwMboxBase; + void __iomem *dwDmmuBase; + u32 *dwDipiBase; + void __iomem *dwSysCtrlBase; } ; struct CFG_DSPMEMDESC { diff --git a/drivers/dsp/bridge/hw/hw_dspssC64P.c b/drivers/dsp/bridge/hw/hw_dspssC64P.c index 0d0d45c..6aac57d --- a/drivers/dsp/bridge/hw/hw_dspssC64P.c +++ b/drivers/dsp/bridge/hw/hw_dspssC64P.c @@ -34,7 +34,7 @@ #include /* HW FUNCTIONS */ -HW_STATUS HW_DSPSS_BootModeSet(const u32 baseAddress, +HW_STATUS HW_DSPSS_BootModeSet(const void __iomem *baseAddress, enum HW_DSPSYSC_BootMode_t bootMode, const u32 bootAddress) { diff --git a/drivers/dsp/bridge/hw/hw_dspssC64P.h b/drivers/dsp/bridge/hw/hw_dspssC64P.h index 493effd..50f9af4 --- a/drivers/dsp/bridge/hw/hw_dspssC64P.h +++ b/drivers/dsp/bridge/hw/hw_dspssC64P.h @@ -41,7 +41,7 @@ #define HW_DSP_IDLEBOOT_ADDR 0x007E - extern HW_STATUS HW_DSPSS_BootModeSet(const u32 baseAddress, + extern HW_STATUS HW_DSPSS_BootModeSet(const void __iomem *baseAddress, enum HW_DSPSYSC_BootMode_t bootMode, const u32 bootAddress); diff --git a/drivers/dsp/bridge/hw/hw_mbox.c b/drivers/dsp/bridge/hw/hw_mbox.c index bc61d64..93fa51e --- a/drivers/dsp/bridge/hw/hw_mbox.c +++ b/drivers/dsp/bridge/hw/hw_mbox.c @@ -36,7 +37,7 @@ struct MAILBOX_CONTEXT mboxsetting = {0x4, 0x1, 0x1}; /* Saves the mailbox context */ -HW_STATUS HW_MBOX_saveSettings(u32 baseAddress) +HW_STATUS HW_MBOX_saveSettings(void __iomem *baseAddress) { HW_STATUS status = RET_OK; @@ -50,7 +51,7 @@ HW_STATUS HW_MBOX_saveSettings(u32 baseAddress) } /* Restores the mailbox context */ -HW_STATUS HW_MBOX_restoreSettings(u32 baseAddress) +HW_STATUS HW_MBOX_restoreSettings(void __iomem *baseAddress) { HW_STATUS status = RET_OK; /* Restor IRQ enable status */ @@ -65,8 +66,8 @@ HW_STATUS HW_MBOX_restoreSettings(u32 baseAddress) /* Reads a u32 from the sub module message box Specified. if there are no * messages in the mailbox then and error is returned. */ -HW_STATUS HW_MBOX_MsgRead(const u32 baseAddress, const HW_MBOX_Id_t mailBoxId, - u32 *const pReadValue) +HW_STATUS HW_MBOX_MsgRead(const void __iomem *baseAddress, + const HW_MBOX_Id_t mailBoxId, u32 *const pReadValue) { HW_STATUS status = RET_OK; @@ -86,8 +87,8 @@ HW_STATUS HW_MBOX_MsgRead(const u32 baseAddress, const HW_MBOX_Id_t mailBoxId, } /* Writes a u32 from the sub module message box Specified. */ -HW_STATUS HW_MBOX_MsgWrite(const u32 baseAddress, const HW_MBOX_Id_t mailBoxId, - const u32 writeValue) +HW_STATUS HW_MBOX_MsgWrite(const void __iomem *baseAddress, + const HW_MBOX_Id_t mailBoxId, const u32 writeValue) { HW_STATUS status = RET_OK; @@ -105,8 +106,8 @@ HW_STATUS HW_MBOX_MsgWrite(const u32 baseAddress, const HW_MBOX_Id_t mailBoxId, } /* Reads the full status register for mailbox. */ -HW_STATUS HW_MBOX_IsFull(const u32 baseAddress, const HW_MBOX_Id_t mailBoxId, - u32