Lines Matching refs:fb_info
61 static struct fb_info fb_info;
97 struct fb_info *info);
98 static int mc68x328fb_set_par(struct fb_info *info);
100 u_int transp, struct fb_info *info);
102 struct fb_info *info);
103 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
139 struct fb_info *info)
271 static int mc68x328fb_set_par(struct fb_info *info)
285 u_int transp, struct fb_info *info)
373 struct fb_info *info)
398 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
445 fb_info.screen_base = (void *)videomemory;
446 fb_info.fbops = &mc68x328fb_ops;
447 fb_info.var = mc68x328fb_default;
448 fb_info.fix = mc68x328fb_fix;
449 fb_info.fix.smem_start = videomemory;
450 fb_info.fix.smem_len = videomemorysize;
451 fb_info.fix.line_length =
453 fb_info.fix.visual = (mc68x328fb_default.bits_per_pixel) == 1 ?
455 if (fb_info.var.bits_per_pixel == 1) {
456 fb_info.var.red.length = fb_info.var.green.length = fb_info.var.blue.length = 1;
457 fb_info.var.red.offset = fb_info.var.green.offset = fb_info.var.blue.offset = 0;
459 fb_info.pseudo_palette = &mc68x328fb_pseudo_palette;
460 fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
462 if (fb_alloc_cmap(&fb_info.cmap, 256, 0))
465 if (register_framebuffer(&fb_info) < 0) {
466 fb_dealloc_cmap(&fb_info.cmap);
471 "fb%d: %s frame buffer device\n", fb_info.node, fb_info.fix.id);
473 "fb%d: %dx%dx%d at 0x%08lx\n", fb_info.node,
486 unregister_framebuffer(&fb_info);
487 fb_dealloc_cmap(&fb_info.cmap);