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)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fbdevHWFreeRec(ScrnInfoPtr pScrn)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
2008-11-02 08:26:08 -07:00
|
|
|
fbdevHWProbe(struct pci_device *pPci, char *device, char **namep)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
2008-11-02 08:26:08 -07:00
|
|
|
fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device *pPci, char *device)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
xf86Msg(X_ERROR, "fbdevhw is not available on this platform\n");
|
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
char *
|
2006-11-26 11:13:41 -07:00
|
|
|
fbdevHWGetName(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return NULL;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
fbdevHWGetDepth(ScrnInfoPtr pScrn, int *fbbpp)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return -1;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
fbdevHWGetLineLength(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return -1; /* Should cause something spectacular... */
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
fbdevHWGetType(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return -1;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
fbdevHWGetVidmem(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return -1;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fbdevHWSetVideoModes(ScrnInfoPtr pScrn)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
DisplayModePtr
|
|
|
|
fbdevHWGetBuildinMode(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return NULL;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fbdevHWUseBuildinMode(ScrnInfoPtr pScrn)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
void *
|
2006-11-26 11:13:41 -07:00
|
|
|
fbdevHWMapVidmem(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return NULL;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
fbdevHWLinearOffset(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return 0;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
|
|
|
fbdevHWUnmapVidmem(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
void *
|
2006-11-26 11:13:41 -07:00
|
|
|
fbdevHWMapMMIO(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return NULL;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
|
|
|
fbdevHWUnmapMMIO(ScrnInfoPtr pScrn)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
|
|
|
fbdevHWModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
|
2012-06-10 07:21:05 -06:00
|
|
|
{
|
|
|
|
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,
|
2012-06-10 07:21:05 -06:00
|
|
|
LOCO * colors, VisualPtr pVisual)
|
2006-11-26 11:13:41 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ModeStatus
|
|
|
|
fbdevHWValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return MODE_ERROR;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
|
|
|
fbdevHWSwitchMode(int scrnIndex, DisplayModePtr mode, int flags)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fbdevHWAdjustFrame(int scrnIndex, int x, int y, int flags)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
|
|
|
fbdevHWEnterVT(int scrnIndex, int flags)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fbdevHWLeaveVT(int scrnIndex, int flags)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Bool
|
|
|
|
fbdevHWSaveScreen(ScreenPtr pScreen, int mode)
|
|
|
|
{
|
2012-06-10 07:21:05 -06:00
|
|
|
return FALSE;
|
2006-11-26 11:13:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
xf86SwitchModeProc *
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWSwitchModeWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWSwitchMode;
|
|
|
|
}
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
xf86AdjustFrameProc *
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWAdjustFrameWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWAdjustFrame;
|
|
|
|
}
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
xf86EnterVTProc *
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWEnterVTWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWEnterVT;
|
|
|
|
}
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
xf86LeaveVTProc *
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWLeaveVTWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWLeaveVT;
|
|
|
|
}
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
xf86ValidModeProc *
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWValidModeWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWValidMode;
|
|
|
|
}
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
xf86DPMSSetProc *
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWDPMSSetWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWDPMSSet;
|
|
|
|
}
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
xf86LoadPaletteProc *
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWLoadPaletteWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWLoadPalette;
|
|
|
|
}
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
SaveScreenProcPtr
|
2012-06-10 07:21:05 -06:00
|
|
|
fbdevHWSaveScreenWeak(void)
|
|
|
|
{
|
|
|
|
return fbdevHWSaveScreen;
|
|
|
|
}
|