Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

fbcon.h File Reference

#include <linux/config.h>
#include <linux/console_struct.h>
#include <linux/vt_buffer.h>

Include dependency graph for fbcon.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define fontheight(p)   ((p)->_fontheight)
#define fontheightlog(p)   ((p)->_fontheightlog)
#define FONTWIDTH(w)   (1 << ((w) - 1))
#define FONTWIDTHRANGE(w1, w2)   (FONTWIDTH(w2+1) - FONTWIDTH(w1))
#define fontwidth(p)   ((p)->_fontwidth)
#define fontwidthlog(p)   ((p)->_fontwidthlog)
#define attr_fgcol(p, s)   (((s) >> ((p)->fgshift)) & 0x0f)
#define attr_bgcol(p, s)   (((s) >> ((p)->bgshift)) & 0x0f)
#define attr_bgcol_ec(p, conp)   ((conp) ? (((conp)->vc_video_erase_char >> ((p)->bgshift)) & 0x0f) : 0)
#define attr_bold(p, s)   ((s) & 0x200)
#define attr_reverse(p, s)   (((s) & 0x800) ^ ((p)->inverse ? 0x800 : 0))
#define attr_underline(p, s)   ((s) & 0x400)
#define attr_blink(p, s)   ((s) & 0x8000)
#define __SCROLL_YPAN   0x001
#define __SCROLL_YWRAP   0x002
#define __SCROLL_YMOVE   0x003
#define __SCROLL_YREDRAW   0x004
#define __SCROLL_YMASK   0x00f
#define __SCROLL_YFIXED   0x010
#define __SCROLL_YNOMOVE   0x020
#define __SCROLL_YPANREDRAW   0x040
#define __SCROLL_YNOPARTIAL   0x080
#define SCROLL_YREDRAW   (__SCROLL_YFIXED|__SCROLL_YREDRAW)
#define SCROLL_YNOMOVE   (__SCROLL_YNOMOVE|__SCROLL_YPANREDRAW)
#define SCROLL_YNOPARTIAL   __SCROLL_YNOPARTIAL

Functions

void fbcon_redraw_bmove (struct display *, int, int, int, int, int, int)
static __inline__ void * mymemclear_small (void *s, size_t count)
static __inline__ void * mymemclear (void *s, size_t count)
static __inline__ void * mymemset (void *s, size_t count)
static __inline__ void * mymemmove (void *d, const void *s, size_t count)
static __inline__ void fast_memmove (char *dst, const char *src, size_t size)

Variables

display_switch fbcon_dummy


Define Documentation

#define __SCROLL_YFIXED   0x010
 

Definition at line 101 of file fbcon.h.

Referenced by updatescrollmode().

#define __SCROLL_YMASK   0x00f
 

Definition at line 100 of file fbcon.h.

Referenced by fbcon_scroll(), fbcon_scrolldelta(), fbcon_switch(), and updatescrollmode().

#define __SCROLL_YMOVE   0x003
 

Definition at line 98 of file fbcon.h.

Referenced by fbcon_scroll(), and updatescrollmode().

#define __SCROLL_YNOMOVE   0x020
 

Definition at line 102 of file fbcon.h.

Referenced by updatescrollmode().

#define __SCROLL_YNOPARTIAL   0x080
 

Definition at line 104 of file fbcon.h.

Referenced by fbcon_scroll().

#define __SCROLL_YPAN   0x001
 

Definition at line 96 of file fbcon.h.

Referenced by fbcon_scroll(), fbcon_scrolldelta(), fbcon_switch(), and updatescrollmode().

#define __SCROLL_YPANREDRAW   0x040
 

Definition at line 103 of file fbcon.h.

Referenced by fbcon_scroll().

#define __SCROLL_YREDRAW   0x004
 

Definition at line 99 of file fbcon.h.

Referenced by fbcon_scroll(), and updatescrollmode().

#define __SCROLL_YWRAP   0x002
 

Definition at line 97 of file fbcon.h.

Referenced by fbcon_scroll(), fbcon_scrolldelta(), fbcon_switch(), and updatescrollmode().

#define attr_bgcol p,
s   )     (((s) >> ((p)->bgshift)) & 0x0f)
 

Definition at line 76 of file fbcon.h.

Referenced by cg6_fill(), cg6_putc(), cg6_putcs(), fbcon_afb_putc(), fbcon_afb_putcs(), fbcon_cfb16_putc(), fbcon_cfb16_putcs(), fbcon_cfb24_putc(), fbcon_cfb24_putcs(), fbcon_cfb2_putc(), fbcon_cfb2_putcs(), fbcon_cfb32_putc(), fbcon_cfb32_putcs(), fbcon_cfb4_putc(), fbcon_cfb4_putcs(), fbcon_cfb8_putc(), fbcon_cfb8_putcs(), fbcon_ega_planes_putc(), fbcon_ega_planes_putcs(), fbcon_ilbm_putc(), fbcon_ilbm_putcs(), fbcon_iplan2p2_putc(), fbcon_iplan2p2_putcs(), fbcon_iplan2p4_putc(), fbcon_iplan2p4_putcs(), fbcon_iplan2p8_putc(), fbcon_iplan2p8_putcs(), fbcon_vga_planes_putc(), fbcon_vga_planes_putcs(), ffb_fill(), ffb_putc(), ffb_putcs(), leo_fill(), leo_putc(), leo_putcs(), matrox_text_clear(), matrox_text_putc(), matrox_text_putcs(), and sbusfb_clear_margin().

#define attr_bgcol_ec p,
conp   )     ((conp) ? (((conp)->vc_video_erase_char >> ((p)->bgshift)) & 0x0f) : 0)
 

Definition at line 78 of file fbcon.h.

Referenced by atyfbcon_updatevar(), cg6_clear(), cyber2000_accel_clear(), fbcon_afb_clear(), fbcon_aty_clear(), fbcon_cfb16_clear(), fbcon_cfb16_clear_margins(), fbcon_cfb24_clear(), fbcon_cfb24_clear_margins(), fbcon_cfb2_clear(), fbcon_cfb32_clear(), fbcon_cfb32_clear_margins(), fbcon_cfb4_clear(), fbcon_cfb8_clear(), fbcon_cfb8_clear_margins(), fbcon_clgen8_clear(), fbcon_ilbm_clear(), fbcon_iplan2p2_clear(), fbcon_iplan2p2_clear_margins(), fbcon_iplan2p4_clear(), fbcon_iplan2p4_clear_margins(), fbcon_iplan2p8_clear(), fbcon_iplan2p8_clear_margins(), fbcon_vga_planes_clear(), ffb_clear(), imsttfbcon_clear(), imsttfbcon_set_font(), and leo_clear().

#define attr_blink p,
s   )     ((s) & 0x8000)
 

Definition at line 88 of file fbcon.h.

Referenced by fbcon_vga_attr().

#define attr_bold p,
s   )     ((s) & 0x200)
 

Definition at line 82 of file fbcon.h.

Referenced by fbcon_mac_putc(), fbcon_mfb_putc(), fbcon_mfb_putcs(), and fbcon_vga_attr().

#define attr_fgcol p,
s   )     (((s) >> ((p)->fgshift)) & 0x0f)
 

Definition at line 74 of file fbcon.h.

Referenced by cg6_putc(), cg6_putcs(), fbcon_afb_putc(), fbcon_afb_putcs(), fbcon_cfb16_putc(), fbcon_cfb16_putcs(), fbcon_cfb24_putc(), fbcon_cfb24_putcs(), fbcon_cfb32_putc(), fbcon_cfb32_putcs(), fbcon_cfb4_putc(), fbcon_cfb4_putcs(), fbcon_cfb8_putc(), fbcon_cfb8_putcs(), fbcon_ega_planes_putc(), fbcon_ega_planes_putcs(), fbcon_ilbm_putc(), fbcon_ilbm_putcs(), fbcon_iplan2p2_putc(), fbcon_iplan2p2_putcs(), fbcon_iplan2p4_putc(), fbcon_iplan2p4_putcs(), fbcon_iplan2p8_putc(), fbcon_iplan2p8_putcs(), fbcon_vga_planes_putc(), fbcon_vga_planes_putcs(), ffb_putc(), ffb_putcs(), leo_putc(), leo_putcs(), matrox_text_clear(), matrox_text_putc(), and matrox_text_putcs().

#define attr_reverse p,
s   )     (((s) & 0x800) ^ ((p)->inverse ? 0x800 : 0))
 

Definition at line 84 of file fbcon.h.

Referenced by fbcon_mac_clear(), fbcon_mac_putc(), fbcon_mfb_clear(), fbcon_mfb_clear_margins(), fbcon_mfb_putc(), fbcon_mfb_putcs(), and fbcon_vga_attr().

#define attr_underline p,
s   )     ((s) & 0x400)
 

Definition at line 86 of file fbcon.h.

Referenced by fbcon_mac_putc(), fbcon_mfb_putc(), fbcon_mfb_putcs(), and fbcon_vga_attr().

#define fontheight  )     ((p)->_fontheight)
 

Definition at line 44 of file fbcon.h.

Referenced by __initfunc(), acornfb_adjust_timing(), atyfb_cursor(), atyfbcon_updatevar(), cg6_clear(), cg6_putc(), cg6_putcs(), control_cfb16_revc(), control_cfb32_revc(), cyber2000_accel_bmove(), cyber2000_accel_clear(), fbcon_afb_bmove(), fbcon_afb_clear(), fbcon_afb_putc(), fbcon_afb_putcs(), fbcon_afb_revc(), fbcon_aty128_bmove(), fbcon_aty_bmove(), fbcon_aty_clear(), fbcon_cfb16_bmove(), fbcon_cfb16_clear(), fbcon_cfb16_clear_margins(), fbcon_cfb16_putc(), fbcon_cfb16_putcs(), fbcon_cfb16_revc(), fbcon_cfb24_bmove(), fbcon_cfb24_clear(), fbcon_cfb24_clear_margins(), fbcon_cfb24_putc(), fbcon_cfb24_putcs(), fbcon_cfb24_revc(), fbcon_cfb2_bmove(), fbcon_cfb2_clear(), fbcon_cfb2_putc(), fbcon_cfb2_putcs(), fbcon_cfb2_revc(), fbcon_cfb32_bmove(), fbcon_cfb32_clear(), fbcon_cfb32_clear_margins(), fbcon_cfb32_putc(), fbcon_cfb32_putcs(), fbcon_cfb32_revc(), fbcon_cfb4_bmove(), fbcon_cfb4_clear(), fbcon_cfb4_putc(), fbcon_cfb4_putcs(), fbcon_cfb4_revc(), fbcon_cfb8_bmove(), fbcon_cfb8_clear(), fbcon_cfb8_clear_margins(), fbcon_cfb8_putc(), fbcon_cfb8_putcs(), fbcon_cfb8_revc(), fbcon_clgen8_bmove(), fbcon_clgen8_clear(), fbcon_copy_font(), fbcon_do_set_font(), fbcon_ega_planes_putc(), fbcon_ega_planes_putcs(), fbcon_font_widths(), fbcon_g364fb_cursor(), fbcon_get_font(), fbcon_ilbm_bmove(), fbcon_ilbm_clear(), fbcon_ilbm_putc(), fbcon_ilbm_putcs(), fbcon_ilbm_revc(), fbcon_iplan2p2_bmove(), fbcon_iplan2p2_clear(), fbcon_iplan2p2_clear_margins(), fbcon_iplan2p2_putc(), fbcon_iplan2p2_putcs(), fbcon_iplan2p2_revc(), fbcon_iplan2p4_bmove(), fbcon_iplan2p4_clear(), fbcon_iplan2p4_clear_margins(), fbcon_iplan2p4_putc(), fbcon_iplan2p4_putcs(), fbcon_iplan2p4_revc(), fbcon_iplan2p8_bmove(), fbcon_iplan2p8_clear(), fbcon_iplan2p8_clear_margins(), fbcon_iplan2p8_putc(), fbcon_iplan2p8_putcs(), fbcon_iplan2p8_revc(), fbcon_mac_bmove(), fbcon_mac_clear(), fbcon_mac_putc(), fbcon_mac_revc(), fbcon_mfb_bmove(), fbcon_mfb_clear(), fbcon_mfb_clear_margins(), fbcon_mfb_putc(), fbcon_mfb_putcs(), fbcon_mfb_revc(), fbcon_scrolldelta(), fbcon_setup(), fbcon_vga_planes_bmove(), fbcon_vga_planes_clear(), fbcon_vga_planes_putc(), fbcon_vga_planes_putcs(), fbcon_vga_planes_revc(), ffb_clear(), ffb_putc(), ffb_putcs(), imsttfbcon_bmove(), imsttfbcon_clear(), imsttfbcon_cursor(), imsttfbcon_revc(), imsttfbcon_switch(), leo_clear(), leo_putc(), leo_putcs(), matrox_cfbX_bmove(), matrox_cfbX_clear(), matrox_cfbX_clear_margins(), matrox_cfbX_fastputc(), matrox_cfbX_fastputcs(), matrox_cfbX_putc(), matrox_cfbX_putcs(), matrox_cfbX_revc(), matrox_pan_var(), matrox_text_loadfont(), matrox_text_round(), matroxfb_createcursorshape(), matroxfb_fastfont_tryset(), matroxfb_set_var(), pm2fb_bmove(), pm2fb_pp_bmove(), sbusfb_cursor(), sbusfbcon_switch(), set_con2fb_map(), updatescrollmode(), vgaHWinit(), ypan_down(), ypan_up(), ywrap_down(), and ywrap_up().

#define fontheightlog  )     ((p)->_fontheightlog)
 

Definition at line 45 of file fbcon.h.

Referenced by cg6_clear(), cg6_putc(), cg6_putcs(), fbcon_iplan2p2_bmove(), fbcon_iplan2p2_clear(), fbcon_iplan2p2_clear_margins(), fbcon_iplan2p2_putc(), fbcon_iplan2p2_putcs(), fbcon_iplan2p2_revc(), fbcon_iplan2p4_bmove(), fbcon_iplan2p4_clear(), fbcon_iplan2p4_clear_margins(), fbcon_iplan2p4_putc(), fbcon_iplan2p4_putcs(), fbcon_iplan2p4_revc(), fbcon_iplan2p8_bmove(), fbcon_iplan2p8_clear(), fbcon_iplan2p8_clear_margins(), fbcon_iplan2p8_putc(), fbcon_iplan2p8_putcs(), fbcon_iplan2p8_revc(), ffb_clear(), ffb_putc(), ffb_putcs(), leo_clear(), leo_putc(), leo_putcs(), sbusfb_cursor(), and set_con2fb_map().

#define fontwidth  )     ((p)->_fontwidth)
 

Definition at line 64 of file fbcon.h.

Referenced by __initfunc(), atyfb_cursor(), cg6_clear(), cg6_putc(), cg6_putcs(), control_cfb16_revc(), control_cfb32_revc(), cyber2000_accel_bmove(), cyber2000_accel_clear(), fbcon_aty128_bmove(), fbcon_aty_bmove(), fbcon_aty_clear(), fbcon_cfb16_bmove(), fbcon_cfb16_clear(), fbcon_cfb16_clear_margins(), fbcon_cfb16_putc(), fbcon_cfb16_putcs(), fbcon_cfb16_revc(), fbcon_cfb24_bmove(), fbcon_cfb24_clear(), fbcon_cfb24_clear_margins(), fbcon_cfb24_putc(), fbcon_cfb24_putcs(), fbcon_cfb24_revc(), fbcon_cfb32_bmove(), fbcon_cfb32_clear(), fbcon_cfb32_clear_margins(), fbcon_cfb32_putc(), fbcon_cfb32_putcs(), fbcon_cfb32_revc(), fbcon_cfb8_bmove(), fbcon_cfb8_clear(), fbcon_cfb8_clear_margins(), fbcon_cfb8_putc(), fbcon_cfb8_putcs(), fbcon_cfb8_revc(), fbcon_clgen8_bmove(), fbcon_clgen8_clear(), fbcon_copy_font(), fbcon_do_set_font(), fbcon_font_widths(), fbcon_g364fb_cursor(), fbcon_get_font(), fbcon_mac_bmove(), fbcon_mac_clear(), fbcon_mac_putc(), fbcon_mac_revc(), fbcon_set_font(), fbcon_setup(), ffb_clear(), ffb_putc(), ffb_putcs(), imsttfbcon_bmove(), imsttfbcon_clear(), imsttfbcon_cursor(), imsttfbcon_revc(), imsttfbcon_switch(), leo_clear(), leo_putc(), leo_putcs(), matrox_cfbX_bmove(), matrox_cfbX_clear(), matrox_cfbX_clear_margins(), matrox_cfbX_fastputc(), matrox_cfbX_fastputcs(), matrox_cfbX_putc(), matrox_cfbX_putcs(), matrox_cfbX_revc(), matrox_pan_var(), matrox_text_loadfont(), matrox_text_round(), matrox_text_setfont(), matrox_text_setup(), matroxfb_createcursorshape(), matroxfb_fastfont_tryset(), matroxfb_set_var(), pm2fb_bmove(), pm2fb_pp_bmove(), sbusfb_cursor(), sbusfbcon_switch(), set_con2fb_map(), and vgaHWinit().

#define FONTWIDTH  )     (1 << ((w) - 1))
 

Definition at line 60 of file fbcon.h.

#define fontwidthlog  )     ((p)->_fontwidthlog)
 

Definition at line 65 of file fbcon.h.

Referenced by cg6_clear(), cg6_putc(), cg6_putcs(), fbcon_cfb16_bmove(), fbcon_cfb24_bmove(), fbcon_cfb32_bmove(), fbcon_cfb8_bmove(), ffb_clear(), ffb_putc(), ffb_putcs(), leo_clear(), leo_putc(), leo_putcs(), pm2fb_bmove(), pm2fb_pp_bmove(), sbusfb_cursor(), and set_con2fb_map().

#define FONTWIDTHRANGE w1,
w2   )     (FONTWIDTH(w2+1) - FONTWIDTH(w1))
 

Definition at line 62 of file fbcon.h.

#define SCROLL_YNOMOVE   (__SCROLL_YNOMOVE|__SCROLL_YPANREDRAW)
 

Definition at line 120 of file fbcon.h.

Referenced by aty128fb_set_var(), atyfb_set_var(), control_par_to_display(), pm2fb_init(), and set_disp().

#define SCROLL_YNOPARTIAL   __SCROLL_YNOPARTIAL
 

Definition at line 128 of file fbcon.h.

Referenced by control_par_to_display().

#define SCROLL_YREDRAW   (__SCROLL_YFIXED|__SCROLL_YREDRAW)
 

Definition at line 119 of file fbcon.h.

Referenced by __initfunc(), aty128fb_set_var(), atyfb_set_var(), bwtwofb_init(), igafb_set_disp(), leofb_init(), macfb_set_disp(), platinum_set_var(), q40fb_set_disp(), retz3fb_set_disp(), set_disp(), tgafb_set_disp(), valkyrie_init_display(), valkyrie_par_to_display(), vesafb_set_disp(), and vga16fb_set_disp().


Function Documentation

static __inline__ void fast_memmove char *  dst,
const char *  src,
size_t  size
[static]
 

Definition at line 504 of file fbcon.h.

References memmove.

Referenced by fbcon_iplan2p8_bmove().

void fbcon_redraw_bmove struct display *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int 
 

Definition at line 1040 of file fbcon.c.

References attr, c, d, panic(), s, scr_readw, start, vc_data::vc_origin, vc_data::vc_size_row, and x.

Referenced by igafb_set_disp(), and vesafb_set_disp().

Here is the call graph for this function:

static __inline__ void* mymemclear void *  s,
size_t  count
[static]
 

Definition at line 431 of file fbcon.h.

References memset.

Referenced by fbcon_afb_clear(), fbcon_ilbm_clear(), fbcon_mac_clear(), fbcon_mfb_clear(), and fbcon_mfb_clear_margins().

static __inline__ void* mymemclear_small void *  s,
size_t  count
[static]
 

Definition at line 426 of file fbcon.h.

References memset.

Referenced by fbcon_mfb_clear().

static __inline__ void* mymemmove void *  d,
const void *  s,
size_t  count
[static]
 

Definition at line 499 of file fbcon.h.

References memmove.

Referenced by fbcon_afb_bmove(), fbcon_cfb16_bmove(), fbcon_cfb24_bmove(), fbcon_cfb2_bmove(), fbcon_cfb32_bmove(), fbcon_cfb4_bmove(), fbcon_cfb8_bmove(), fbcon_ilbm_bmove(), fbcon_iplan2p2_bmove(), fbcon_iplan2p4_bmove(), fbcon_mac_bmove(), and fbcon_mfb_bmove().

static __inline__ void* mymemset void *  s,
size_t  count
[static]
 

Definition at line 436 of file fbcon.h.

References memset.

Referenced by fbcon_afb_clear(), fbcon_blank(), fbcon_ilbm_clear(), fbcon_mac_clear(), fbcon_mfb_clear(), fbcon_mfb_clear_margins(), and sbusfb_clear_margin().


Variable Documentation

struct display_switch fbcon_dummy
 

Definition at line 2311 of file fbcon.c.

Referenced by __initfunc(), acornfb_init_fbinfo(), acornfb_set_var(), amifb_set_var(), aty128_set_disp(), atyfb_set_disp(), chips_set_bitdepth(), clgen_set_disp(), control_set_dispsw(), cyber2000fb_set_var(), dnfb_set_disp(), initMatrox(), macfb_set_disp(), platinum_set_disp(), pm2fb_set_disp(), q40fb_set_disp(), retz3fb_set_disp(), retz3fb_set_var(), set_dispsw(), sgivwfb_set_var(), tgafb_set_disp(), valkyrie_par_to_display(), vesafb_set_disp(), vfb_set_var(), vga16fb_set_disp(), virgefb_set_disp(), and xxx_set_disp().