Add patch that contain Mali fixes.
[deb_xorg-server.git] / hw / xfree86 / fbdevhw / fbdevhwstub.c
1 #ifdef HAVE_XORG_CONFIG_H
2 #include <xorg-config.h>
3 #endif
4
5 #include "xf86.h"
6 #include "xf86cmap.h"
7 #include "fbdevhw.h"
8
9 /* Stubs for the static server on platforms that don't support fbdev */
10
11 Bool
12 fbdevHWGetRec(ScrnInfoPtr pScrn)
13 {
14 return FALSE;
15 }
16
17 void
18 fbdevHWFreeRec(ScrnInfoPtr pScrn)
19 {
20 }
21
22 Bool
23 fbdevHWProbe(struct pci_device *pPci, char *device, char **namep)
24 {
25 return FALSE;
26 }
27
28 Bool
29 fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device *pPci, char *device)
30 {
31 xf86Msg(X_ERROR, "fbdevhw is not available on this platform\n");
32 return FALSE;
33 }
34
35 char *
36 fbdevHWGetName(ScrnInfoPtr pScrn)
37 {
38 return NULL;
39 }
40
41 int
42 fbdevHWGetDepth(ScrnInfoPtr pScrn, int *fbbpp)
43 {
44 return -1;
45 }
46
47 int
48 fbdevHWGetLineLength(ScrnInfoPtr pScrn)
49 {
50 return -1; /* Should cause something spectacular... */
51 }
52
53 int
54 fbdevHWGetType(ScrnInfoPtr pScrn)
55 {
56 return -1;
57 }
58
59 int
60 fbdevHWGetVidmem(ScrnInfoPtr pScrn)
61 {
62 return -1;
63 }
64
65 void
66 fbdevHWSetVideoModes(ScrnInfoPtr pScrn)
67 {
68 }
69
70 DisplayModePtr
71 fbdevHWGetBuildinMode(ScrnInfoPtr pScrn)
72 {
73 return NULL;
74 }
75
76 void
77 fbdevHWUseBuildinMode(ScrnInfoPtr pScrn)
78 {
79 }
80
81 void *
82 fbdevHWMapVidmem(ScrnInfoPtr pScrn)
83 {
84 return NULL;
85 }
86
87 int
88 fbdevHWLinearOffset(ScrnInfoPtr pScrn)
89 {
90 return 0;
91 }
92
93 Bool
94 fbdevHWUnmapVidmem(ScrnInfoPtr pScrn)
95 {
96 return FALSE;
97 }
98
99 void *
100 fbdevHWMapMMIO(ScrnInfoPtr pScrn)
101 {
102 return NULL;
103 }
104
105 Bool
106 fbdevHWUnmapMMIO(ScrnInfoPtr pScrn)
107 {
108 return FALSE;
109 }
110
111 Bool
112 fbdevHWModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
113 {
114 return FALSE;
115 }
116
117 void
118 fbdevHWSave(ScrnInfoPtr pScrn)
119 {
120 }
121
122 void
123 fbdevHWRestore(ScrnInfoPtr pScrn)
124 {
125 }
126
127 void
128 fbdevHWLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
129 LOCO * colors, VisualPtr pVisual)
130 {
131 }
132
133 ModeStatus
134 fbdevHWValidMode(ScrnInfoPtr pScrn, DisplayModePtr mode, Bool verbose, int flags)
135 {
136 return MODE_ERROR;
137 }
138
139 Bool
140 fbdevHWSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
141 {
142 return FALSE;
143 }
144
145 void
146 fbdevHWAdjustFrame(ScrnInfoPtr pScrn, int x, int y)
147 {
148 }
149
150 Bool
151 fbdevHWEnterVT(ScrnInfoPtr pScrn)
152 {
153 return FALSE;
154 }
155
156 void
157 fbdevHWLeaveVT(ScrnInfoPtr pScrn)
158 {
159 }
160
161 void
162 fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags)
163 {
164 }
165
166 Bool
167 fbdevHWSaveScreen(ScreenPtr pScreen, int mode)
168 {
169 return FALSE;
170 }
171
172 xf86SwitchModeProc *
173 fbdevHWSwitchModeWeak(void)
174 {
175 return fbdevHWSwitchMode;
176 }
177
178 xf86AdjustFrameProc *
179 fbdevHWAdjustFrameWeak(void)
180 {
181 return fbdevHWAdjustFrame;
182 }
183
184 xf86EnterVTProc *
185 fbdevHWEnterVTWeak(void)
186 {
187 return fbdevHWEnterVT;
188 }
189
190 xf86LeaveVTProc *
191 fbdevHWLeaveVTWeak(void)
192 {
193 return fbdevHWLeaveVT;
194 }
195
196 xf86ValidModeProc *
197 fbdevHWValidModeWeak(void)
198 {
199 return fbdevHWValidMode;
200 }
201
202 xf86DPMSSetProc *
203 fbdevHWDPMSSetWeak(void)
204 {
205 return fbdevHWDPMSSet;
206 }
207
208 xf86LoadPaletteProc *
209 fbdevHWLoadPaletteWeak(void)
210 {
211 return fbdevHWLoadPalette;
212 }
213
214 SaveScreenProcPtr
215 fbdevHWSaveScreenWeak(void)
216 {
217 return fbdevHWSaveScreen;
218 }