Lines Matching +full:0 +full:x100008

123 	int err, offset = 0x20;  in platinumfb_set_par()
125 if((err = platinum_var_to_par(&info->var, pinfo, 0))) { in platinumfb_set_par()
136 offset = 0x10; in platinumfb_set_par()
147 return 0; in platinumfb_set_par()
153 * Blank the screen if blank_mode != 0, else unblank. If blank == NULL in platinumfb_blank()
155 * black. Return 0 if blanking succeeded, != 0 if un-/blanking failed due in platinumfb_blank()
167 ctrl = le32_to_cpup(&info->platinum_regs->ctrl.r) | 0x33; in platinumfb_blank()
173 ctrl &= ~0x30; in platinumfb_blank()
177 return 0; in platinumfb_blank()
216 return 0; in platinumfb_setcolreg()
224 baseval += 0x10; in platinum_vram_reqd()
226 baseval += 0x20; in platinum_vram_reqd()
228 return vmode_attrs[video_mode-1].vres * baseval + 0x1000; in platinum_vram_reqd()
243 STORE_D2(6, 0xc6); in set_platinum_clock()
247 STORE_D2(7, init->clock_params[pinfo->clktype][0]); in set_platinum_clock()
251 STORE_D2(4, init->clock_params[pinfo->clktype][0]); in set_platinum_clock()
257 STORE_D2(9, 0xa6); in set_platinum_clock()
279 for (i = 0; i < 26; ++i) in platinum_set_hardware()
282 out_be32(&platinum_regs->reg[26+32].r, (pinfo->total_vram == 0x100000 ? in platinum_set_hardware()
285 out_be32(&platinum_regs->reg[16].r, (unsigned) pinfo->frame_buffer_phys+init->fb_offset+0x10); in platinum_set_hardware()
287 out_be32(&platinum_regs->reg[19].r, (pinfo->total_vram == 0x100000 ? in platinum_set_hardware()
290 out_be32(&platinum_regs->reg[20].r, (pinfo->total_vram == 0x100000 ? 0x11 : 0x1011)); in platinum_set_hardware()
291 out_be32(&platinum_regs->reg[21].r, 0x100); in platinum_set_hardware()
294 out_be32(&platinum_regs->reg[26].r, 0xc00); in platinum_set_hardware()
295 out_be32(&platinum_regs->reg[27].r, 0x235); in platinum_set_hardware()
296 /* out_be32(&platinum_regs->reg[27].r, 0x2aa); */ in platinum_set_hardware()
298 STORE_D2(0, (pinfo->total_vram == 0x100000 ? in platinum_set_hardware()
299 init->dacula_ctrl[cmode] & 0xf : in platinum_set_hardware()
302 STORE_D2(2, 0); in platinum_set_hardware()
306 out_be32(&platinum_regs->reg[24].r, 0); /* turn display on */ in platinum_set_hardware()
318 info->screen_base = pinfo->frame_buffer + 0x20; in platinum_init_info()
320 fb_alloc_cmap(&info->cmap, 256, 0); in platinum_init_info()
325 info->fix.mmio_len = 0x1000; in platinum_init_info()
327 info->fix.smem_start = pinfo->frame_buffer_phys + 0x20; /* will be updated later */ in platinum_init_info()
328 info->fix.smem_len = pinfo->total_vram - 0x20; in platinum_init_info()
329 info->fix.ywrapstep = 0; in platinum_init_info()
330 info->fix.xpanstep = 0; in platinum_init_info()
331 info->fix.ypanstep = 0; in platinum_init_info()
332 info->fix.type_aux = 0; in platinum_init_info()
344 printk(KERN_INFO "platinumfb: Monitor sense value = 0x%x, ", sense); in platinum_init_fb()
348 if (default_vmode <= 0 || default_vmode > VMODE_MAX || in platinum_init_fb()
369 if (mac_vmode_to_var(default_vmode, default_cmode, &var) < 0) { in platinum_init_fb()
375 if (mac_vmode_to_var(default_vmode, default_cmode, &var) < 0) { in platinum_init_fb()
393 if (rc < 0) in platinum_init_fb()
398 return 0; in platinum_init_fb()
442 if (mac_var_to_vmode(var, &vmode, &cmode) != 0) { in platinum_var_to_par()
468 return 0; in platinum_var_to_par()
474 pinfo->xoffset = 0; in platinum_var_to_par()
475 pinfo->yoffset = 0; in platinum_var_to_par()
479 return 0; in platinum_var_to_par()
491 return 0; in platinumfb_setup()
495 int vmode = simple_strtoul(this_opt+6, NULL, 0); in platinumfb_setup()
496 if (vmode > 0 && vmode <= VMODE_MAX) in platinumfb_setup()
499 int depth = simple_strtoul(this_opt+6, NULL, 0); in platinumfb_setup()
501 case 0: in platinumfb_setup()
516 return 0; in platinumfb_setup()
521 asm volatile("eieio; dcbf 0,%1" \
543 if (of_address_to_resource(dp, 0, &pinfo->rsrc_reg) || in platinumfb_probe()
549 dev_dbg(&odev->dev, " registers : 0x%llx...0x%llx\n", in platinumfb_probe()
552 dev_dbg(&odev->dev, " framebuffer: 0x%llx...0x%llx\n", in platinumfb_probe()
569 pinfo->frame_buffer = ioremap_wt(pinfo->rsrc_fb.start, 0x400000); in platinumfb_probe()
574 pinfo->platinum_regs = ioremap(pinfo->rsrc_reg.start, 0x1000); in platinumfb_probe()
576 pinfo->cmap_regs_phys = 0xf301b000; /* XXX not in prom? */ in platinumfb_probe()
577 request_mem_region(pinfo->cmap_regs_phys, 0x1000, "platinumfb cmap"); in platinumfb_probe()
578 pinfo->cmap_regs = ioremap(pinfo->cmap_regs_phys, 0x1000); in platinumfb_probe()
582 out_be32(&pinfo->platinum_regs->reg[20].r, 0x1011); /* select max vram */ in platinumfb_probe()
583 out_be32(&pinfo->platinum_regs->reg[24].r, 0); /* switch in vram */ in platinumfb_probe()
586 fbuffer[0x100000] = 0x34; in platinumfb_probe()
587 fbuffer[0x100008] = 0x0; in platinumfb_probe()
588 invalidate_cache(&fbuffer[0x100000]); in platinumfb_probe()
589 fbuffer[0x200000] = 0x56; in platinumfb_probe()
590 fbuffer[0x200008] = 0x0; in platinumfb_probe()
591 invalidate_cache(&fbuffer[0x200000]); in platinumfb_probe()
592 fbuffer[0x300000] = 0x78; in platinumfb_probe()
593 fbuffer[0x300008] = 0x0; in platinumfb_probe()
594 invalidate_cache(&fbuffer[0x300000]); in platinumfb_probe()
596 bank1 = fbuffer[0x100000] == 0x34; in platinumfb_probe()
597 bank2 = fbuffer[0x200000] == 0x56; in platinumfb_probe()
598 bank3 = fbuffer[0x300000] == 0x78; in platinumfb_probe()
599 pinfo->total_vram = (bank0 + bank1 + bank2 + bank3) * 0x100000; in platinumfb_probe()
607 out_8(&pinfo->cmap_regs->addr, 0x40); in platinumfb_probe()
610 case 0x3c: in platinumfb_probe()
612 printk(KERN_INFO "platinumfb: DACula type 0x3c\n"); in platinumfb_probe()
614 case 0x84: in platinumfb_probe()
615 pinfo->clktype = 0; in platinumfb_probe()
616 printk(KERN_INFO "platinumfb: DACula type 0x84\n"); in platinumfb_probe()
619 pinfo->clktype = 0; in platinumfb_probe()
626 if (rc != 0) { in platinumfb_probe()
651 release_mem_region(pinfo->cmap_regs_phys, 0x1000); in platinumfb_remove()
685 return 0; in platinumfb_init()