Release 4.17 drivers/video/console/dummycon.c
/*
* 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.
*/
#include <linux/types.h>
#include <linux/kdev_t.h>
#include <linux/console.h>
#include <linux/vt_kern.h>
#include <linux/screen_info.h>
#include <linux/init.h>
#include <linux/module.h>
/*
* Dummy console driver
*/
#if defined(__arm__)
#define DUMMY_COLUMNS screen_info.orig_video_cols
#define DUMMY_ROWS 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
static const char *dummycon_startup(void)
{
return "dummy device";
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 13 | 100.00% | 2 | 100.00% |
Total | 13 | 100.00% | 2 | 100.00% |
static void dummycon_init(struct vc_data *vc, int init)
{
vc->vc_can_do_color = 1;
if (init) {
vc->vc_cols = DUMMY_COLUMNS;
vc->vc_rows = DUMMY_ROWS;
} else
vc_resize(vc, DUMMY_COLUMNS, DUMMY_ROWS);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 41 | 85.42% | 1 | 50.00% |
James Simmons | 7 | 14.58% | 1 | 50.00% |
Total | 48 | 100.00% | 2 | 100.00% |
static void dummycon_deinit(struct vc_data *vc) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 9 | 90.00% | 1 | 50.00% |
Linus Torvalds (pre-git) | 1 | 10.00% | 1 | 50.00% |
Total | 10 | 100.00% | 2 | 100.00% |
static void dummycon_clear(struct vc_data *vc, int sy, int sx, int height,
int width) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 21 | 95.45% | 1 | 50.00% |
Linus Torvalds (pre-git) | 1 | 4.55% | 1 | 50.00% |
Total | 22 | 100.00% | 2 | 100.00% |
static void dummycon_putc(struct vc_data *vc, int c, int ypos, int xpos) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 18 | 94.74% | 1 | 50.00% |
Linus Torvalds (pre-git) | 1 | 5.26% | 1 | 50.00% |
Total | 19 | 100.00% | 2 | 100.00% |
static void dummycon_putcs(struct vc_data *vc, const unsigned short *s,
int count, int ypos, int xpos) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 24 | 96.00% | 1 | 50.00% |
Linus Torvalds (pre-git) | 1 | 4.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
static void dummycon_cursor(struct vc_data *vc, int mode) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
static bool dummycon_scroll(struct vc_data *vc, unsigned int top,
unsigned int bottom, enum con_scroll dir,
unsigned int lines)
{
return false;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 30 | 100.00% | 1 | 100.00% |
Total | 30 | 100.00% | 1 | 100.00% |
static int dummycon_switch(struct vc_data *vc)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 8 | 57.14% | 1 | 50.00% |
Linus Torvalds (pre-git) | 6 | 42.86% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
static int dummycon_font_set(struct vc_data *vc, struct console_font *font,
unsigned int flags)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 23 | 100.00% | 1 | 100.00% |
Total | 23 | 100.00% | 1 | 100.00% |
static int dummycon_font_default(struct vc_data *vc,
struct console_font *font, char *name)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 23 | 100.00% | 1 | 100.00% |
Total | 23 | 100.00% | 1 | 100.00% |
static int dummycon_font_copy(struct vc_data *vc, int con)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
/*
* The console `switch' structure for the dummy console
*
* Most of the operations are dummies.
*/
const struct consw dummy_con = {
.owner = THIS_MODULE,
.con_startup = dummycon_startup,
.con_init = dummycon_init,
.con_deinit = dummycon_deinit,
.con_clear = dummycon_clear,
.con_putc = dummycon_putc,
.con_putcs = dummycon_putcs,
.con_cursor = dummycon_cursor,
.con_scroll = dummycon_scroll,
.con_switch = dummycon_switch,
.con_blank = dummycon_blank,
.con_font_set = dummycon_font_set,
.con_font_default = dummycon_font_default,
.con_font_copy = dummycon_font_copy,
};
EXPORT_SYMBOL_GPL(dummy_con);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kees Cook | 217 | 52.93% | 1 | 5.56% |
Linus Torvalds (pre-git) | 132 | 32.20% | 8 | 44.44% |
James Simmons | 32 | 7.80% | 3 | 16.67% |
Al Viro | 9 | 2.20% | 1 | 5.56% |
Andrew Morton | 8 | 1.95% | 1 | 5.56% |
Daniel Vetter | 5 | 1.22% | 1 | 5.56% |
Jon Smirl | 3 | 0.73% | 1 | 5.56% |
H. Peter Anvin | 2 | 0.49% | 1 | 5.56% |
Geert Uytterhoeven | 2 | 0.49% | 1 | 5.56% |
Total | 410 | 100.00% | 18 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.