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#ifndef _SED13806_H_
28#define _SED13806_H_
29
30
31
32#define FRAME_BUFFER_OFFSET 0x200000
33#define TOTAL_SPACE_SIZE 0x400000
34
35#define DEFAULT_VIDEO_MEMORY_SIZE 0x140000
36
37#define HWCURSORSIZE 1024
38
39
40
41#define BLT_CTRL0 (0x0100)
42#define BLT_CTRL1 (0x0101)
43#define BLT_ROP (0x0102)
44#define BLT_OP (0x0103)
45#define BLT_SRC_ADDR0 (0x0104)
46#define BLT_SRC_ADDR1 (0x0105)
47#define BLT_SRC_ADDR2 (0x0106)
48#define BLT_DST_ADDR0 (0x0108)
49#define BLT_DST_ADDR1 (0x0109)
50#define BLT_DST_ADDR2 (0x010A)
51#define BLT_MEM_OFF0 (0x010C)
52#define BLT_MEM_OFF1 (0x010D)
53#define BLT_WIDTH0 (0x0110)
54#define BLT_WIDTH1 (0x0111)
55#define BLT_HEIGHT0 (0x0112)
56#define BLT_HEIGHT1 (0x0113)
57#define BLT_BGCOLOR0 (0x0114)
58#define BLT_BGCOLOR1 (0x0115)
59#define BLT_FGCOLOR0 (0x0118)
60#define BLT_FGCOLOR1 (0x0119)
61
62#define BLT_REG (0x100000)
63
64
65#define REG_LUT_ADDR 0x1e2
66#define REG_LUT_DATA 0x1e4
67
68
69#define LCD_CURSOR_CNTL (0x0070)
70#define LCD_CURSOR_START (0x0071)
71#define LCD_CURSOR_XL (0x0072)
72#define LCD_CURSOR_XM (0x0073)
73#define LCD_CURSOR_YL (0x0074)
74#define LCD_CURSOR_YM (0x0075)
75#define LCD_CURSOR_COL0_B (0x0076)
76#define LCD_CURSOR_COL0_G (0x0077)
77#define LCD_CURSOR_COL0_R (0x0078)
78#define LCD_CURSOR_COL1_B (0x007A)
79#define LCD_CURSOR_COL1_G (0x007B)
80#define LCD_CURSOR_COL1_R (0x007C)
81#define LCD_CURSOR_FIFO (0x007E)
82
83typedef struct
84{
85 unsigned short Index;
86 unsigned char Value;
87} S1D_REGS;
88
89
90
91unsigned int board_video_init (void);
92void board_validate_screen (unsigned int base);
93const S1D_REGS *board_get_regs (void);
94int board_get_width (void);
95int board_get_height (void);
96
97#endif
98