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