Lines Matching full:gbe
2 * SGI GBE frame buffer driver
32 #include <video/gbe.h>
34 static struct sgi_gbe *gbe; variable
59 #error GBE Framebuffer cannot use more than 8MB of memory
187 gbe->ctrlstat = 0x300aa000; in gbe_reset()
194 * Description: This should turn off the monitor and gbe. This is used
207 val = gbe->vt_xy; in gbe_turn_off()
212 val = gbe->ovr_control; in gbe_turn_off()
214 gbe->ovr_control = val; in gbe_turn_off()
216 val = gbe->frm_control; in gbe_turn_off()
218 gbe->frm_control = val; in gbe_turn_off()
220 val = gbe->did_control; in gbe_turn_off()
222 gbe->did_control = val; in gbe_turn_off()
228 val = gbe->frm_inhwctrl; in gbe_turn_off()
232 val = gbe->ovr_inhwctrl; in gbe_turn_off()
236 val = gbe->did_inhwctrl; in gbe_turn_off()
248 val = gbe->vt_vpixen; in gbe_turn_off()
252 val = gbe->vt_xy; in gbe_turn_off()
262 val = gbe->vt_xy; in gbe_turn_off()
274 gbe->vt_xy = val; in gbe_turn_off()
277 val = gbe->vt_xy; in gbe_turn_off()
287 val = gbe->dotclock; in gbe_turn_off()
289 gbe->dotclock = val; in gbe_turn_off()
292 val = gbe->dotclock; in gbe_turn_off()
302 val = gbe->frm_size_tile; in gbe_turn_off()
304 gbe->frm_size_tile = val; in gbe_turn_off()
306 gbe->frm_size_tile = val; in gbe_turn_off()
318 val = gbe->vt_xy; in gbe_turn_on()
324 val = gbe->dotclock; in gbe_turn_on()
326 gbe->dotclock = val; in gbe_turn_on()
329 val = gbe->dotclock; in gbe_turn_on()
341 gbe->vt_xy = val; in gbe_turn_on()
344 val = gbe->vt_xy; in gbe_turn_on()
354 val = gbe->frm_control; in gbe_turn_on()
356 gbe->frm_control = val; in gbe_turn_on()
359 val = gbe->frm_inhwctrl; in gbe_turn_on()
376 for (j = 0; j < 1000 && gbe->cm_fifo >= 63; j++) in gbe_loadcmap()
381 gbe->cmap[i] = gbe_cmap[i]; in gbe_loadcmap()
420 gbe->vt_flags = outputVal; in gbefb_setup_flatpanel()
434 gbe->fp_de = outputVal; in gbefb_setup_flatpanel()
437 gbe->fp_hdrv = outputVal; in gbefb_setup_flatpanel()
441 gbe->fp_vdrv = outputVal; in gbefb_setup_flatpanel()
468 * GBE crystal runs at 20Mhz or 27Mhz in compute_gbe_timing()
542 gbe->dotclock = val; in gbe_set_timing_info()
549 gbe->vt_xymax = val; in gbe_set_timing_info()
555 gbe->vt_vsync = val; in gbe_set_timing_info()
559 gbe->vt_hsync = val; in gbe_set_timing_info()
563 gbe->vt_vblank = val; in gbe_set_timing_info()
569 gbe->vt_hblank = val; in gbe_set_timing_info()
575 gbe->vt_vcmap = val; in gbe_set_timing_info()
579 gbe->vt_hcmap = val; in gbe_set_timing_info()
596 gbe->did_start_xy = val; in gbe_set_timing_info()
607 gbe->crs_start_xy = val; in gbe_set_timing_info()
612 gbe->vc_start_xy = val; in gbe_set_timing_info()
623 gbe->vt_hpixen = val; in gbe_set_timing_info()
628 gbe->vt_vpixen = val; in gbe_set_timing_info()
633 gbe->vt_flags = val; in gbe_set_timing_info()
657 /* turn off GBE */ in gbefb_set_par()
682 gbe->mode_regs[i] = val; in gbefb_set_par()
685 gbe->vt_intr01 = 0xffffffff; in gbefb_set_par()
686 gbe->vt_intr23 = 0xffffffff; in gbefb_set_par()
689 The GBE hardware uses a tiled memory to screen mapping. Tiles are in gbefb_set_par()
712 really convenient. In order to support linear addressing, the GBE in gbefb_set_par()
718 framebuffer as a continuous virtual memory. The GBE tile table is in gbefb_set_par()
721 GBE -> tile list framebuffer TLB <------------ CPU in gbefb_set_par()
727 The GBE hardware is then told that the buffer is 512*tweaked_height, in gbefb_set_par()
729 Thus the GBE hardware will scan the first tile, filing the first 64k in gbefb_set_par()
751 /* Tell gbe about the tiles table location */ in gbefb_set_par()
759 gbe->frm_control = val; in gbefb_set_par()
784 gbe->frm_size_tile = val; in gbefb_set_par()
791 gbe->frm_size_pixel = val; in gbefb_set_par()
794 gbe->did_control = 0; in gbefb_set_par()
795 gbe->ovr_width_tile = 0; in gbefb_set_par()
798 gbe->crs_ctl = 0; in gbefb_set_par()
800 /* Turn on GBE */ in gbefb_set_par()
806 gbe->gmap[i] = (i << 24) | (i << 16) | (i << 8); in gbefb_set_par()
821 strcpy(fix->id, "SGI GBE"); in gbefb_encode_fix()
865 for (i = 0; i < 1000 && gbe->cm_fifo >= 63; i++) in gbefb_setcolreg()
871 gbe->cmap[regno] = gbe_cmap[regno]; in gbefb_setcolreg()
1140 if (!request_mem_region(GBE_BASE, sizeof(struct sgi_gbe), "GBE")) { in gbefb_probe()
1146 gbe = (struct sgi_gbe *) devm_ioremap(&p_dev->dev, GBE_BASE, in gbefb_probe()
1148 if (!gbe) { in gbefb_probe()
1153 gbe_revision = gbe->ctrlstat & 15; in gbefb_probe()
1202 /* reset GBE */ in gbefb_probe()