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
28#ifndef _MB862XX_H_
29#define _MB862XX_H_
30
31#define PCI_VENDOR_ID_FUJITSU 0x10CF
32#define PCI_DEVICE_ID_CORAL_P 0x2019
33#define PCI_DEVICE_ID_CORAL_PA 0x201E
34
35#define GC_HOST_BASE 0x01fc0000
36#define GC_DISP_BASE 0x01fd0000
37#define GC_DRAW_BASE 0x01ff0000
38
39
40#define GC_SRST 0x0000002c
41#define GC_CCF 0x00000038
42#define GC_MMR 0x0000fffc
43
44
45
46
47
48
49#define GC_DCM0 0x00000000
50#define GC_HTP_A 0x00000004
51#define GC_HTP 0x00000006
52#define GC_HDB_HDP_A 0x00000008
53#define GC_HDP 0x00000008
54#define GC_HDB 0x0000000a
55#define GC_VSW_HSW_HSP_A 0x0000000c
56#define GC_HSP 0x0000000c
57#define GC_HSW 0x0000000e
58#define GC_VSW 0x0000000f
59#define GC_VTR_A 0x00000010
60#define GC_VTR 0x00000012
61#define GC_VDP_VSP_A 0x00000014
62#define GC_VSP 0x00000014
63#define GC_VDP 0x00000016
64#define GC_WY_WX 0x00000018
65#define GC_WH_WW 0x0000001c
66#define GC_L0M 0x00000020
67#define GC_L0OA0 0x00000024
68#define GC_L0DA0 0x00000028
69#define GC_L0DY_L0DX 0x0000002c
70#define GC_L2M 0x00000040
71#define GC_L2OA0 0x00000044
72#define GC_L2DA0 0x00000048
73#define GC_L2OA1 0x0000004c
74#define GC_L2DA1 0x00000050
75#define GC_L2DX 0x00000054
76#define GC_L2DY 0x00000056
77#define GC_DCM1 0x00000100
78#define GC_DCM2 0x00000104
79#define GC_DCM3 0x00000108
80#define GC_L0EM 0x00000110
81#define GC_L0WY_L0WX 0x00000114
82#define GC_L0WH_L0WW 0x00000118
83#define GC_L2EM 0x00000130
84#define GC_L2WX 0x00000134
85#define GC_L2WY 0x00000136
86#define GC_L2WW 0x00000138
87#define GC_L2WH 0x0000013a
88#define GC_L0PAL0 0x00000400
89
90
91#define GC_CTR 0x00000400
92#define GC_IFCNT 0x00000408
93#define GC_FBR 0x00000440
94#define GC_XRES 0x00000444
95#define GC_CXMIN 0x00000454
96#define GC_CXMAX 0x00000458
97#define GC_CYMIN 0x0000045c
98#define GC_CYMAX 0x00000460
99#define GC_FC 0x00000480
100#define GC_BC 0x00000484
101#define GC_FIFO 0x000004a0
102#define GC_GEO_FIFO 0x00008400
103
104typedef struct {
105 unsigned int index;
106 unsigned int value;
107} gdc_regs;
108
109const gdc_regs *board_get_regs (void);
110unsigned int board_video_init (void);
111void board_backlight_switch(int);
112
113#endif
114