Commit ecc5f0b8 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] (12/12) valkyriefb iomem annotations

parent 9fb0ff68
...@@ -89,13 +89,13 @@ struct fb_par_valkyrie { ...@@ -89,13 +89,13 @@ struct fb_par_valkyrie {
struct fb_info_valkyrie { struct fb_info_valkyrie {
struct fb_info info; struct fb_info info;
struct fb_par_valkyrie par; struct fb_par_valkyrie par;
struct cmap_regs *cmap_regs; struct cmap_regs __iomem *cmap_regs;
unsigned long cmap_regs_phys; unsigned long cmap_regs_phys;
struct valkyrie_regs *valkyrie_regs; struct valkyrie_regs __iomem *valkyrie_regs;
unsigned long valkyrie_regs_phys; unsigned long valkyrie_regs_phys;
__u8 *frame_buffer; __u8 __iomem *frame_buffer;
unsigned long frame_buffer_phys; unsigned long frame_buffer_phys;
int sense; int sense;
...@@ -142,7 +142,7 @@ static struct fb_ops valkyriefb_ops = { ...@@ -142,7 +142,7 @@ static struct fb_ops valkyriefb_ops = {
static int valkyriefb_set_par(struct fb_info *info) static int valkyriefb_set_par(struct fb_info *info)
{ {
struct fb_info_valkyrie *p = (struct fb_info_valkyrie *) info; struct fb_info_valkyrie *p = (struct fb_info_valkyrie *) info;
volatile struct valkyrie_regs *valkyrie_regs = p->valkyrie_regs; volatile struct valkyrie_regs __iomem *valkyrie_regs = p->valkyrie_regs;
struct fb_par_valkyrie *par = info->par; struct fb_par_valkyrie *par = info->par;
struct valkyrie_regvals *init; struct valkyrie_regvals *init;
int err; int err;
...@@ -232,7 +232,7 @@ static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, ...@@ -232,7 +232,7 @@ static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
u_int transp, struct fb_info *info) u_int transp, struct fb_info *info)
{ {
struct fb_info_valkyrie *p = (struct fb_info_valkyrie *) info; struct fb_info_valkyrie *p = (struct fb_info_valkyrie *) info;
volatile struct cmap_regs *cmap_regs = p->cmap_regs; volatile struct cmap_regs __iomem *cmap_regs = p->cmap_regs;
struct fb_par_valkyrie *par = info->par; struct fb_par_valkyrie *par = info->par;
if (regno > 255) if (regno > 255)
...@@ -341,6 +341,7 @@ int __init valkyriefb_init(void) ...@@ -341,6 +341,7 @@ int __init valkyriefb_init(void)
cmap_regs_phys = 0x50f24000; cmap_regs_phys = 0x50f24000;
flags = IOMAP_NOCACHE_SER; /* IOMAP_WRITETHROUGH?? */ flags = IOMAP_NOCACHE_SER; /* IOMAP_WRITETHROUGH?? */
#else /* ppc (!CONFIG_MAC) */ #else /* ppc (!CONFIG_MAC) */
{
struct device_node *dp; struct device_node *dp;
dp = find_devices("valkyrie"); dp = find_devices("valkyrie");
...@@ -356,6 +357,7 @@ int __init valkyriefb_init(void) ...@@ -356,6 +357,7 @@ int __init valkyriefb_init(void)
frame_buffer_phys = dp->addrs[0].address; frame_buffer_phys = dp->addrs[0].address;
cmap_regs_phys = dp->addrs[0].address+0x304000; cmap_regs_phys = dp->addrs[0].address+0x304000;
flags = _PAGE_WRITETHRU; flags = _PAGE_WRITETHRU;
}
#endif /* ppc (!CONFIG_MAC) */ #endif /* ppc (!CONFIG_MAC) */
p = kmalloc(sizeof(*p), GFP_ATOMIC); p = kmalloc(sizeof(*p), GFP_ATOMIC);
...@@ -544,7 +546,7 @@ static void valkyrie_par_to_fix(struct fb_par_valkyrie *par, ...@@ -544,7 +546,7 @@ static void valkyrie_par_to_fix(struct fb_par_valkyrie *par,
static void __init valkyrie_init_info(struct fb_info *info, struct fb_info_valkyrie *p) static void __init valkyrie_init_info(struct fb_info *info, struct fb_info_valkyrie *p)
{ {
info->fbops = &valkyriefb_ops; info->fbops = &valkyriefb_ops;
info->screen_base = (char *) p->frame_buffer + 0x1000; info->screen_base = p->frame_buffer + 0x1000;
info->flags = FBINFO_DEFAULT; info->flags = FBINFO_DEFAULT;
info->pseudo_palette = p->pseudo_palette; info->pseudo_palette = p->pseudo_palette;
fb_alloc_cmap(&info->cmap, 256, 0); fb_alloc_cmap(&info->cmap, 256, 0);
......
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