Commit d7cc0f5a authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbdev: Add iomem annotations to i810fb

Add iomem annotations to i810fb.
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 83034782
...@@ -222,7 +222,7 @@ struct mode_registers { ...@@ -222,7 +222,7 @@ struct mode_registers {
struct heap_data { struct heap_data {
unsigned long physical; unsigned long physical;
__u8 *virtual; __u8 __iomem *virtual;
u32 offset; u32 offset;
u32 size; u32 size;
}; };
...@@ -256,7 +256,7 @@ struct i810fb_par { ...@@ -256,7 +256,7 @@ struct i810fb_par {
u32 pseudo_palette[17]; u32 pseudo_palette[17];
u32 pci_state[16]; u32 pci_state[16];
unsigned long mmio_start_phys; unsigned long mmio_start_phys;
u8 *mmio_start_virtual; u8 __iomem *mmio_start_virtual;
u32 pitch; u32 pitch;
u32 pixconf; u32 pixconf;
u32 watermark; u32 watermark;
......
...@@ -32,7 +32,7 @@ extern void flush_cache(void); ...@@ -32,7 +32,7 @@ extern void flush_cache(void);
/************************************************************/ /************************************************************/
/* BLT Engine Routines */ /* BLT Engine Routines */
static inline void i810_report_error(u8 *mmio) static inline void i810_report_error(u8 __iomem *mmio)
{ {
printk("IIR : 0x%04x\n" printk("IIR : 0x%04x\n"
"EIR : 0x%04x\n" "EIR : 0x%04x\n"
...@@ -59,7 +59,7 @@ static inline int wait_for_space(struct fb_info *info, u32 space) ...@@ -59,7 +59,7 @@ static inline int wait_for_space(struct fb_info *info, u32 space)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u32 head, count = WAIT_COUNT, tail; u32 head, count = WAIT_COUNT, tail;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
tail = par->cur_tail; tail = par->cur_tail;
while (count--) { while (count--) {
...@@ -89,7 +89,7 @@ static inline int wait_for_space(struct fb_info *info, u32 space) ...@@ -89,7 +89,7 @@ static inline int wait_for_space(struct fb_info *info, u32 space)
static inline int wait_for_engine_idle(struct fb_info *info) static inline int wait_for_engine_idle(struct fb_info *info)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
int count = WAIT_COUNT; int count = WAIT_COUNT;
if (wait_for_space(info, par->iring.size)) /* flush */ if (wait_for_space(info, par->iring.size)) /* flush */
...@@ -133,7 +133,7 @@ static inline u32 begin_iring(struct fb_info *info, u32 space) ...@@ -133,7 +133,7 @@ static inline u32 begin_iring(struct fb_info *info, u32 space)
*/ */
static inline void end_iring(struct i810fb_par *par) static inline void end_iring(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
i810_writel(IRING, mmio, par->cur_tail); i810_writel(IRING, mmio, par->cur_tail);
} }
...@@ -326,7 +326,7 @@ static inline void load_front(int offset, struct fb_info *info) ...@@ -326,7 +326,7 @@ static inline void load_front(int offset, struct fb_info *info)
static inline void i810fb_iring_enable(struct i810fb_par *par, u32 mode) static inline void i810fb_iring_enable(struct i810fb_par *par, u32 mode)
{ {
u32 tmp; u32 tmp;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
tmp = i810_readl(IRING + 12, mmio); tmp = i810_readl(IRING + 12, mmio);
if (mode == OFF) if (mode == OFF)
...@@ -451,7 +451,7 @@ int i810fb_sync(struct fb_info *info) ...@@ -451,7 +451,7 @@ int i810fb_sync(struct fb_info *info)
void i810fb_load_front(u32 offset, struct fb_info *info) void i810fb_load_front(u32 offset, struct fb_info *info)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
if (!info->var.accel_flags || par->dev_flags & LOCKUP) if (!info->var.accel_flags || par->dev_flags & LOCKUP)
i810_writel(DPLYBASE, mmio, par->fb.physical + offset); i810_writel(DPLYBASE, mmio, par->fb.physical + offset);
...@@ -472,7 +472,7 @@ void i810fb_init_ringbuffer(struct fb_info *info) ...@@ -472,7 +472,7 @@ void i810fb_init_ringbuffer(struct fb_info *info)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u32 tmp1, tmp2; u32 tmp1, tmp2;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
wait_for_engine_idle(info); wait_for_engine_idle(info);
i810fb_iring_enable(par, OFF); i810fb_iring_enable(par, OFF);
......
...@@ -124,7 +124,8 @@ void i810fb_encode_registers(const struct fb_var_screeninfo *var, ...@@ -124,7 +124,8 @@ void i810fb_encode_registers(const struct fb_var_screeninfo *var,
struct i810fb_par *par, u32 xres, u32 yres) struct i810fb_par *par, u32 xres, u32 yres)
{ {
int n, blank_s, blank_e; int n, blank_s, blank_e;
u8 *mmio = par->mmio_start_virtual, msr = 0; u8 __iomem *mmio = par->mmio_start_virtual;
u8 msr = 0;
/* Horizontal */ /* Horizontal */
/* htotal */ /* htotal */
......
...@@ -121,7 +121,7 @@ static int dcolor __initdata = 0; ...@@ -121,7 +121,7 @@ static int dcolor __initdata = 0;
* DESCRIPTION: * DESCRIPTION:
* Blanks/unblanks the display * Blanks/unblanks the display
*/ */
static void i810_screen_off(u8 *mmio, u8 mode) static void i810_screen_off(u8 __iomem *mmio, u8 mode)
{ {
u32 count = WAIT_COUNT; u32 count = WAIT_COUNT;
u8 val; u8 val;
...@@ -145,7 +145,7 @@ static void i810_screen_off(u8 *mmio, u8 mode) ...@@ -145,7 +145,7 @@ static void i810_screen_off(u8 *mmio, u8 mode)
* Turns off DRAM refresh. Must be off for only 2 vsyncs * Turns off DRAM refresh. Must be off for only 2 vsyncs
* before data becomes corrupt * before data becomes corrupt
*/ */
static void i810_dram_off(u8 *mmio, u8 mode) static void i810_dram_off(u8 __iomem *mmio, u8 mode)
{ {
u8 val; u8 val;
...@@ -164,7 +164,7 @@ static void i810_dram_off(u8 *mmio, u8 mode) ...@@ -164,7 +164,7 @@ static void i810_dram_off(u8 *mmio, u8 mode)
* The IBM VGA standard allows protection of certain VGA registers. * The IBM VGA standard allows protection of certain VGA registers.
* This will protect or unprotect them. * This will protect or unprotect them.
*/ */
static void i810_protect_regs(u8 *mmio, int mode) static void i810_protect_regs(u8 __iomem *mmio, int mode)
{ {
u8 reg; u8 reg;
...@@ -187,7 +187,7 @@ static void i810_protect_regs(u8 *mmio, int mode) ...@@ -187,7 +187,7 @@ static void i810_protect_regs(u8 *mmio, int mode)
static void i810_load_pll(struct i810fb_par *par) static void i810_load_pll(struct i810fb_par *par)
{ {
u32 tmp1, tmp2; u32 tmp1, tmp2;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
tmp1 = par->regs.M | par->regs.N << 16; tmp1 = par->regs.M | par->regs.N << 16;
tmp2 = i810_readl(DCLK_2D, mmio); tmp2 = i810_readl(DCLK_2D, mmio);
...@@ -212,7 +212,7 @@ static void i810_load_pll(struct i810fb_par *par) ...@@ -212,7 +212,7 @@ static void i810_load_pll(struct i810fb_par *par)
*/ */
static void i810_load_vga(struct i810fb_par *par) static void i810_load_vga(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
/* interlace */ /* interlace */
i810_writeb(CR_INDEX_CGA, mmio, CR70); i810_writeb(CR_INDEX_CGA, mmio, CR70);
...@@ -255,7 +255,7 @@ static void i810_load_vga(struct i810fb_par *par) ...@@ -255,7 +255,7 @@ static void i810_load_vga(struct i810fb_par *par)
*/ */
static void i810_load_vgax(struct i810fb_par *par) static void i810_load_vgax(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
i810_writeb(CR_INDEX_CGA, mmio, CR30); i810_writeb(CR_INDEX_CGA, mmio, CR30);
i810_writeb(CR_DATA_CGA, mmio, par->regs.cr30); i810_writeb(CR_DATA_CGA, mmio, par->regs.cr30);
...@@ -281,7 +281,8 @@ static void i810_load_vgax(struct i810fb_par *par) ...@@ -281,7 +281,8 @@ static void i810_load_vgax(struct i810fb_par *par)
static void i810_load_2d(struct i810fb_par *par) static void i810_load_2d(struct i810fb_par *par)
{ {
u32 tmp; u32 tmp;
u8 tmp8, *mmio = par->mmio_start_virtual; u8 tmp8;
u8 __iomem *mmio = par->mmio_start_virtual;
i810_writel(FW_BLC, mmio, par->watermark); i810_writel(FW_BLC, mmio, par->watermark);
tmp = i810_readl(PIXCONF, mmio); tmp = i810_readl(PIXCONF, mmio);
...@@ -301,7 +302,7 @@ static void i810_load_2d(struct i810fb_par *par) ...@@ -301,7 +302,7 @@ static void i810_load_2d(struct i810fb_par *par)
* i810_hires - enables high resolution mode * i810_hires - enables high resolution mode
* @mmio: address of register space * @mmio: address of register space
*/ */
static void i810_hires(u8 *mmio) static void i810_hires(u8 __iomem *mmio)
{ {
u8 val; u8 val;
...@@ -321,7 +322,8 @@ static void i810_hires(u8 *mmio) ...@@ -321,7 +322,8 @@ static void i810_hires(u8 *mmio)
static void i810_load_pitch(struct i810fb_par *par) static void i810_load_pitch(struct i810fb_par *par)
{ {
u32 tmp, pitch; u32 tmp, pitch;
u8 val, *mmio = par->mmio_start_virtual; u8 val;
u8 __iomem *mmio = par->mmio_start_virtual;
pitch = par->pitch >> 3; pitch = par->pitch >> 3;
i810_writeb(SR_INDEX, mmio, SR01); i810_writeb(SR_INDEX, mmio, SR01);
...@@ -351,9 +353,10 @@ static void i810_load_pitch(struct i810fb_par *par) ...@@ -351,9 +353,10 @@ static void i810_load_pitch(struct i810fb_par *par)
*/ */
static void i810_load_color(struct i810fb_par *par) static void i810_load_color(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
u32 reg1; u32 reg1;
u16 reg2; u16 reg2;
reg1 = i810_readl(PIXCONF, mmio) & ~(0xF0000 | 1 << 27); reg1 = i810_readl(PIXCONF, mmio) & ~(0xF0000 | 1 << 27);
reg2 = i810_readw(BLTCNTL, mmio) & ~0x30; reg2 = i810_readw(BLTCNTL, mmio) & ~0x30;
...@@ -372,7 +375,7 @@ static void i810_load_color(struct i810fb_par *par) ...@@ -372,7 +375,7 @@ static void i810_load_color(struct i810fb_par *par)
*/ */
static void i810_load_regs(struct i810fb_par *par) static void i810_load_regs(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
i810_screen_off(mmio, OFF); i810_screen_off(mmio, OFF);
i810_protect_regs(mmio, OFF); i810_protect_regs(mmio, OFF);
...@@ -390,7 +393,7 @@ static void i810_load_regs(struct i810fb_par *par) ...@@ -390,7 +393,7 @@ static void i810_load_regs(struct i810fb_par *par)
} }
static void i810_write_dac(u8 regno, u8 red, u8 green, u8 blue, static void i810_write_dac(u8 regno, u8 red, u8 green, u8 blue,
u8 *mmio) u8 __iomem *mmio)
{ {
i810_writeb(CLUT_INDEX_WRITE, mmio, regno); i810_writeb(CLUT_INDEX_WRITE, mmio, regno);
i810_writeb(CLUT_DATA, mmio, red); i810_writeb(CLUT_DATA, mmio, red);
...@@ -399,7 +402,7 @@ static void i810_write_dac(u8 regno, u8 red, u8 green, u8 blue, ...@@ -399,7 +402,7 @@ static void i810_write_dac(u8 regno, u8 red, u8 green, u8 blue,
} }
static void i810_read_dac(u8 regno, u8 *red, u8 *green, u8 *blue, static void i810_read_dac(u8 regno, u8 *red, u8 *green, u8 *blue,
u8 *mmio) u8 __iomem *mmio)
{ {
i810_writeb(CLUT_INDEX_READ, mmio, regno); i810_writeb(CLUT_INDEX_READ, mmio, regno);
*red = i810_readb(CLUT_DATA, mmio); *red = i810_readb(CLUT_DATA, mmio);
...@@ -413,7 +416,7 @@ static void i810_read_dac(u8 regno, u8 *red, u8 *green, u8 *blue, ...@@ -413,7 +416,7 @@ static void i810_read_dac(u8 regno, u8 *red, u8 *green, u8 *blue,
static void i810_restore_pll(struct i810fb_par *par) static void i810_restore_pll(struct i810fb_par *par)
{ {
u32 tmp1, tmp2; u32 tmp1, tmp2;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
tmp1 = par->hw_state.dclk_2d; tmp1 = par->hw_state.dclk_2d;
tmp2 = i810_readl(DCLK_2D, mmio); tmp2 = i810_readl(DCLK_2D, mmio);
...@@ -433,7 +436,7 @@ static void i810_restore_pll(struct i810fb_par *par) ...@@ -433,7 +436,7 @@ static void i810_restore_pll(struct i810fb_par *par)
static void i810_restore_dac(struct i810fb_par *par) static void i810_restore_dac(struct i810fb_par *par)
{ {
u32 tmp1, tmp2; u32 tmp1, tmp2;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
tmp1 = par->hw_state.pixconf; tmp1 = par->hw_state.pixconf;
tmp2 = i810_readl(PIXCONF, mmio); tmp2 = i810_readl(PIXCONF, mmio);
...@@ -444,7 +447,8 @@ static void i810_restore_dac(struct i810fb_par *par) ...@@ -444,7 +447,8 @@ static void i810_restore_dac(struct i810fb_par *par)
static void i810_restore_vgax(struct i810fb_par *par) static void i810_restore_vgax(struct i810fb_par *par)
{ {
u8 i, j, *mmio = par->mmio_start_virtual; u8 i, j;
u8 __iomem *mmio = par->mmio_start_virtual;
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
i810_writeb(CR_INDEX_CGA, mmio, CR30+i); i810_writeb(CR_INDEX_CGA, mmio, CR30+i);
...@@ -477,7 +481,8 @@ static void i810_restore_vgax(struct i810fb_par *par) ...@@ -477,7 +481,8 @@ static void i810_restore_vgax(struct i810fb_par *par)
static void i810_restore_vga(struct i810fb_par *par) static void i810_restore_vga(struct i810fb_par *par)
{ {
u8 i, *mmio = par->mmio_start_virtual; u8 i;
u8 __iomem *mmio = par->mmio_start_virtual;
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
i810_writeb(CR_INDEX_CGA, mmio, CR00 + i); i810_writeb(CR_INDEX_CGA, mmio, CR00 + i);
...@@ -491,7 +496,8 @@ static void i810_restore_vga(struct i810fb_par *par) ...@@ -491,7 +496,8 @@ static void i810_restore_vga(struct i810fb_par *par)
static void i810_restore_addr_map(struct i810fb_par *par) static void i810_restore_addr_map(struct i810fb_par *par)
{ {
u8 tmp, *mmio = par->mmio_start_virtual; u8 tmp;
u8 __iomem *mmio = par->mmio_start_virtual;
i810_writeb(GR_INDEX, mmio, GR10); i810_writeb(GR_INDEX, mmio, GR10);
tmp = i810_readb(GR_DATA, mmio); tmp = i810_readb(GR_DATA, mmio);
...@@ -505,7 +511,7 @@ static void i810_restore_2d(struct i810fb_par *par) ...@@ -505,7 +511,7 @@ static void i810_restore_2d(struct i810fb_par *par)
{ {
u32 tmp_long; u32 tmp_long;
u16 tmp_word; u16 tmp_word;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
tmp_word = i810_readw(BLTCNTL, mmio); tmp_word = i810_readw(BLTCNTL, mmio);
tmp_word &= ~(3 << 4); tmp_word &= ~(3 << 4);
...@@ -534,7 +540,7 @@ static void i810_restore_2d(struct i810fb_par *par) ...@@ -534,7 +540,7 @@ static void i810_restore_2d(struct i810fb_par *par)
static void i810_restore_vga_state(struct i810fb_par *par) static void i810_restore_vga_state(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
i810_screen_off(mmio, OFF); i810_screen_off(mmio, OFF);
i810_protect_regs(mmio, OFF); i810_protect_regs(mmio, OFF);
...@@ -556,7 +562,8 @@ static void i810_restore_vga_state(struct i810fb_par *par) ...@@ -556,7 +562,8 @@ static void i810_restore_vga_state(struct i810fb_par *par)
static void i810_save_vgax(struct i810fb_par *par) static void i810_save_vgax(struct i810fb_par *par)
{ {
u8 i, *mmio = par->mmio_start_virtual; u8 i;
u8 __iomem *mmio = par->mmio_start_virtual;
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
i810_writeb(CR_INDEX_CGA, mmio, CR30 + i); i810_writeb(CR_INDEX_CGA, mmio, CR30 + i);
...@@ -579,7 +586,8 @@ static void i810_save_vgax(struct i810fb_par *par) ...@@ -579,7 +586,8 @@ static void i810_save_vgax(struct i810fb_par *par)
static void i810_save_vga(struct i810fb_par *par) static void i810_save_vga(struct i810fb_par *par)
{ {
u8 i, *mmio = par->mmio_start_virtual; u8 i;
u8 __iomem *mmio = par->mmio_start_virtual;
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
i810_writeb(CR_INDEX_CGA, mmio, CR00 + i); i810_writeb(CR_INDEX_CGA, mmio, CR00 + i);
...@@ -593,7 +601,7 @@ static void i810_save_vga(struct i810fb_par *par) ...@@ -593,7 +601,7 @@ static void i810_save_vga(struct i810fb_par *par)
static void i810_save_2d(struct i810fb_par *par) static void i810_save_2d(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
par->hw_state.dclk_2d = i810_readl(DCLK_2D, mmio); par->hw_state.dclk_2d = i810_readl(DCLK_2D, mmio);
par->hw_state.dclk_1d = i810_readl(DCLK_1D, mmio); par->hw_state.dclk_1d = i810_readl(DCLK_1D, mmio);
...@@ -716,7 +724,7 @@ static void i810_calc_dclk(u32 freq, u32 *m, u32 *n, u32 *p) ...@@ -716,7 +724,7 @@ static void i810_calc_dclk(u32 freq, u32 *m, u32 *n, u32 *p)
* Description: * Description:
* Shows or hides the hardware cursor * Shows or hides the hardware cursor
*/ */
void i810_enable_cursor(u8 *mmio, int mode) void i810_enable_cursor(u8 __iomem *mmio, int mode)
{ {
u32 temp; u32 temp;
...@@ -729,7 +737,7 @@ void i810_enable_cursor(u8 *mmio, int mode) ...@@ -729,7 +737,7 @@ void i810_enable_cursor(u8 *mmio, int mode)
static void i810_reset_cursor_image(struct i810fb_par *par) static void i810_reset_cursor_image(struct i810fb_par *par)
{ {
u8 *addr = par->cursor_heap.virtual; u8 __iomem *addr = par->cursor_heap.virtual;
int i, j; int i, j;
for (i = 64; i--; ) { for (i = 64; i--; ) {
...@@ -744,7 +752,7 @@ static void i810_reset_cursor_image(struct i810fb_par *par) ...@@ -744,7 +752,7 @@ static void i810_reset_cursor_image(struct i810fb_par *par)
static void i810_load_cursor_image(int width, int height, u8 *data, static void i810_load_cursor_image(int width, int height, u8 *data,
struct i810fb_par *par) struct i810fb_par *par)
{ {
u8 *addr = par->cursor_heap.virtual; u8 __iomem *addr = par->cursor_heap.virtual;
int i, j, w = width/8; int i, j, w = width/8;
int mod = width % 8, t_mask, d_mask; int mod = width % 8, t_mask, d_mask;
...@@ -766,8 +774,8 @@ static void i810_load_cursor_image(int width, int height, u8 *data, ...@@ -766,8 +774,8 @@ static void i810_load_cursor_image(int width, int height, u8 *data,
static void i810_load_cursor_colors(int fg, int bg, struct fb_info *info) static void i810_load_cursor_colors(int fg, int bg, struct fb_info *info)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u8 *mmio = par->mmio_start_virtual, temp; u8 __iomem *mmio = par->mmio_start_virtual;
u8 red, green, blue, trans; u8 red, green, blue, trans, temp;
i810fb_getcolreg(bg, &red, &green, &blue, &trans, info); i810fb_getcolreg(bg, &red, &green, &blue, &trans, info);
...@@ -796,7 +804,7 @@ static void i810_load_cursor_colors(int fg, int bg, struct fb_info *info) ...@@ -796,7 +804,7 @@ static void i810_load_cursor_colors(int fg, int bg, struct fb_info *info)
*/ */
static void i810_init_cursor(struct i810fb_par *par) static void i810_init_cursor(struct i810fb_par *par)
{ {
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
i810_enable_cursor(mmio, OFF); i810_enable_cursor(mmio, OFF);
i810_writel(CURBASE, mmio, par->cursor_heap.physical); i810_writel(CURBASE, mmio, par->cursor_heap.physical);
...@@ -1124,7 +1132,8 @@ static int i810fb_getcolreg(u8 regno, u8 *red, u8 *green, u8 *blue, ...@@ -1124,7 +1132,8 @@ static int i810fb_getcolreg(u8 regno, u8 *red, u8 *green, u8 *blue,
u8 *transp, struct fb_info *info) u8 *transp, struct fb_info *info)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u8 *mmio = par->mmio_start_virtual, temp; u8 __iomem *mmio = par->mmio_start_virtual;
u8 temp;
if (info->fix.visual == FB_VISUAL_DIRECTCOLOR) { if (info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
if ((info->var.green.length == 5 && regno > 31) || if ((info->var.green.length == 5 && regno > 31) ||
...@@ -1167,7 +1176,7 @@ static int i810fb_open(struct fb_info *info, int user) ...@@ -1167,7 +1176,7 @@ static int i810fb_open(struct fb_info *info, int user)
if (count == 0) { if (count == 0) {
memset(&par->state, 0, sizeof(struct vgastate)); memset(&par->state, 0, sizeof(struct vgastate));
par->state.flags = VGA_SAVE_CMAP; par->state.flags = VGA_SAVE_CMAP;
par->state.vgabase = (caddr_t) par->mmio_start_virtual; par->state.vgabase = par->mmio_start_virtual;
save_vga(&par->state); save_vga(&par->state);
i810_save_vga_state(par); i810_save_vga_state(par);
...@@ -1203,7 +1212,8 @@ static int i810fb_setcolreg(unsigned regno, unsigned red, unsigned green, ...@@ -1203,7 +1212,8 @@ static int i810fb_setcolreg(unsigned regno, unsigned red, unsigned green,
struct fb_info *info) struct fb_info *info)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u8 *mmio = par->mmio_start_virtual, temp; u8 __iomem *mmio = par->mmio_start_virtual;
u8 temp;
int i; int i;
if (regno > 255) return 1; if (regno > 255) return 1;
...@@ -1308,7 +1318,7 @@ static int i810fb_pan_display(struct fb_var_screeninfo *var, ...@@ -1308,7 +1318,7 @@ static int i810fb_pan_display(struct fb_var_screeninfo *var,
static int i810fb_blank (int blank_mode, struct fb_info *info) static int i810fb_blank (int blank_mode, struct fb_info *info)
{ {
struct i810fb_par *par = (struct i810fb_par *) info->par; struct i810fb_par *par = (struct i810fb_par *) info->par;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
int mode = 0, pwr, scr_off = 0; int mode = 0, pwr, scr_off = 0;
pwr = i810_readl(PWR_CLKC, mmio); pwr = i810_readl(PWR_CLKC, mmio);
...@@ -1391,7 +1401,7 @@ static int i810fb_check_var(struct fb_var_screeninfo *var, ...@@ -1391,7 +1401,7 @@ static int i810fb_check_var(struct fb_var_screeninfo *var,
static int i810fb_cursor(struct fb_info *info, struct fb_cursor *cursor) static int i810fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
{ {
struct i810fb_par *par = (struct i810fb_par *)info->par; struct i810fb_par *par = (struct i810fb_par *)info->par;
u8 *mmio = par->mmio_start_virtual; u8 __iomem *mmio = par->mmio_start_virtual;
if (!info->var.accel_flags || par->dev_flags & LOCKUP) if (!info->var.accel_flags || par->dev_flags & LOCKUP)
return soft_cursor(info, cursor); return soft_cursor(info, cursor);
...@@ -1724,7 +1734,8 @@ static void __devinit i810_init_defaults(struct i810fb_par *par, ...@@ -1724,7 +1734,8 @@ static void __devinit i810_init_defaults(struct i810fb_par *par,
*/ */
static void __devinit i810_init_device(struct i810fb_par *par) static void __devinit i810_init_device(struct i810fb_par *par)
{ {
u8 reg, *mmio = par->mmio_start_virtual; u8 reg;
u8 __iomem *mmio = par->mmio_start_virtual;
if (mtrr) set_mtrr(par); if (mtrr) set_mtrr(par);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment