• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/console/

Lines Matching refs:sti

58 #define c_fg(sti, c) col_trans[((c>> 8) & 7)]
59 #define c_bg(sti, c) col_trans[((c>>11) & 7)]
60 #define c_index(sti, c) ((c) & 0xff)
72 static int sti_init_graph(struct sti_struct *sti)
83 spin_lock_irqsave(&sti->lock, flags);
85 ret = STI_CALL(sti->init_graph, &default_init_flags, &inptr,
86 &outptr, sti->glob_cfg);
88 spin_unlock_irqrestore(&sti->lock, flags);
95 sti->text_planes = outptr.text_planes;
103 static void sti_inq_conf(struct sti_struct *sti)
109 sti->outptr.ext_ptr = STI_PTR(&sti->outptr_ext);
112 spin_lock_irqsave(&sti->lock, flags);
113 ret = STI_CALL(sti->inq_conf, &default_conf_flags,
114 &inptr, &sti->outptr, sti->glob_cfg);
115 spin_unlock_irqrestore(&sti->lock, flags);
125 sti_putc(struct sti_struct *sti, int c, int y, int x)
128 .font_start_addr= STI_PTR(sti->font->raw),
129 .index = c_index(sti, c),
130 .fg_color = c_fg(sti, c),
131 .bg_color = c_bg(sti, c),
132 .dest_x = x * sti->font_width,
133 .dest_y = y * sti->font_height,
140 spin_lock_irqsave(&sti->lock, flags);
141 ret = STI_CALL(sti->font_unpmv, &default_font_flags,
142 &inptr, &outptr, sti->glob_cfg);
143 spin_unlock_irqrestore(&sti->lock, flags);
154 sti_set(struct sti_struct *sti, int src_y, int src_x,
172 spin_lock_irqsave(&sti->lock, flags);
173 ret = STI_CALL(sti->block_move, &clear_blkmv_flags,
174 &inptr, &outptr, sti->glob_cfg);
175 spin_unlock_irqrestore(&sti->lock, flags);
180 sti_clear(struct sti_struct *sti, int src_y, int src_x,
184 .fg_color = c_fg(sti, c),
185 .bg_color = c_bg(sti, c),
186 .src_x = src_x * sti->font_width,
187 .src_y = src_y * sti->font_height,
188 .dest_x = src_x * sti->font_width,
189 .dest_y = src_y * sti->font_height,
190 .width = width * sti->font_width,
191 .height = height* sti->font_height,
198 spin_lock_irqsave(&sti->lock, flags);
199 ret = STI_CALL(sti->block_move, &clear_blkmv_flags,
200 &inptr, &outptr, sti->glob_cfg);
201 spin_unlock_irqrestore(&sti->lock, flags);
210 sti_bmove(struct sti_struct *sti, int src_y, int src_x,
214 .src_x = src_x * sti->font_width,
215 .src_y = src_y * sti->font_height,
216 .dest_x = dst_x * sti->font_width,
217 .dest_y = dst_y * sti->font_height,
218 .width = width * sti->font_width,
219 .height = height* sti->font_height,
226 spin_lock_irqsave(&sti->lock, flags);
227 ret = STI_CALL(sti->block_move, &default_blkmv_flags,
228 &inptr, &outptr, sti->glob_cfg);
229 spin_unlock_irqrestore(&sti->lock, flags);
277 * parameter sti=<x> which of them will be the initial boot-console.
281 __setup("sti=", sti_setup);
385 sti_dump_outptr(struct sti_struct *sti)
392 sti->outptr.bits_per_pixel,
393 sti->outptr.bits_used,
394 sti->outptr.planes,
395 sti->outptr.attributes));
399 sti_init_glob_cfg(struct sti_struct *sti,
409 if (!sti->sti_mem_request)
410 sti->sti_mem_request = 256; /* STI default */
412 glob_cfg = kzalloc(sizeof(*sti->glob_cfg), GFP_KERNEL);
415 sti_mem_addr = kzalloc(sti->sti_mem_request, GFP_KERNEL);
430 if (sti->pd) {
431 unsigned char offs = sti->rm_entry[i];
440 i,sti->rm_entry[i]);
443 newhpa = pci_resource_start (sti->pd, (offs - PCI_BASE_ADDRESS_0) / 4);
447 sti->regions_phys[i] =
448 REGION_OFFSET_TO_PHYS(sti->regions[i], newhpa);
450 len = sti->regions[i].region_desc.length * 4096;
452 glob_cfg->region_ptrs[i] = sti->regions_phys[i];
456 i, sti->regions_phys[i], glob_cfg->region_ptrs[i],
458 sti->regions[i].region_desc.btlb,
459 sti->regions[i].region_desc.sys_only,
460 sti->regions[i].region_desc.cache,
461 sti->regions[i].region_desc.last));
464 if (sti->regions[i].region_desc.last)
468 if (++i<8 && sti->regions[i].region)
470 __FILE__, sti->regions[i].region);
474 sti->glob_cfg = glob_cfg;
724 static int __devinit sti_read_rom(int wordmode, struct sti_struct *sti,
749 memcpy(sti->regions, ((void *)raw)+raw->region_list, sizeof(sti->regions));
753 sti->font_unpmv = address + (raw->font_unpmv & 0x03ffffff);
754 sti->block_move = address + (raw->block_move & 0x03ffffff);
755 sti->init_graph = address + (raw->init_graph & 0x03ffffff);
756 sti->inq_conf = address + (raw->inq_conf & 0x03ffffff);
758 sti->rom = cooked;
759 sti->rom->raw = raw;
761 sti->font = sti_select_font(sti->rom, sti_search_font);
762 sti->font_width = sti->font->raw->width;
763 sti->font_height = sti->font->raw->height;
765 sti->font->raw = sti_bmode_font_raw(sti->font);
767 sti->sti_mem_request = raw->sti_mem_req;
768 sti->graphics_id[0] = raw->graphics_id[0];
769 sti->graphics_id[1] = raw->graphics_id[1];
774 if (wordmode || sti->graphics_id[1] != 0x09A02587)
779 switch (sti->graphics_id[0]) {
810 struct sti_struct *sti;
819 sti = kzalloc(sizeof(*sti), GFP_KERNEL);
820 if (!sti) {
825 spin_lock_init(&sti->lock);
829 * to read the hpa is okay, for romless sti */
848 sti->pd = pd;
856 rm = (u32*) &sti->rm_entry;
864 DPRINTK(("%02x ", sti->rm_entry[i]));
878 ok = sti_read_rom(0, sti, address);
884 ok = sti_read_rom(1, sti, address);
890 if (sti_init_glob_cfg(sti, address, hpa))
896 if (sti->pd) {
898 rom_base = pci_resource_start(sti->pd, PCI_ROM_RESOURCE);
899 pci_write_config_dword(sti->pd, PCI_ROM_ADDRESS, rom_base & ~PCI_ROM_ADDRESS_ENABLE);
903 if (sti_init_graph(sti))
906 sti_inq_conf(sti);
907 sti_dump_globcfg(sti->glob_cfg, sti->sti_mem_request);
908 sti_dump_outptr(sti);
910 printk(KERN_INFO " graphics card name: %s\n", sti->outptr.dev_name );
912 sti_roms[num_sti_roms] = sti;
915 return sti;
918 kfree(sti);
922 static void __devinit sticore_check_for_default_sti(struct sti_struct *sti, char *path)
925 default_sti = sti;
936 struct sti_struct *sti = NULL;
940 sti = sti_try_rom_generic(dev->addr[0], hpa, NULL);
941 if (!sti)
942 sti = sti_try_rom_generic(hpa, hpa, NULL);
943 if (!sti)
944 sti = sti_try_rom_generic(PAGE0->proc_sti, hpa, NULL);
945 if (!sti)
949 sticore_check_for_default_sti(sti, pa_path);
961 struct sti_struct *sti;
984 sti = sti_try_rom_generic(rom_base, fb_base, pd);
985 if (sti) {
988 sticore_check_for_default_sti(sti, pa_path);
991 if (!sti) {
1019 .name = "sti",
1032 .name = "sti",
1058 /* if we didn't find the given default sti, take the first one */
1065 * index = 0 gives default sti