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

linux/console.h File Reference

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

Go to the source code of this file.

Defines

#define _LINUX_CONSOLE_H_   1
#define VT100ID   "\033[?1;2c"
#define VT102ID   "\033[?6c"
#define SM_UP   (1)
#define SM_DOWN   (2)
#define CM_DRAW   (1)
#define CM_ERASE   (2)
#define CM_MOVE   (3)
#define MAX_CMDLINECONSOLES   8
#define CON_PRINTBUFFER   (1)
#define CON_CONSDEV   (2)
#define CON_ENABLED   (4)
#define VESA_NO_BLANKING   0
#define VESA_VSYNC_SUSPEND   1
#define VESA_HSYNC_SUSPEND   2
#define VESA_POWERDOWN   3

Functions

void take_over_console (struct consw *sw, int first, int last, int deflt)
void give_up_console (struct consw *sw)
void register_console (struct console *)
int unregister_console (struct console *)

Variables

conswconswitchp
consw dummy_con
consw fb_con
consw vga_con
consw newport_con
consw prom_con
console_cmdline console_list [MAX_CMDLINECONSOLES]
consoleconsole_drivers


Define Documentation

#define _LINUX_CONSOLE_H_   1
 

Definition at line 15 of file linux/console.h.

#define CM_DRAW   (1)
 

Definition at line 65 of file linux/console.h.

Referenced by atyfb_cursor(), fbcon_blank(), fbcon_cursor(), fbcon_g364fb_cursor(), fbcon_scrolldelta(), imsttfbcon_cursor(), matrox_text_cursor(), newport_cursor(), promcon_cursor(), sbusfb_cursor(), set_cursor(), and vgacon_cursor().

#define CM_ERASE   (2)
 

Definition at line 66 of file linux/console.h.

Referenced by atyfb_cursor(), atyfbcon_switch(), atyfbcon_updatevar(), fbcon_blank(), fbcon_bmove(), fbcon_cursor(), fbcon_g364fb_cursor(), fbcon_scroll(), fbcon_scrolldelta(), hide_cursor(), imsttfbcon_cursor(), imsttfbcon_switch(), imsttfbcon_updatevar(), mdacon_cursor(), newport_cursor(), promcon_cursor(), sbusfb_cursor(), sbusfb_mmap(), set_dispsw(), and vgacon_cursor().

#define CM_MOVE   (3)
 

Definition at line 67 of file linux/console.h.

Referenced by atyfb_cursor(), fbcon_cursor(), fbcon_g364fb_cursor(), imsttfbcon_cursor(), newport_cursor(), promcon_cursor(), sbusfb_cursor(), and vgacon_cursor().

#define CON_CONSDEV   (2)
 

Definition at line 87 of file linux/console.h.

Referenced by __initfunc(), m68k_rs_init(), and register_console().

#define CON_ENABLED   (4)
 

Definition at line 88 of file linux/console.h.

Referenced by console_print(), printk(), register_console(), and unblank_console().

#define CON_PRINTBUFFER   (1)
 

Definition at line 86 of file linux/console.h.

Referenced by prom_callback(), and register_console().

#define MAX_CMDLINECONSOLES   8
 

Definition at line 78 of file linux/console.h.

#define SM_DOWN   (2)
 

Definition at line 62 of file linux/console.h.

Referenced by fbcon_scroll(), mdacon_scroll(), promcon_scroll(), and scrdown().

#define SM_UP   (1)
 

Definition at line 61 of file linux/console.h.

Referenced by fbcon_scroll(), mdacon_scroll(), newport_scroll(), promcon_scroll(), scrup(), and vgacon_scroll().

#define VESA_HSYNC_SUSPEND   2
 

Definition at line 112 of file linux/console.h.

#define VESA_NO_BLANKING   0
 

Definition at line 110 of file linux/console.h.

#define VESA_POWERDOWN   3
 

Definition at line 113 of file linux/console.h.

#define VESA_VSYNC_SUSPEND   1
 

Definition at line 111 of file linux/console.h.

#define VT100ID   "\033[?1;2c"
 

Definition at line 23 of file linux/console.h.

#define VT102ID   "\033[?6c"
 

Definition at line 24 of file linux/console.h.


Function Documentation

void give_up_console struct consw sw  ) 
 

Definition at line 2457 of file drivers/char/console.c.

References i.

void register_console struct console  ) 
 

Definition at line 350 of file printk.c.

References buf, CON_CONSDEV, CON_ENABLED, CON_PRINTBUFFER, console_loglevel, default_message_loglevel, done, console::flags, i, console::index, console_cmdline::index, j, len, log_buf, LOG_BUF_MASK, log_size, log_start, console_cmdline::name, name, console::name, console::next, NULL, console_cmdline::options, p, preferred_console, console::setup, spin_lock_irqsave, spin_unlock_irqrestore, strcmp, and console::write.

void take_over_console struct consw sw,
int  first,
int  last,
int  deflt
 

Definition at line 2409 of file drivers/char/console.c.

References clear_buffer_attributes(), consw::con_deinit, consw::con_startup, vc::d, i, IS_VISIBLE, j, printk, save_screen(), update_attr(), update_screen, vc_data::vc_can_do_color, vc_data::vc_cols, vc_data::vc_rows, vc_data::vc_sw, and visual_init().

Referenced by __initfunc(), halt_processor(), and register_framebuffer().

Here is the call graph for this function:

int unregister_console struct console  ) 
 

Definition at line 450 of file printk.c.

References a, b, console::next, res, spin_lock_irqsave, and spin_unlock_irqrestore.

Referenced by prom_callback().


Variable Documentation

struct console* console_drivers
 

Definition at line 48 of file printk.c.

Referenced by prom_callback(), tty_open(), and wait_for_keypress().

struct console_cmdline console_list[MAX_CMDLINECONSOLES]
 

struct consw* conswitchp
 

Definition at line 105 of file drivers/char/console.c.

Referenced by __initfunc(), config_apollo(), scr_readw(), scr_writew(), and setup_arch().

struct consw dummy_con
 

Definition at line 54 of file dummycon.c.

Referenced by __initfunc(), config_apollo(), halt_processor(), and setup_arch().

struct consw fb_con
 

Definition at line 2281 of file fbcon.c.

struct consw newport_con
 

Definition at line 573 of file newport_con.c.

Referenced by __initfunc().

struct consw prom_con
 

Definition at line 569 of file drivers/video/promcon.c.

Referenced by __initfunc().

struct consw vga_con
 

Definition at line 1014 of file vgacon.c.

Referenced by __initfunc(), scr_readw(), scr_writew(), setup_arch(), and vgacon_do_font_op().