v1.2 now graphics disabled, because of strange pixel faults
This commit is contained in:
+12
-14
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Base driver module for Toshiba T6963 based LCD displays ver 1.0.
|
||||
* Base driver module for Toshiba T6963 based LCD displays ver 1.2
|
||||
*
|
||||
* Parts of this file are based on the kernel driver by Alexander Frink <Alexander.Frink@Uni-Mainz.DE>
|
||||
*
|
||||
@@ -22,29 +22,29 @@
|
||||
#define CUR_NONE 1
|
||||
|
||||
// take PC 1 HI
|
||||
#define T6963_CEHI outb_p(inb_p(T6963_CONTROL_PORT) & 0xfe, T6963_CONTROL_PORT)
|
||||
#define T6963_CEHI port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) & 0xfe)
|
||||
// take PC 1 LO
|
||||
#define T6963_CELO outb_p(inb_p(T6963_CONTROL_PORT) | 0x01, T6963_CONTROL_PORT)
|
||||
#define T6963_CELO port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) | 0x01)
|
||||
|
||||
// take PC 14 HI
|
||||
#define T6963_RDHI outb_p(inb_p(T6963_CONTROL_PORT) & 0xfd, T6963_CONTROL_PORT)
|
||||
#define T6963_RDHI port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) & 0xfd)
|
||||
// take PC 14 LO
|
||||
#define T6963_RDLO outb_p(inb_p(T6963_CONTROL_PORT) | 0x02, T6963_CONTROL_PORT)
|
||||
#define T6963_RDLO port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) | 0x02)
|
||||
|
||||
// take PC 16 HI
|
||||
#define T6963_WRHI outb_p(inb_p(T6963_CONTROL_PORT) | 0x04, T6963_CONTROL_PORT)
|
||||
#define T6963_WRHI port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) | 0x04)
|
||||
// take PC 16 LO
|
||||
#define T6963_WRLO outb_p(inb_p(T6963_CONTROL_PORT) & 0xfb, T6963_CONTROL_PORT)
|
||||
#define T6963_WRLO port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) & 0xfb)
|
||||
|
||||
// take PC 17 HI
|
||||
#define T6963_CDHI outb_p(inb_p(T6963_CONTROL_PORT) & 0xf7, T6963_CONTROL_PORT)
|
||||
#define T6963_CDHI port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) & 0xf7)
|
||||
// take PC 17 LO
|
||||
#define T6963_CDLO outb_p(inb_p(T6963_CONTROL_PORT) | 0x08, T6963_CONTROL_PORT)
|
||||
#define T6963_CDLO port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) | 0x08)
|
||||
|
||||
// 8bit Data input
|
||||
#define T6963_DATAIN outb_p(inb_p(T6963_CONTROL_PORT) | 0x20, T6963_CONTROL_PORT)
|
||||
#define T6963_DATAIN port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) | 0x20)
|
||||
// 8bit Data output
|
||||
#define T6963_DATAOUT outb_p(inb_p(T6963_CONTROL_PORT) & 0xdf, T6963_CONTROL_PORT)
|
||||
#define T6963_DATAOUT port_out(T6963_CONTROL_PORT, port_in(T6963_CONTROL_PORT) & 0xdf)
|
||||
|
||||
#define CHARGEN_BASE 0x0000
|
||||
#define TEXT_BASE 0x0800
|
||||
@@ -114,15 +114,13 @@ void t6963_graphic_clear ();
|
||||
void t6963_flush ();
|
||||
void t6963_string (int x, int y, char string[]);
|
||||
void t6963_chr (int x, int y, char c);
|
||||
int t6963_contrast (int contrast);
|
||||
void t6963_backlight (int on);
|
||||
void t6963_vbar (int x, int len);
|
||||
void t6963_hbar (int x, int y, int len);
|
||||
void t6963_num (int x, int num);
|
||||
void t6963_init_num ();
|
||||
void t6963_set_nchar (int n, char *dat, int num);
|
||||
void t6963_set_char (int n, char *dat);
|
||||
void t6963_icon (int which, char dest);
|
||||
void t6963_heartbeat (int type);
|
||||
void t6963_flush_box (int lft, int top, int rgt, int bot);
|
||||
void t6963_draw_frame (char *dat);
|
||||
char t6963_getkey ();
|
||||
|
||||
Reference in New Issue
Block a user