summaryrefslogtreecommitdiffstats
path: root/drivers/video/txtcon.c
blob: cdecc08b03fd7ce6616628628936a3728d88fef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
 * linux/drivers/video/txtcon.c -- Low level text mode based console driver
 *
 *    Copyright (C) 1995 Geert Uytterhoeven
 *
 *
 * This file is currently only a skeleton, since all Amigas and Ataris have
 * bitmapped graphics.
 *
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file COPYING in the main directory of this archive
 * for more details.
 */


#include <linux/types.h>
#include <linux/console.h>


   /*
    *    Interface used by the world
    */

static int txtcon_startup(u_long *kmem_start, const char **display_desc);
static void txtcon_init(struct vc_data *conp);
static int txtcon_deinit(struct vc_data *conp);
static int txtcon_clear(struct vc_data *conp, int sy, int sx, int height,
                        int width);
static int txtcon_putc(struct vc_data *conp, int c, int y, int x);
static int txtcon_putcs(struct vc_data *conp, const char *s, int count, int y,
                        int x);
static int txtcon_cursor(struct vc_data *conp, int mode);
static int txtcon_scroll(struct vc_data *conp, int t, int b, int dir, int count);
static int txtcon_bmove(struct vc_data *conp, int sy, int sx, int dy, int dx,
                        int height, int width);
static int txtcon_switch(struct vc_data *conp);
static int txtcon_blank(int blank);
static int txtcon_get_font(struct vc_data *conp, int *w, int *h, char *data);
static int txtcon_set_font(struct vc_data *conp, int w, int h, char *data);
static int txtcon_set_palette(struct vc_data *conp, unsigned char *table);
static int txtcon_scrolldelta(int lines);


static int txtcon_startup(u_long *kmem_start, const char **display_desc)
{
   return -ENODEV;
}


static void txtcon_init(struct vc_data *conp)
{
}


static int txtcon_deinit(struct vc_data *conp)
{
   return 0;
}


/* ====================================================================== */

/* txtcon_XXX routines - interface used by the world */


static int txtcon_clear(struct vc_data *conp, int sy, int sx, int height,
                        int width)
{
   return -ENOSYS;
}


static int txtcon_putc(struct vc_data *conp, int c, int y, int x)
{
   return -ENOSYS;
}


static int txtcon_putcs(struct vc_data *conp, const char *s, int count, int y,
                        int x)
{
   return -ENOSYS;
}


static int txtcon_cursor(struct vc_data *conp, int mode)
{
   return -ENOSYS;
}


static int txtcon_scroll(struct vc_data *conp, int t, int b, int dir, int count)
{
   return -ENOSYS;
}


static int txtcon_bmove(struct vc_data *conp, int sy, int sx, int dy, int dx,
                        int height, int width)
{
   return -ENOSYS;
}


static int txtcon_switch(struct vc_data *conp)
{
   return -ENOSYS;
}


static int txtcon_blank(int blank)
{
   return -ENOSYS;
}


static int txtcon_get_font(struct vc_data *conp, int *w, int *h, char *data)
{
   return -ENOSYS;
}


static int txtcon_set_font(struct vc_data *conp, int w, int h, char *data)
{
   return -ENOSYS;
}


static int txtcon_set_palette(struct vc_data *conp, unsigned char *table)
{
   return -ENOSYS;
}


static int txtcon_scrolldelta(int lines)
{
   return -ENOSYS;
}


/* ====================================================================== */

   /*
    *    The console `switch' structure for the text mode based console
    */

struct consw txt_con = {
   txtcon_startup, txtcon_init, txtcon_deinit, txtcon_clear, txtcon_putc,
   txtcon_putcs, txtcon_cursor, txtcon_scroll, txtcon_bmove, txtcon_switch,
   txtcon_blank, txtcon_get_font, txtcon_set_font, txtcon_set_palette,
   txtcon_scrolldelta
};