Line 41... |
Line 41... |
#include <asm/irq.h>
|
#include <asm/irq.h>
|
#include <asm/pgtable.h>
|
#include <asm/pgtable.h>
|
#include <asm/io.h>
|
#include <asm/io.h>
|
#include <linux/fb.h>
|
#include <linux/fb.h>
|
|
|
|
#define LCD 0
|
#define arraysize(x) (sizeof(x)/sizeof(*(x)))
|
#define arraysize(x) (sizeof(x)/sizeof(*(x)))
|
|
|
struct crt_fb_par {
|
struct crt_fb_par {
|
int xres;
|
int xres;
|
int yres;
|
int yres;
|
Line 104... |
Line 104... |
|
|
#define setpal(i,r,g,b) *(CRT_PAL_PTR + (i)) = ((((unsigned long)(r) & 0xff)) << 11) | \
|
#define setpal(i,r,g,b) *(CRT_PAL_PTR + (i)) = ((((unsigned long)(r) & 0xff)) << 11) | \
|
((((unsigned long)(g) & 0xff)) << 5) | \
|
((((unsigned long)(g) & 0xff)) << 5) | \
|
((((unsigned long)(b) & 0xff)) << 0)
|
((((unsigned long)(b) & 0xff)) << 0)
|
|
|
|
#if LCD
|
|
#define CRT_WIDTH 320
|
|
#define CRT_HEIGHT 240
|
|
#else
|
#define CRT_WIDTH 640
|
#define CRT_WIDTH 640
|
#define CRT_HEIGHT 480
|
#define CRT_HEIGHT 480
|
|
#endif
|
|
|
|
|
static int crtKey = 0;
|
static int crtKey = 0;
|
static u_char crt_colour_table [256][4];
|
static u_char crt_colour_table [256][4];
|
static unsigned long crtMem;
|
static unsigned long crtMem;
|
Line 1054... |
Line 1059... |
fbhw->decode_var(&crt_fb_predefined[crtfb_mode], &par);
|
fbhw->decode_var(&crt_fb_predefined[crtfb_mode], &par);
|
fbhw->encode_var(&crt_fb_predefined[0], &par);
|
fbhw->encode_var(&crt_fb_predefined[0], &par);
|
|
|
strcpy(fb_info.modename, crt_fb_name);
|
strcpy(fb_info.modename, crt_fb_name);
|
fb_info.disp = disp;
|
fb_info.disp = disp;
|
|
#if LCD
|
|
strcpy(fb_info.fontname, "VGA8x8");
|
|
#else
|
strcpy(fb_info.fontname, "VGA8x16");
|
strcpy(fb_info.fontname, "VGA8x16");
|
|
#endif
|
fb_info.switch_con = &crtfb_switch;
|
fb_info.switch_con = &crtfb_switch;
|
fb_info.updatevar = &crtfb_updatevar;
|
fb_info.updatevar = &crtfb_updatevar;
|
fb_info.blank = &crtfb_blank;
|
fb_info.blank = &crtfb_blank;
|
|
|
do_fb_set_var(&crt_fb_predefined[0], 1);
|
do_fb_set_var(&crt_fb_predefined[0], 1);
|