Lines Matching refs:fb_info

58 static struct tgafb_info fb_info;  variable
277 u_int *transp, struct fb_info *info);
279 u_int transp, struct fb_info *info);
291 struct fb_info *info);
312 strcpy(fix->id, fb_info.gen.info.modename); in tgafb_encode_fix()
316 if (fb_info.tga_type == TGA_TYPE_8PLANE) { in tgafb_encode_fix()
323 fix->smem_start = fb_info.tga_fb_base; in tgafb_encode_fix()
325 fix->mmio_start = fb_info.tga_regs_base; in tgafb_encode_fix()
340 if (fb_info.tga_type == TGA_TYPE_8PLANE) { in tgafb_decode_var()
422 if (fb_info.tga_type == TGA_TYPE_8PLANE) { in tgafb_encode_var()
456 if (fb_info.tga_type == TGA_TYPE_8PLANE) in tgafb_get_par()
491 TGA_WRITE_REG(deep_presets[fb_info.tga_type], TGA_DEEP_REG); in tgafb_set_par()
497 TGA_WRITE_REG(rasterop_presets[fb_info.tga_type], TGA_RASTEROP_REG); in tgafb_set_par()
498 TGA_WRITE_REG(mode_presets[fb_info.tga_type], TGA_MODE_REG); in tgafb_set_par()
499 TGA_WRITE_REG(base_addr_presets[fb_info.tga_type], TGA_BASE_ADDR_REG); in tgafb_set_par()
515 if (fb_info.tga_type == TGA_TYPE_8PLANE) { in tgafb_set_par()
695 u_int *transp, struct fb_info *info) in tgafb_getcolreg()
708 u_int transp, struct fb_info *info) in tgafb_setcolreg()
720 if (regno < 16 && fb_info.tga_type != TGA_TYPE_8PLANE) in tgafb_setcolreg()
724 if (fb_info.tga_type == TGA_TYPE_8PLANE) { in tgafb_setcolreg()
743 struct fb_info *info) in tgafb_set_cmap()
754 if (fb_info.tga_type != TGA_TYPE_8PLANE) in tgafb_set_cmap()
834 disp->screen_base = (char *)fb_info.tga_fb_base; in tgafb_set_disp()
835 switch (fb_info.tga_type) { in tgafb_set_disp()
931 fb_info.tga_mem_base = (unsigned long)ioremap(pdev->resource[0].start, 0); in tgafb_init()
932 fb_info.tga_type = (readl(fb_info.tga_mem_base) >> 12) & 0x0f; in tgafb_init()
933 fb_info.tga_regs_base = fb_info.tga_mem_base + TGA_REGS_OFFSET; in tgafb_init()
934 fb_info.tga_fb_base = (fb_info.tga_mem_base in tgafb_init()
935 + fb_offset_presets[fb_info.tga_type]); in tgafb_init()
936 pci_read_config_byte(pdev, PCI_REVISION_ID, &fb_info.tga_chip_rev); in tgafb_init()
940 fb_info.gen.info.node = -1; in tgafb_init()
941 fb_info.gen.info.flags = FBINFO_FLAG_DEFAULT; in tgafb_init()
942 fb_info.gen.info.fbops = &tgafb_ops; in tgafb_init()
943 fb_info.gen.info.disp = &disp; in tgafb_init()
944 fb_info.gen.info.changevar = NULL; in tgafb_init()
945 fb_info.gen.info.switch_con = &fbgen_switch; in tgafb_init()
946 fb_info.gen.info.updatevar = &fbgen_update_var; in tgafb_init()
947 fb_info.gen.info.blank = &fbgen_blank; in tgafb_init()
948 strcpy(fb_info.gen.info.fontname, default_fontname); in tgafb_init()
949 fb_info.gen.parsize = sizeof (struct tgafb_par); in tgafb_init()
950 fb_info.gen.fbhw = &tgafb_hwswitch; in tgafb_init()
951 fb_info.gen.fbhw->detect(); in tgafb_init()
953 printk (KERN_INFO "tgafb: DC21030 [TGA] detected, rev=0x%02x\n", fb_info.tga_chip_rev); in tgafb_init()
957 switch (fb_info.tga_type) in tgafb_init()
960 strcpy (fb_info.gen.info.modename,"Digital ZLXp-E1"); in tgafb_init()
964 strcpy (fb_info.gen.info.modename,"Digital ZLXp-E2"); in tgafb_init()
968 strcpy (fb_info.gen.info.modename,"Digital ZLXp-E3"); in tgafb_init()
977 fbgen_get_var(&disp.var, -1, &fb_info.gen.info); in tgafb_init()
979 fbgen_do_set_var(&disp.var, 1, &fb_info.gen); in tgafb_init()
980 fbgen_set_disp(-1, &fb_info.gen); in tgafb_init()
981 fbgen_install_cmap(0, &fb_info.gen); in tgafb_init()
982 if (register_framebuffer(&fb_info.gen.info) < 0) in tgafb_init()
985 GET_FB_IDX(fb_info.gen.info.node), fb_info.gen.info.modename, in tgafb_init()
997 unregister_framebuffer(&fb_info.gen.info); in tgafb_cleanup()