10 #define VIDMEM ((char *)SCREEN_START)
13 #include <mach/hardware.h>
14 #include <asm/setup.h>
39 static const unsigned long palette_4[16] = {
58 #define palette_setpixel(p) *(unsigned long *)(IO_START+0x00400000) = 0x10000000|((p) & 255)
59 #define palette_write(v) *(unsigned long *)(IO_START+0x00400000) = 0x00000000|((v) & 0x00ffffff)
66 #define params (params())
68 #ifndef STANDALONE_DEBUG
79 static void putc(
int c)
81 extern void ll_write_char(
char *,
char c,
char white);
89 if (++y >= video_num_rows)
91 }
else if (c ==
'\r') {
95 ll_write_char(ptr, c, white);
96 if (++x >= video_num_cols) {
98 if ( ++y >= video_num_rows ) {
108 static inline void flush(
void)
130 bytes_per_char_v = t->
u.
videotext.video_points;
144 nr_pages =
params->nr_pages;
146 video_num_rows =
params->video_num_rows;
147 video_num_cols =
params->video_num_cols;
148 video_x =
params->video_x;
149 video_y =
params->video_y;
151 bytes_per_char_v =
params->bytes_per_char_v;
156 if (bytes_per_char_h == 4)
157 for (i = 0; i < 256; i++)
158 con_charconvtable[i] =
159 (i & 128 ? 1 << 0 : 0) |
160 (i & 64 ? 1 << 4 : 0) |
161 (i & 32 ? 1 << 8 : 0) |
162 (i & 16 ? 1 << 12 : 0) |
163 (i & 8 ? 1 << 16 : 0) |
164 (i & 4 ? 1 << 20 : 0) |
165 (i & 2 ? 1 << 24 : 0) |
166 (i & 1 ? 1 << 28 : 0);
168 for (i = 0; i < 16; i++)
169 con_charconvtable[i] =
170 (i & 8 ? 1 << 0 : 0) |
171 (i & 4 ? 1 << 8 : 0) |
172 (i & 2 ? 1 << 16 : 0) |
173 (i & 1 ? 1 << 24 : 0);
177 if (bytes_per_char_h == 1) {
180 for (i = 2; i < 256; i++)
184 for (i = 0; i < 256; i++)
196 #define arch_decomp_wdog()