Lines Matching refs:fb_info
55 static struct fb_info fb_info;
91 struct fb_info *info);
92 static int mc68x328fb_set_par(struct fb_info *info);
94 u_int transp, struct fb_info *info);
96 struct fb_info *info);
97 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
133 struct fb_info *info)
265 static int mc68x328fb_set_par(struct fb_info *info)
279 u_int transp, struct fb_info *info)
367 struct fb_info *info)
392 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
438 fb_info.screen_base = (void *)videomemory;
439 fb_info.fbops = &mc68x328fb_ops;
440 fb_info.var = mc68x328fb_default;
441 fb_info.fix = mc68x328fb_fix;
442 fb_info.fix.smem_start = videomemory;
443 fb_info.fix.smem_len = videomemorysize;
444 fb_info.fix.line_length =
446 fb_info.fix.visual = (mc68x328fb_default.bits_per_pixel) == 1 ?
448 if (fb_info.var.bits_per_pixel == 1) {
449 fb_info.var.red.length = fb_info.var.green.length = fb_info.var.blue.length = 1;
450 fb_info.var.red.offset = fb_info.var.green.offset = fb_info.var.blue.offset = 0;
452 fb_info.pseudo_palette = &mc68x328fb_pseudo_palette;
453 fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
455 if (fb_alloc_cmap(&fb_info.cmap, 256, 0))
458 if (register_framebuffer(&fb_info) < 0) {
459 fb_dealloc_cmap(&fb_info.cmap);
463 fb_info(&fb_info, "%s frame buffer device\n", fb_info.fix.id);
464 fb_info(&fb_info, "%dx%dx%d at 0x%08lx\n",
478 unregister_framebuffer(&fb_info);
479 fb_dealloc_cmap(&fb_info.cmap);