Lines Matching +full:0 +full:xf800
28 #define dac_reg (0x3c8)
29 #define dac_val (0x3c9)
63 static int ypan __read_mostly; /* 0..nothing, 1..ypan, 2..ywrap */
81 : "a" (0x4f07), /* EAX */ in vesafb_pan_display()
82 "b" (0), /* EBX */ in vesafb_pan_display()
87 return 0; in vesafb_pan_display()
104 err = 0; in vesa_setpalette()
117 entry.pad = 0; in vesa_setpalette()
121 : "a" (0x4f09), /* EAX */ in vesa_setpalette()
122 "b" (0), /* EBX */ in vesa_setpalette()
127 err = 0; in vesa_setpalette()
138 int err = 0; in vesafb_setcolreg()
144 * != 0 for invalid regno. in vesafb_setcolreg()
158 ((red & 0xf800) >> 1) | in vesafb_setcolreg()
159 ((green & 0xf800) >> 6) | in vesafb_setcolreg()
160 ((blue & 0xf800) >> 11); in vesafb_setcolreg()
162 /* 0:5:6:5 */ in vesafb_setcolreg()
164 ((red & 0xf800) ) | in vesafb_setcolreg()
165 ((green & 0xfc00) >> 5) | in vesafb_setcolreg()
166 ((blue & 0xf800) >> 11); in vesafb_setcolreg()
215 return 0; in vesafb_setup()
223 ypan=0; in vesafb_setup()
229 pmi_setpal=0; in vesafb_setup()
233 mtrr = simple_strtoul(this_opt+5, NULL, 0); in vesafb_setup()
235 mtrr=0; in vesafb_setup()
237 vram_total = simple_strtoul(this_opt+7, NULL, 0); in vesafb_setup()
239 vram_remap = simple_strtoul(this_opt+7, NULL, 0); in vesafb_setup()
241 return 0; in vesafb_setup()
313 si->vesapm_seg = 0; in vesafb_probe()
318 "vesafb: cannot reserve video memory at 0x%lx\n", in vesafb_probe()
345 if (si->vesapm_seg < 0xc000) in vesafb_probe()
346 ypan = pmi_setpal = 0; /* not available or some DOS TSR ... */ in vesafb_probe()
358 for (i = pmi_base[3]/2; pmi_base[i] != 0xffff; i++) in vesafb_probe()
361 if (pmi_base[i] != 0xffff) { in vesafb_probe()
369 ypan = pmi_setpal = 0; in vesafb_probe()
388 ypan = 0; in vesafb_probe()
393 vesafb_defined.left_margin = (vesafb_defined.xres / 8) & 0xf8; in vesafb_probe()
394 vesafb_defined.hsync_len = (vesafb_defined.xres / 8) & 0xf8; in vesafb_probe()
427 vesafb_fix.ypanstep = ypan ? 1 : 0; in vesafb_probe()
428 vesafb_fix.ywrapstep = (ypan>1) ? 1 : 0; in vesafb_probe()
432 par->region = request_region(0x3c0, 32, "vesafb"); in vesafb_probe()
446 } while (temp_size >= PAGE_SIZE && par->wc_cookie < 0); in vesafb_probe()
457 "vesafb: abort, cannot ioremap video memory 0x%x @ 0x%lx\n", in vesafb_probe()
463 printk(KERN_INFO "vesafb: framebuffer at 0x%lx, mapped to 0x%p, " in vesafb_probe()
474 info->flags = (ypan ? FBINFO_HWACCEL_YPAN : 0); in vesafb_probe()
476 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in vesafb_probe()
483 if (register_framebuffer(info)<0) { in vesafb_probe()
488 return 0; in vesafb_probe()
496 release_region(0x3c0, 32); in vesafb_probe()
507 release_region(0x3c0, 32); in vesafb_remove()