[MIPS] Early check for SMTC kernel on non-MT processor
[pv_ops_mirror.git] / arch / mips / lasat / picvue.h
blob2a96bf971897aa044f957d88bd7239ef53fa67f0
1 /*
2 * Picvue PVC160206 display driver
4 * Brian Murphy <brian.murphy@eicon.com>
6 */
7 #include <asm/semaphore.h>
9 struct pvc_defs {
10 volatile u32 *reg;
11 u32 data_shift;
12 u32 data_mask;
13 u32 e;
14 u32 rw;
15 u32 rs;
18 extern struct pvc_defs *picvue;
20 #define PVC_NLINES 2
21 #define PVC_DISPMEM 80
22 #define PVC_LINELEN PVC_DISPMEM / PVC_NLINES
23 #define PVC_VISIBLE_CHARS 16
25 void pvc_write_string(const unsigned char *str, u8 addr, int line);
26 void pvc_write_string_centered(const unsigned char *str, int line);
27 void pvc_dump_string(const unsigned char *str);
29 #define BM_SIZE 8
30 #define MAX_PROGRAMMABLE_CHARS 8
31 int pvc_program_cg(int charnum, u8 bitmap[BM_SIZE]);
33 void pvc_dispcnt(u8 cmd);
34 #define DISP_OFF 0
35 #define DISP_ON (1 << 2)
36 #define CUR_ON (1 << 1)
37 #define CUR_BLINK (1 << 0)
39 void pvc_move(u8 cmd);
40 #define DISPLAY (1 << 3)
41 #define CURSOR 0
42 #define RIGHT (1 << 2)
43 #define LEFT 0
45 void pvc_clear(void);
46 void pvc_home(void);
48 extern struct semaphore pvc_sem;