Initial commit
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / fbdevhw / fbdevhwstub.c
blob56ba92901728d9c4f33a30390a0c5319452c03e3
2 #ifdef HAVE_XORG_CONFIG_H
3 #include <xorg-config.h>
4 #endif
6 #include "xf86.h"
7 #include "xf86cmap.h"
8 #include "fbdevhw.h"
10 /* Stubs for the static server on platforms that don't support fbdev */
13 Bool
14 fbdevHWGetRec(ScrnInfoPtr pScrn)
16 return FALSE;
19 void
20 fbdevHWFreeRec(ScrnInfoPtr pScrn)
25 Bool
26 fbdevHWProbe(pciVideoPtr pPci, char *device, char **namep)
28 return FALSE;
31 Bool
32 fbdevHWInit(ScrnInfoPtr pScrn, pciVideoPtr pPci, char *device)
34 xf86Msg(X_ERROR, "fbdevhw is not available on this platform\n");
35 return FALSE;
38 char*
39 fbdevHWGetName(ScrnInfoPtr pScrn)
41 return NULL;
44 int
45 fbdevHWGetDepth(ScrnInfoPtr pScrn, int *fbbpp)
47 return -1;
50 int
51 fbdevHWGetLineLength(ScrnInfoPtr pScrn)
53 return -1; /* Should cause something spectacular... */
56 int
57 fbdevHWGetType(ScrnInfoPtr pScrn)
59 return -1;
62 int
63 fbdevHWGetVidmem(ScrnInfoPtr pScrn)
65 return -1;
68 void
69 fbdevHWSetVideoModes(ScrnInfoPtr pScrn)
73 DisplayModePtr
74 fbdevHWGetBuildinMode(ScrnInfoPtr pScrn)
76 return NULL;
79 void
80 fbdevHWUseBuildinMode(ScrnInfoPtr pScrn)
84 void*
85 fbdevHWMapVidmem(ScrnInfoPtr pScrn)
87 return NULL;
90 int
91 fbdevHWLinearOffset(ScrnInfoPtr pScrn)
93 return 0;
96 Bool
97 fbdevHWUnmapVidmem(ScrnInfoPtr pScrn)
99 return FALSE;
102 void*
103 fbdevHWMapMMIO(ScrnInfoPtr pScrn)
105 return NULL;
108 Bool
109 fbdevHWUnmapMMIO(ScrnInfoPtr pScrn)
111 return FALSE;
114 Bool
115 fbdevHWModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
117 return FALSE;
120 void
121 fbdevHWSave(ScrnInfoPtr pScrn)
125 void
126 fbdevHWRestore(ScrnInfoPtr pScrn)
130 void
131 fbdevHWLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
132 LOCO *colors, VisualPtr pVisual)
136 ModeStatus
137 fbdevHWValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags)
139 return MODE_ERROR;
142 Bool
143 fbdevHWSwitchMode(int scrnIndex, DisplayModePtr mode, int flags)
145 return FALSE;
148 void
149 fbdevHWAdjustFrame(int scrnIndex, int x, int y, int flags)
153 Bool
154 fbdevHWEnterVT(int scrnIndex, int flags)
156 return FALSE;
159 void
160 fbdevHWLeaveVT(int scrnIndex, int flags)
164 void
165 fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags)
169 Bool
170 fbdevHWSaveScreen(ScreenPtr pScreen, int mode)
172 return FALSE;
175 xf86SwitchModeProc *
176 fbdevHWSwitchModeWeak(void) { return fbdevHWSwitchMode; }
178 xf86AdjustFrameProc *
179 fbdevHWAdjustFrameWeak(void) { return fbdevHWAdjustFrame; }
181 xf86EnterVTProc *
182 fbdevHWEnterVTWeak(void) { return fbdevHWEnterVT; }
184 xf86LeaveVTProc *
185 fbdevHWLeaveVTWeak(void) { return fbdevHWLeaveVT; }
187 xf86ValidModeProc *
188 fbdevHWValidModeWeak(void) { return fbdevHWValidMode; }
190 xf86DPMSSetProc *
191 fbdevHWDPMSSetWeak(void) { return fbdevHWDPMSSet; }
193 xf86LoadPaletteProc *
194 fbdevHWLoadPaletteWeak(void) { return fbdevHWLoadPalette; }
196 SaveScreenProcPtr
197 fbdevHWSaveScreenWeak(void) { return fbdevHWSaveScreen; }