// SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/video/dummycon.c -- A dummy console driver * * To be used if there's no other console driver (e.g. for plain VGA text) * available, usually until fbcon takes console over.
*/
#ifdefined(CONFIG_ARCH_FOOTBRIDGE) && defined(CONFIG_VGA_CONSOLE) #include <asm/vga.h> #define DUMMY_COLUMNS vgacon_screen_info.orig_video_cols #define DUMMY_ROWS vgacon_screen_info.orig_video_lines #else /* set by Kconfig. Use 80x25 for 640x480 and 160x64 for 1280x1024 */ #define DUMMY_COLUMNS CONFIG_DUMMY_CONSOLE_COLUMNS #define DUMMY_ROWS CONFIG_DUMMY_CONSOLE_ROWS #endif
#ifdef CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER /* These are both protected by the console_lock */ static RAW_NOTIFIER_HEAD(dummycon_output_nh); staticbool dummycon_putc_called;
staticbool dummycon_blank(struct vc_data *vc, enum vesa_blank_mode blank, bool mode_switch)
{ /* Redraw, so that we get putc(s) for output done while blanked */ returntrue;
}
staticbool dummycon_switch(struct vc_data *vc)
{ /* * Redraw, so that we get putc(s) for output done while switched * away. Informs deferred consoles to take over the display.
*/ returntrue;
} #else staticvoid dummycon_putc(struct vc_data *vc, u16 c, unsignedint y, unsignedint x) { } staticvoid dummycon_putcs(struct vc_data *vc, const u16 *s, unsignedint count, unsignedint ypos, unsignedint xpos) { } staticbool dummycon_blank(struct vc_data *vc, enum vesa_blank_mode blank, bool mode_switch)
{ returnfalse;
} staticbool dummycon_switch(struct vc_data *vc)
{ returnfalse;
} #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.