xenocara/xserver/hw/xfree86/fbdevhw/fbdevhwstub.c

219 lines
2.8 KiB
C
Raw Normal View History

2006-11-26 11:13:41 -07:00
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "xf86.h"
#include "xf86cmap.h"
#include "fbdevhw.h"
/* Stubs for the static server on platforms that don't support fbdev */
Bool
fbdevHWGetRec(ScrnInfoPtr pScrn)
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
void
fbdevHWFreeRec(ScrnInfoPtr pScrn)
{
}
Bool
fbdevHWProbe(struct pci_device *pPci, char *device, char **namep)
2006-11-26 11:13:41 -07:00
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
Bool
fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device *pPci, char *device)
2006-11-26 11:13:41 -07:00
{
xf86Msg(X_ERROR, "fbdevhw is not available on this platform\n");
return FALSE;
2006-11-26 11:13:41 -07:00
}
char *
2006-11-26 11:13:41 -07:00
fbdevHWGetName(ScrnInfoPtr pScrn)
{
return NULL;
2006-11-26 11:13:41 -07:00
}
int
fbdevHWGetDepth(ScrnInfoPtr pScrn, int *fbbpp)
{
return -1;
2006-11-26 11:13:41 -07:00
}
int
fbdevHWGetLineLength(ScrnInfoPtr pScrn)
{
return -1; /* Should cause something spectacular... */
2006-11-26 11:13:41 -07:00
}
int
fbdevHWGetType(ScrnInfoPtr pScrn)
{
return -1;
2006-11-26 11:13:41 -07:00
}
int
fbdevHWGetVidmem(ScrnInfoPtr pScrn)
{
return -1;
2006-11-26 11:13:41 -07:00
}
void
fbdevHWSetVideoModes(ScrnInfoPtr pScrn)
{
}
DisplayModePtr
fbdevHWGetBuildinMode(ScrnInfoPtr pScrn)
{
return NULL;
2006-11-26 11:13:41 -07:00
}
void
fbdevHWUseBuildinMode(ScrnInfoPtr pScrn)
{
}
void *
2006-11-26 11:13:41 -07:00
fbdevHWMapVidmem(ScrnInfoPtr pScrn)
{
return NULL;
2006-11-26 11:13:41 -07:00
}
int
fbdevHWLinearOffset(ScrnInfoPtr pScrn)
{
return 0;
2006-11-26 11:13:41 -07:00
}
Bool
fbdevHWUnmapVidmem(ScrnInfoPtr pScrn)
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
void *
2006-11-26 11:13:41 -07:00
fbdevHWMapMMIO(ScrnInfoPtr pScrn)
{
return NULL;
2006-11-26 11:13:41 -07:00
}
Bool
fbdevHWUnmapMMIO(ScrnInfoPtr pScrn)
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
Bool
fbdevHWModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
void
fbdevHWSave(ScrnInfoPtr pScrn)
{
}
void
fbdevHWRestore(ScrnInfoPtr pScrn)
{
}
void
fbdevHWLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
LOCO * colors, VisualPtr pVisual)
2006-11-26 11:13:41 -07:00
{
}
ModeStatus
fbdevHWValidMode(ScrnInfoPtr pScrn, DisplayModePtr mode, Bool verbose, int flags)
2006-11-26 11:13:41 -07:00
{
return MODE_ERROR;
2006-11-26 11:13:41 -07:00
}
Bool
fbdevHWSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
2006-11-26 11:13:41 -07:00
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
void
fbdevHWAdjustFrame(ScrnInfoPtr pScrn, int x, int y)
2006-11-26 11:13:41 -07:00
{
}
Bool
fbdevHWEnterVT(ScrnInfoPtr pScrn)
2006-11-26 11:13:41 -07:00
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
void
fbdevHWLeaveVT(ScrnInfoPtr pScrn)
2006-11-26 11:13:41 -07:00
{
}
void
fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags)
{
}
Bool
fbdevHWSaveScreen(ScreenPtr pScreen, int mode)
{
return FALSE;
2006-11-26 11:13:41 -07:00
}
xf86SwitchModeProc *
fbdevHWSwitchModeWeak(void)
{
return fbdevHWSwitchMode;
}
2006-11-26 11:13:41 -07:00
xf86AdjustFrameProc *
fbdevHWAdjustFrameWeak(void)
{
return fbdevHWAdjustFrame;
}
2006-11-26 11:13:41 -07:00
xf86EnterVTProc *
fbdevHWEnterVTWeak(void)
{
return fbdevHWEnterVT;
}
2006-11-26 11:13:41 -07:00
xf86LeaveVTProc *
fbdevHWLeaveVTWeak(void)
{
return fbdevHWLeaveVT;
}
2006-11-26 11:13:41 -07:00
xf86ValidModeProc *
fbdevHWValidModeWeak(void)
{
return fbdevHWValidMode;
}
2006-11-26 11:13:41 -07:00
xf86DPMSSetProc *
fbdevHWDPMSSetWeak(void)
{
return fbdevHWDPMSSet;
}
2006-11-26 11:13:41 -07:00
xf86LoadPaletteProc *
fbdevHWLoadPaletteWeak(void)
{
return fbdevHWLoadPalette;
}
2006-11-26 11:13:41 -07:00
SaveScreenProcPtr
fbdevHWSaveScreenWeak(void)
{
return fbdevHWSaveScreen;
}