summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-10-20 03:16:54 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-20 03:16:54 -0700
commitba2dfe242dcbc19a87fb7f24bf71799324856ce3 (patch)
tree476d3a31953ed1657903bed928ecc5a049752f72
parentb1be8f754998cd1ca3e1dd2ca1591e1c8efa2e47 (diff)
[PATCH] kyro iomem annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/video/kyro/STG4000InitDevice.c4
-rw-r--r--drivers/video/kyro/STG4000Interface.h26
-rw-r--r--drivers/video/kyro/STG4000OverlayDevice.c10
-rw-r--r--drivers/video/kyro/STG4000Ramdac.c8
-rw-r--r--drivers/video/kyro/STG4000Reg.h4
-rw-r--r--drivers/video/kyro/STG4000VTG.c8
-rw-r--r--drivers/video/kyro/fbdev.c2
-rw-r--r--include/video/kyro.h2
8 files changed, 32 insertions, 32 deletions
diff --git a/drivers/video/kyro/STG4000InitDevice.c b/drivers/video/kyro/STG4000InitDevice.c
index 11f70e36ca23..7035ed1b7a19 100644
--- a/drivers/video/kyro/STG4000InitDevice.c
+++ b/drivers/video/kyro/STG4000InitDevice.c
@@ -79,7 +79,7 @@ volatile u32 i,count=0; \
for(i=0;i<X;i++) count++; \
}
-u32 InitSDRAMRegisters(volatile STG4000REG * pSTGReg, u32 dwSubSysID,
+u32 InitSDRAMRegisters(volatile STG4000REG __iomem *pSTGReg, u32 dwSubSysID,
u32 dwRevID)
{
u32 adwSDRAMArgCfg0[] = { 0xa0, 0x80, 0xa0, 0xa0, 0xa0 };
@@ -239,7 +239,7 @@ u32 ProgramClock(u32 refClock,
return (ulBestClk);
}
-int SetCoreClockPLL(volatile STG4000REG * pSTGReg, struct pci_dev *pDev)
+int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev)
{
u32 F, R, P;
u16 core_pll = 0, sub;
diff --git a/drivers/video/kyro/STG4000Interface.h b/drivers/video/kyro/STG4000Interface.h
index 5845dee93eab..e75b3b4a4aa1 100644
--- a/drivers/video/kyro/STG4000Interface.h
+++ b/drivers/video/kyro/STG4000Interface.h
@@ -16,45 +16,45 @@ struct pci_dev;
/*
* Ramdac Setup
*/
-extern int InitialiseRamdac(volatile STG4000REG *pSTGReg, u32 displayDepth,
+extern int InitialiseRamdac(volatile STG4000REG __iomem *pSTGReg, u32 displayDepth,
u32 displayWidth, u32 displayHeight,
s32 HSyncPolarity, s32 VSyncPolarity,
u32 *pixelClock);
-extern void DisableRamdacOutput(volatile STG4000REG * pSTGReg);
-extern void EnableRamdacOutput(volatile STG4000REG * pSTGReg);
+extern void DisableRamdacOutput(volatile STG4000REG __iomem *pSTGReg);
+extern void EnableRamdacOutput(volatile STG4000REG __iomem *pSTGReg);
/*
* Timing generator setup
*/
-extern void DisableVGA(volatile STG4000REG * pSTGReg);
-extern void StopVTG(volatile STG4000REG * pSTGReg);
-extern void StartVTG(volatile STG4000REG * pSTGReg);
-extern void SetupVTG(volatile STG4000REG * pSTGReg,
+extern void DisableVGA(volatile STG4000REG __iomem *pSTGReg);
+extern void StopVTG(volatile STG4000REG __iomem *pSTGReg);
+extern void StartVTG(volatile STG4000REG __iomem *pSTGReg);
+extern void SetupVTG(volatile STG4000REG __iomem *pSTGReg,
const struct kyrofb_info * pTiming);
extern u32 ProgramClock(u32 refClock, u32 coreClock, u32 *FOut, u32 *ROut, u32 *POut);
-extern int SetCoreClockPLL(volatile STG4000REG * pSTGReg, struct pci_dev *pDev);
+extern int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev);
/*
* Overlay setup
*/
-extern void ResetOverlayRegisters(volatile STG4000REG * pSTGReg);
+extern void ResetOverlayRegisters(volatile STG4000REG __iomem *pSTGReg);
-extern int CreateOverlaySurface(volatile STG4000REG * pSTGReg,
+extern int CreateOverlaySurface(volatile STG4000REG __iomem *pSTGReg,
u32 ulWidth, u32 ulHeight,
int bLinear,
u32 ulOverlayOffset,
u32 * retStride, u32 * retUVStride);
-extern int SetOverlayBlendMode(volatile STG4000REG * pSTGReg,
+extern int SetOverlayBlendMode(volatile STG4000REG __iomem *pSTGReg,
OVRL_BLEND_MODE mode,
u32 ulAlpha, u32 ulColorKey);
-extern int SetOverlayViewPort(volatile STG4000REG * pSTGReg,
+extern int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg,
u32 left, u32 top,
u32 right, u32 bottom);
-extern void EnableOverlayPlane(volatile STG4000REG * pSTGReg);
+extern void EnableOverlayPlane(volatile STG4000REG __iomem *pSTGReg);
#endif /* _STG4000INTERFACE_H */
diff --git a/drivers/video/kyro/STG4000OverlayDevice.c b/drivers/video/kyro/STG4000OverlayDevice.c
index 25b286b4e09c..fcdc5328920f 100644
--- a/drivers/video/kyro/STG4000OverlayDevice.c
+++ b/drivers/video/kyro/STG4000OverlayDevice.c
@@ -75,7 +75,7 @@ typedef struct _OVRL_SRC_DEST {
static u32 ovlWidth, ovlHeight, ovlStride;
static int ovlLinear;
-void ResetOverlayRegisters(volatile STG4000REG * pSTGReg)
+void ResetOverlayRegisters(volatile STG4000REG __iomem *pSTGReg)
{
u32 tmp;
@@ -136,7 +136,7 @@ void ResetOverlayRegisters(volatile STG4000REG * pSTGReg)
}
-int CreateOverlaySurface(volatile STG4000REG * pSTGReg,
+int CreateOverlaySurface(volatile STG4000REG __iomem *pSTGReg,
u32 inWidth,
u32 inHeight,
int bLinear,
@@ -238,7 +238,7 @@ int CreateOverlaySurface(volatile STG4000REG * pSTGReg,
return 0;
}
-int SetOverlayBlendMode(volatile STG4000REG * pSTGReg,
+int SetOverlayBlendMode(volatile STG4000REG __iomem *pSTGReg,
OVRL_BLEND_MODE mode,
u32 ulAlpha, u32 ulColorKey)
{
@@ -284,7 +284,7 @@ int SetOverlayBlendMode(volatile STG4000REG * pSTGReg,
return 0;
}
-void EnableOverlayPlane(volatile STG4000REG * pSTGReg)
+void EnableOverlayPlane(volatile STG4000REG __iomem *pSTGReg)
{
u32 tmp;
/* Enable Overlay */
@@ -313,7 +313,7 @@ static u32 Overlap(u32 ulBits, u32 ulPattern)
}
-int SetOverlayViewPort(volatile STG4000REG * pSTGReg,
+int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg,
u32 left, u32 top,
u32 right, u32 bottom)
{
diff --git a/drivers/video/kyro/STG4000Ramdac.c b/drivers/video/kyro/STG4000Ramdac.c
index 72e019b889c9..76a3527efc8b 100644
--- a/drivers/video/kyro/STG4000Ramdac.c
+++ b/drivers/video/kyro/STG4000Ramdac.c
@@ -18,9 +18,9 @@
static u32 STG_PIXEL_BUS_WIDTH = 128; /* 128 bit bus width */
static u32 REF_CLOCK = 14318;
-STG4000REG *pSTGReg;
+STG4000REG __iomem *pSTGReg;
-int InitialiseRamdac(volatile STG4000REG * pSTGReg,
+int InitialiseRamdac(volatile STG4000REG __iomem * pSTGReg,
u32 displayDepth,
u32 displayWidth,
u32 displayHeight,
@@ -145,7 +145,7 @@ int InitialiseRamdac(volatile STG4000REG * pSTGReg,
}
/* Ramdac control, turning output to the screen on and off */
-void DisableRamdacOutput(volatile STG4000REG * pSTGReg)
+void DisableRamdacOutput(volatile STG4000REG __iomem * pSTGReg)
{
u32 tmp;
@@ -154,7 +154,7 @@ void DisableRamdacOutput(volatile STG4000REG * pSTGReg)
STG_WRITE_REG(DACStreamCtrl, tmp);
}
-void EnableRamdacOutput(volatile STG4000REG * pSTGReg)
+void EnableRamdacOutput(volatile STG4000REG __iomem * pSTGReg)
{
u32 tmp;
diff --git a/drivers/video/kyro/STG4000Reg.h b/drivers/video/kyro/STG4000Reg.h
index cff6c5f13a6b..244549e61368 100644
--- a/drivers/video/kyro/STG4000Reg.h
+++ b/drivers/video/kyro/STG4000Reg.h
@@ -21,8 +21,8 @@
#if defined(__KERNEL__)
#include <asm/page.h>
#include <asm/io.h>
-#define STG_WRITE_REG(reg,data) (writel(data,(unsigned long)&pSTGReg->reg))
-#define STG_READ_REG(reg) (readl((unsigned long)&pSTGReg->reg))
+#define STG_WRITE_REG(reg,data) (writel(data,&pSTGReg->reg))
+#define STG_READ_REG(reg) (readl(&pSTGReg->reg))
#else
#define STG_WRITE_REG(reg,data) (pSTGReg->reg = data)
#define STG_READ_REG(reg) (pSTGReg->reg)
diff --git a/drivers/video/kyro/STG4000VTG.c b/drivers/video/kyro/STG4000VTG.c
index 59c4a1863d3e..3690b04190af 100644
--- a/drivers/video/kyro/STG4000VTG.c
+++ b/drivers/video/kyro/STG4000VTG.c
@@ -14,7 +14,7 @@
#include "STG4000Reg.h"
#include "STG4000Interface.h"
-void DisableVGA(volatile STG4000REG * pSTGReg)
+void DisableVGA(volatile STG4000REG __iomem *pSTGReg)
{
u32 tmp;
volatile u32 count, i;
@@ -35,7 +35,7 @@ void DisableVGA(volatile STG4000REG * pSTGReg)
STG_WRITE_REG(SoftwareReset, tmp);
}
-void StopVTG(volatile STG4000REG * pSTGReg)
+void StopVTG(volatile STG4000REG __iomem *pSTGReg)
{
u32 tmp = 0;
@@ -45,7 +45,7 @@ void StopVTG(volatile STG4000REG * pSTGReg)
STG_WRITE_REG(DACSyncCtrl, tmp);
}
-void StartVTG(volatile STG4000REG * pSTGReg)
+void StartVTG(volatile STG4000REG __iomem *pSTGReg)
{
u32 tmp = 0;
@@ -56,7 +56,7 @@ void StartVTG(volatile STG4000REG * pSTGReg)
STG_WRITE_REG(DACSyncCtrl, tmp);
}
-void SetupVTG(volatile STG4000REG * pSTGReg,
+void SetupVTG(volatile STG4000REG __iomem *pSTGReg,
const struct kyrofb_info * pTiming)
{
u32 tmp = 0;
diff --git a/drivers/video/kyro/fbdev.c b/drivers/video/kyro/fbdev.c
index 51a6de200f73..1cf2208c8af8 100644
--- a/drivers/video/kyro/fbdev.c
+++ b/drivers/video/kyro/fbdev.c
@@ -76,7 +76,7 @@ static struct fb_var_screeninfo kyro_var __initdata = {
static struct kyrofb_info *currentpar;
typedef struct {
- STG4000REG *pSTGReg; /* Virtual address of PCI register region */
+ STG4000REG __iomem *pSTGReg; /* Virtual address of PCI register region */
u32 ulNextFreeVidMem; /* Offset from start of vid mem to next free region */
u32 ulOverlayOffset; /* Offset from start of vid mem to overlay */
u32 ulOverlayStride; /* Interleaved YUV and 422 mode Y stride */
diff --git a/include/video/kyro.h b/include/video/kyro.h
index c5f9b0f001e7..6996149f3b41 100644
--- a/include/video/kyro.h
+++ b/include/video/kyro.h
@@ -13,7 +13,7 @@
#define _KYRO_H
struct kyrofb_info {
- void *regbase;
+ void __iomem *regbase;
u32 HTot; /* Hor Total Time */
u32 HFP; /* Hor Front Porch */