sti 126 arch/x86/include/asm/irqflags.h #define ENABLE_INTERRUPTS(x) sti sti 188 arch/x86/include/asm/irqflags.h sti; \ sti 159 drivers/video/console/sticon.c struct sti_struct *sti = sticon_sti; sti 168 drivers/video/console/sticon.c sti_bmove(sti, t + count, 0, t, 0, b - t - count, conp->vc_cols); sti 169 drivers/video/console/sticon.c sti_clear(sti, b - count, 0, count, conp->vc_cols, conp->vc_video_erase_char); sti 173 drivers/video/console/sticon.c sti_bmove(sti, t, 0, t + count, 0, b - t - count, conp->vc_cols); sti 174 drivers/video/console/sticon.c sti_clear(sti, t, 0, count, conp->vc_cols, conp->vc_video_erase_char); sti 183 drivers/video/console/sticon.c struct sti_struct *sti = sticon_sti; sti 186 drivers/video/console/sticon.c sti_set(sti, 0, 0, sti_onscreen_y(sti), sti_onscreen_x(sti), 0); sti 187 drivers/video/console/sticon.c vc_cols = sti_onscreen_x(sti) / sti->font_width; sti 188 drivers/video/console/sticon.c vc_rows = sti_onscreen_y(sti) / sti->font_height; sti 61 drivers/video/console/sticore.c #define c_fg(sti, c) col_trans[((c>> 8) & 7)] sti 62 drivers/video/console/sticore.c #define c_bg(sti, c) col_trans[((c>>11) & 7)] sti 63 drivers/video/console/sticore.c #define c_index(sti, c) ((c) & 0xff) sti 75 drivers/video/console/sticore.c static int sti_init_graph(struct sti_struct *sti) sti 77 drivers/video/console/sticore.c struct sti_init_inptr *inptr = &sti->sti_data->init_inptr; sti 78 drivers/video/console/sticore.c struct sti_init_inptr_ext *inptr_ext = &sti->sti_data->init_inptr_ext; sti 79 drivers/video/console/sticore.c struct sti_init_outptr *outptr = &sti->sti_data->init_outptr; sti 83 drivers/video/console/sticore.c spin_lock_irqsave(&sti->lock, flags); sti 91 drivers/video/console/sticore.c ret = sti_call(sti, sti->init_graph, &default_init_flags, inptr, sti 92 drivers/video/console/sticore.c outptr, sti->glob_cfg); sti 95 drivers/video/console/sticore.c sti->text_planes = outptr->text_planes; sti 98 drivers/video/console/sticore.c spin_unlock_irqrestore(&sti->lock, flags); sti 112 drivers/video/console/sticore.c static void sti_inq_conf(struct sti_struct *sti) sti 114 drivers/video/console/sticore.c struct sti_conf_inptr *inptr = &sti->sti_data->inq_inptr; sti 115 drivers/video/console/sticore.c struct sti_conf_outptr *outptr = &sti->sti_data->inq_outptr; sti 119 drivers/video/console/sticore.c outptr->ext_ptr = STI_PTR(&sti->sti_data->inq_outptr_ext); sti 122 drivers/video/console/sticore.c spin_lock_irqsave(&sti->lock, flags); sti 124 drivers/video/console/sticore.c ret = sti_call(sti, sti->inq_conf, &default_conf_flags, sti 125 drivers/video/console/sticore.c inptr, outptr, sti->glob_cfg); sti 126 drivers/video/console/sticore.c spin_unlock_irqrestore(&sti->lock, flags); sti 136 drivers/video/console/sticore.c sti_putc(struct sti_struct *sti, int c, int y, int x) sti 138 drivers/video/console/sticore.c struct sti_font_inptr *inptr = &sti->sti_data->font_inptr; sti 140 drivers/video/console/sticore.c .font_start_addr= STI_PTR(sti->font->raw), sti 141 drivers/video/console/sticore.c .index = c_index(sti, c), sti 142 drivers/video/console/sticore.c .fg_color = c_fg(sti, c), sti 143 drivers/video/console/sticore.c .bg_color = c_bg(sti, c), sti 144 drivers/video/console/sticore.c .dest_x = x * sti->font_width, sti 145 drivers/video/console/sticore.c .dest_y = y * sti->font_height, sti 147 drivers/video/console/sticore.c struct sti_font_outptr *outptr = &sti->sti_data->font_outptr; sti 152 drivers/video/console/sticore.c spin_lock_irqsave(&sti->lock, flags); sti 154 drivers/video/console/sticore.c ret = sti_call(sti, sti->font_unpmv, &default_font_flags, sti 155 drivers/video/console/sticore.c inptr, outptr, sti->glob_cfg); sti 156 drivers/video/console/sticore.c spin_unlock_irqrestore(&sti->lock, flags); sti 167 drivers/video/console/sticore.c sti_set(struct sti_struct *sti, int src_y, int src_x, sti 170 drivers/video/console/sticore.c struct sti_blkmv_inptr *inptr = &sti->sti_data->blkmv_inptr; sti 181 drivers/video/console/sticore.c struct sti_blkmv_outptr *outptr = &sti->sti_data->blkmv_outptr; sti 186 drivers/video/console/sticore.c spin_lock_irqsave(&sti->lock, flags); sti 188 drivers/video/console/sticore.c ret = sti_call(sti, sti->block_move, &clear_blkmv_flags, sti 189 drivers/video/console/sticore.c inptr, outptr, sti->glob_cfg); sti 190 drivers/video/console/sticore.c spin_unlock_irqrestore(&sti->lock, flags); sti 195 drivers/video/console/sticore.c sti_clear(struct sti_struct *sti, int src_y, int src_x, sti 198 drivers/video/console/sticore.c struct sti_blkmv_inptr *inptr = &sti->sti_data->blkmv_inptr; sti 200 drivers/video/console/sticore.c .fg_color = c_fg(sti, c), sti 201 drivers/video/console/sticore.c .bg_color = c_bg(sti, c), sti 202 drivers/video/console/sticore.c .src_x = src_x * sti->font_width, sti 203 drivers/video/console/sticore.c .src_y = src_y * sti->font_height, sti 204 drivers/video/console/sticore.c .dest_x = src_x * sti->font_width, sti 205 drivers/video/console/sticore.c .dest_y = src_y * sti->font_height, sti 206 drivers/video/console/sticore.c .width = width * sti->font_width, sti 207 drivers/video/console/sticore.c .height = height* sti->font_height, sti 209 drivers/video/console/sticore.c struct sti_blkmv_outptr *outptr = &sti->sti_data->blkmv_outptr; sti 214 drivers/video/console/sticore.c spin_lock_irqsave(&sti->lock, flags); sti 216 drivers/video/console/sticore.c ret = sti_call(sti, sti->block_move, &clear_blkmv_flags, sti 217 drivers/video/console/sticore.c inptr, outptr, sti->glob_cfg); sti 218 drivers/video/console/sticore.c spin_unlock_irqrestore(&sti->lock, flags); sti 227 drivers/video/console/sticore.c sti_bmove(struct sti_struct *sti, int src_y, int src_x, sti 230 drivers/video/console/sticore.c struct sti_blkmv_inptr *inptr = &sti->sti_data->blkmv_inptr; sti 232 drivers/video/console/sticore.c .src_x = src_x * sti->font_width, sti 233 drivers/video/console/sticore.c .src_y = src_y * sti->font_height, sti 234 drivers/video/console/sticore.c .dest_x = dst_x * sti->font_width, sti 235 drivers/video/console/sticore.c .dest_y = dst_y * sti->font_height, sti 236 drivers/video/console/sticore.c .width = width * sti->font_width, sti 237 drivers/video/console/sticore.c .height = height* sti->font_height, sti 239 drivers/video/console/sticore.c struct sti_blkmv_outptr *outptr = &sti->sti_data->blkmv_outptr; sti 244 drivers/video/console/sticore.c spin_lock_irqsave(&sti->lock, flags); sti 246 drivers/video/console/sticore.c ret = sti_call(sti, sti->block_move, &default_blkmv_flags, sti 247 drivers/video/console/sticore.c inptr, outptr, sti->glob_cfg); sti 248 drivers/video/console/sticore.c spin_unlock_irqrestore(&sti->lock, flags); sti 402 drivers/video/console/sticore.c static void sti_dump_outptr(struct sti_struct *sti) sti 409 drivers/video/console/sticore.c sti->sti_data->inq_outptr.bits_per_pixel, sti 410 drivers/video/console/sticore.c sti->sti_data->inq_outptr.bits_used, sti 411 drivers/video/console/sticore.c sti->sti_data->inq_outptr.planes, sti 412 drivers/video/console/sticore.c sti->sti_data->inq_outptr.attributes)); sti 415 drivers/video/console/sticore.c static int sti_init_glob_cfg(struct sti_struct *sti, unsigned long rom_address, sti 424 drivers/video/console/sticore.c if (sti->sti_mem_request < 256) sti 425 drivers/video/console/sticore.c sti->sti_mem_request = 256; /* STI default */ sti 427 drivers/video/console/sticore.c size = sizeof(struct sti_all_data) + sti->sti_mem_request - 256; sti 429 drivers/video/console/sticore.c sti->sti_data = kzalloc(size, STI_LOWMEM); sti 430 drivers/video/console/sticore.c if (!sti->sti_data) sti 433 drivers/video/console/sticore.c glob_cfg = &sti->sti_data->glob_cfg; sti 434 drivers/video/console/sticore.c glob_cfg_ext = &sti->sti_data->glob_cfg_ext; sti 435 drivers/video/console/sticore.c save_addr = &sti->sti_data->save_addr; sti 436 drivers/video/console/sticore.c sti_mem_addr = &sti->sti_data->sti_mem_addr; sti 443 drivers/video/console/sticore.c if (sti->pd) { sti 444 drivers/video/console/sticore.c unsigned char offs = sti->rm_entry[i]; sti 453 drivers/video/console/sticore.c i,sti->rm_entry[i]); sti 456 drivers/video/console/sticore.c newhpa = pci_resource_start (sti->pd, (offs - PCI_BASE_ADDRESS_0) / 4); sti 460 drivers/video/console/sticore.c sti->regions_phys[i] = sti 461 drivers/video/console/sticore.c REGION_OFFSET_TO_PHYS(sti->regions[i], newhpa); sti 463 drivers/video/console/sticore.c len = sti->regions[i].region_desc.length * 4096; sti 465 drivers/video/console/sticore.c glob_cfg->region_ptrs[i] = sti->regions_phys[i]; sti 469 drivers/video/console/sticore.c i, sti->regions_phys[i], glob_cfg->region_ptrs[i], sti 471 drivers/video/console/sticore.c sti->regions[i].region_desc.btlb, sti 472 drivers/video/console/sticore.c sti->regions[i].region_desc.sys_only, sti 473 drivers/video/console/sticore.c sti->regions[i].region_desc.cache, sti 474 drivers/video/console/sticore.c sti->regions[i].region_desc.last)); sti 477 drivers/video/console/sticore.c if (sti->regions[i].region_desc.last) sti 481 drivers/video/console/sticore.c if (++i<8 && sti->regions[i].region) sti 483 drivers/video/console/sticore.c __FILE__, sti->regions[i].region); sti 487 drivers/video/console/sticore.c sti->glob_cfg = glob_cfg; sti 730 drivers/video/console/sticore.c static int sti_read_rom(int wordmode, struct sti_struct *sti, sti 755 drivers/video/console/sticore.c memcpy(sti->regions, ((void *)raw)+raw->region_list, sizeof(sti->regions)); sti 763 drivers/video/console/sticore.c sti->font_unpmv = address + (raw->font_unpmv & 0x03ffffff); sti 764 drivers/video/console/sticore.c sti->block_move = address + (raw->block_move & 0x03ffffff); sti 765 drivers/video/console/sticore.c sti->init_graph = address + (raw->init_graph & 0x03ffffff); sti 766 drivers/video/console/sticore.c sti->inq_conf = address + (raw->inq_conf & 0x03ffffff); sti 768 drivers/video/console/sticore.c sti->rom = cooked; sti 769 drivers/video/console/sticore.c sti->rom->raw = raw; sti 771 drivers/video/console/sticore.c sti->font = sti_select_font(sti->rom, sti_search_font); sti 772 drivers/video/console/sticore.c sti->font_width = sti->font->raw->width; sti 773 drivers/video/console/sticore.c sti->font_height = sti->font->raw->height; sti 775 drivers/video/console/sticore.c sti->font->raw = sti_bmode_font_raw(sti->font); sti 777 drivers/video/console/sticore.c sti->sti_mem_request = raw->sti_mem_req; sti 778 drivers/video/console/sticore.c sti->graphics_id[0] = raw->graphics_id[0]; sti 779 drivers/video/console/sticore.c sti->graphics_id[1] = raw->graphics_id[1]; sti 784 drivers/video/console/sticore.c if (wordmode || sti->graphics_id[1] != 0x09A02587) sti 789 drivers/video/console/sticore.c switch (sti->graphics_id[0]) { sti 821 drivers/video/console/sticore.c struct sti_struct *sti; sti 830 drivers/video/console/sticore.c sti = kzalloc(sizeof(*sti), GFP_KERNEL); sti 831 drivers/video/console/sticore.c if (!sti) sti 834 drivers/video/console/sticore.c spin_lock_init(&sti->lock); sti 857 drivers/video/console/sticore.c sti->pd = pd; sti 865 drivers/video/console/sticore.c rm = (u32*) &sti->rm_entry; sti 873 drivers/video/console/sticore.c DPRINTK(("%02x ", sti->rm_entry[i])); sti 887 drivers/video/console/sticore.c ok = sti_read_rom(0, sti, address); sti 893 drivers/video/console/sticore.c ok = sti_read_rom(1, sti, address); sti 899 drivers/video/console/sticore.c if (sti_init_glob_cfg(sti, address, hpa)) sti 905 drivers/video/console/sticore.c if (sti->pd) { sti 907 drivers/video/console/sticore.c rom_base = pci_resource_start(sti->pd, PCI_ROM_RESOURCE); sti 908 drivers/video/console/sticore.c pci_write_config_dword(sti->pd, PCI_ROM_ADDRESS, rom_base & ~PCI_ROM_ADDRESS_ENABLE); sti 912 drivers/video/console/sticore.c if (sti_init_graph(sti)) sti 915 drivers/video/console/sticore.c sti_inq_conf(sti); sti 916 drivers/video/console/sticore.c sti_dump_globcfg(sti->glob_cfg, sti->sti_mem_request); sti 917 drivers/video/console/sticore.c sti_dump_outptr(sti); sti 920 drivers/video/console/sticore.c sti->sti_data->inq_outptr.dev_name); sti 922 drivers/video/console/sticore.c sti_roms[num_sti_roms] = sti; sti 925 drivers/video/console/sticore.c return sti; sti 928 drivers/video/console/sticore.c kfree(sti); sti 932 drivers/video/console/sticore.c static void sticore_check_for_default_sti(struct sti_struct *sti, char *path) sti 935 drivers/video/console/sticore.c default_sti = sti; sti 946 drivers/video/console/sticore.c struct sti_struct *sti = NULL; sti 950 drivers/video/console/sticore.c sti = sti_try_rom_generic(dev->addr[0], hpa, NULL); sti 951 drivers/video/console/sticore.c if (!sti) sti 952 drivers/video/console/sticore.c sti = sti_try_rom_generic(hpa, hpa, NULL); sti 953 drivers/video/console/sticore.c if (!sti) sti 954 drivers/video/console/sticore.c sti = sti_try_rom_generic(PAGE0->proc_sti, hpa, NULL); sti 955 drivers/video/console/sticore.c if (!sti) sti 959 drivers/video/console/sticore.c sticore_check_for_default_sti(sti, pa_path); sti 970 drivers/video/console/sticore.c struct sti_struct *sti; sti 993 drivers/video/console/sticore.c sti = sti_try_rom_generic(rom_base, fb_base, pd); sti 994 drivers/video/console/sticore.c if (sti) { sti 997 drivers/video/console/sticore.c sticore_check_for_default_sti(sti, pa_path); sti 1000 drivers/video/console/sticore.c if (!sti) { sti 1094 drivers/video/console/sticore.c int sti_call(const struct sti_struct *sti, unsigned long func, sti 48 drivers/video/fbdev/sticore.h #define sti_onscreen_x(sti) (sti->glob_cfg->onscreen_x) sti 49 drivers/video/fbdev/sticore.h #define sti_onscreen_y(sti) (sti->glob_cfg->onscreen_y) sti 52 drivers/video/fbdev/sticore.h #define sti_font_x(sti) (PTR_STI(sti->font)->width) sti 53 drivers/video/fbdev/sticore.h #define sti_font_y(sti) (PTR_STI(sti->font)->height) sti 387 drivers/video/fbdev/sticore.h int sti_call(const struct sti_struct *sti, unsigned long func, sti 394 drivers/video/fbdev/sticore.h void sti_putc(struct sti_struct *sti, int c, int y, int x); sti 395 drivers/video/fbdev/sticore.h void sti_set(struct sti_struct *sti, int src_y, int src_x, sti 397 drivers/video/fbdev/sticore.h void sti_clear(struct sti_struct *sti, int src_y, int src_x, sti 399 drivers/video/fbdev/sticore.h void sti_bmove(struct sti_struct *sti, int src_y, int src_x, sti 76 drivers/video/fbdev/stifb.c F_EXTEND(fb_info->sti->glob_cfg->region_ptrs[index]) sti 109 drivers/video/fbdev/stifb.c struct sti_struct *sti; sti 835 drivers/video/fbdev/stifb.c pBytePerLongDevDepData = fb->sti->regions[NGLEDEVDEPROM_CRT_REGION]; sti 1118 drivers/video/fbdev/stifb.c static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref) sti 1138 drivers/video/fbdev/stifb.c fb->sti = sti; sti 1139 drivers/video/fbdev/stifb.c dev_name = sti->sti_data->inq_outptr.dev_name; sti 1141 drivers/video/fbdev/stifb.c fb->id = fb->sti->graphics_id[0]; sti 1175 drivers/video/fbdev/stifb.c xres = sti_onscreen_x(fb->sti); sti 1176 drivers/video/fbdev/stifb.c yres = sti_onscreen_y(fb->sti); sti 1212 drivers/video/fbdev/stifb.c if ((fb->sti->regions_phys[0] & 0xfc000000) == sti 1213 drivers/video/fbdev/stifb.c (fb->sti->regions_phys[2] & 0xfc000000)) sti 1214 drivers/video/fbdev/stifb.c sti_rom_address = F_EXTEND(fb->sti->regions_phys[0]); sti 1216 drivers/video/fbdev/stifb.c sti_rom_address = F_EXTEND(fb->sti->regions_phys[1]); sti 1251 drivers/video/fbdev/stifb.c fix->smem_start = F_EXTEND(fb->sti->regions_phys[1]); sti 1252 drivers/video/fbdev/stifb.c fix->smem_len = fb->sti->regions[1].region_desc.length * 4096; sti 1254 drivers/video/fbdev/stifb.c fix->line_length = (fb->sti->glob_cfg->total_x * bpp) / 8; sti 1323 drivers/video/fbdev/stifb.c sti->info = info; /* save for unregister_framebuffer() */ sti 1357 drivers/video/fbdev/stifb.c struct sti_struct *sti; sti 1376 drivers/video/fbdev/stifb.c sti = sti_get_rom(i); sti 1377 drivers/video/fbdev/stifb.c if (!sti) sti 1379 drivers/video/fbdev/stifb.c if (sti == def_sti) { sti 1380 drivers/video/fbdev/stifb.c stifb_init_fb(sti, stifb_bpp_pref[i - 1]); sti 1387 drivers/video/fbdev/stifb.c sti = sti_get_rom(i); sti 1388 drivers/video/fbdev/stifb.c if (!sti) sti 1390 drivers/video/fbdev/stifb.c if (sti == def_sti) sti 1392 drivers/video/fbdev/stifb.c stifb_init_fb(sti, stifb_bpp_pref[i - 1]); sti 1404 drivers/video/fbdev/stifb.c struct sti_struct *sti; sti 1408 drivers/video/fbdev/stifb.c sti = sti_get_rom(i); sti 1409 drivers/video/fbdev/stifb.c if (!sti) sti 1411 drivers/video/fbdev/stifb.c if (sti->info) { sti 1412 drivers/video/fbdev/stifb.c struct fb_info *info = sti->info; sti 1413 drivers/video/fbdev/stifb.c unregister_framebuffer(sti->info); sti 1421 drivers/video/fbdev/stifb.c sti->info = NULL;