2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#ifndef _FBDEVHW_H_
|
|
|
|
#define _FBDEVHW_H_
|
|
|
|
|
|
|
|
#include "xf86str.h"
|
|
|
|
#include "colormapst.h"
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#define FBDEVHW_PACKED_PIXELS 0 /* Packed Pixels */
|
|
|
|
#define FBDEVHW_PLANES 1 /* Non interleaved planes */
|
|
|
|
#define FBDEVHW_INTERLEAVED_PLANES 2 /* Interleaved planes */
|
|
|
|
#define FBDEVHW_TEXT 3 /* Text/attributes */
|
|
|
|
#define FBDEVHW_VGA_PLANES 4 /* EGA/VGA planes */
|
2008-11-02 08:26:08 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT Bool fbdevHWGetRec(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT void fbdevHWFreeRec(ScrnInfoPtr pScrn);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT int fbdevHWGetFD(ScrnInfoPtr pScrn);
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT Bool fbdevHWProbe(struct pci_device *pPci, char *device,
|
|
|
|
char **namep);
|
|
|
|
extern _X_EXPORT Bool fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device *pPci,
|
|
|
|
char *device);
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT char *fbdevHWGetName(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT int fbdevHWGetDepth(ScrnInfoPtr pScrn, int *fbbpp);
|
|
|
|
extern _X_EXPORT int fbdevHWGetLineLength(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT int fbdevHWGetType(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT int fbdevHWGetVidmem(ScrnInfoPtr pScrn);
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT void *fbdevHWMapVidmem(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT int fbdevHWLinearOffset(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT Bool fbdevHWUnmapVidmem(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT void *fbdevHWMapMMIO(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT Bool fbdevHWUnmapMMIO(ScrnInfoPtr pScrn);
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT void fbdevHWSetVideoModes(ScrnInfoPtr pScrn);
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT DisplayModePtr fbdevHWGetBuildinMode(ScrnInfoPtr pScrn);
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT void fbdevHWUseBuildinMode(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT Bool fbdevHWModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
|
|
|
extern _X_EXPORT void fbdevHWSave(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT void fbdevHWRestore(ScrnInfoPtr pScrn);
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT void fbdevHWLoadPalette(ScrnInfoPtr pScrn, int numColors,
|
|
|
|
int *indices, LOCO * colors,
|
|
|
|
VisualPtr pVisual);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2013-06-07 11:28:45 -06:00
|
|
|
extern _X_EXPORT ModeStatus fbdevHWValidMode(ScrnInfoPtr pScrn, DisplayModePtr mode,
|
2012-06-10 07:21:05 -06:00
|
|
|
Bool verbose, int flags);
|
2013-06-07 11:28:45 -06:00
|
|
|
extern _X_EXPORT Bool fbdevHWSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
|
|
|
extern _X_EXPORT void fbdevHWAdjustFrame(ScrnInfoPtr pScrn, int x, int y);
|
|
|
|
extern _X_EXPORT Bool fbdevHWEnterVT(ScrnInfoPtr pScrn);
|
|
|
|
extern _X_EXPORT void fbdevHWLeaveVT(ScrnInfoPtr pScrn);
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT void fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags);
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT Bool fbdevHWSaveScreen(ScreenPtr pScreen, int mode);
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT xf86SwitchModeProc *fbdevHWSwitchModeWeak(void);
|
|
|
|
extern _X_EXPORT xf86AdjustFrameProc *fbdevHWAdjustFrameWeak(void);
|
|
|
|
extern _X_EXPORT xf86EnterVTProc *fbdevHWEnterVTWeak(void);
|
|
|
|
extern _X_EXPORT xf86LeaveVTProc *fbdevHWLeaveVTWeak(void);
|
|
|
|
extern _X_EXPORT xf86ValidModeProc *fbdevHWValidModeWeak(void);
|
|
|
|
extern _X_EXPORT xf86DPMSSetProc *fbdevHWDPMSSetWeak(void);
|
|
|
|
extern _X_EXPORT xf86LoadPaletteProc *fbdevHWLoadPaletteWeak(void);
|
|
|
|
extern _X_EXPORT SaveScreenProcPtr fbdevHWSaveScreenWeak(void);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#endif
|