1 |
|
---|
2 | #ifndef _FBDEVHW_H_
|
---|
3 | #define _FBDEVHW_H_
|
---|
4 |
|
---|
5 | #include "xf86str.h"
|
---|
6 | #include "colormapst.h"
|
---|
7 |
|
---|
8 | #define FBDEVHW_PACKED_PIXELS 0 /* Packed Pixels */
|
---|
9 | #define FBDEVHW_PLANES 1 /* Non interleaved planes */
|
---|
10 | #define FBDEVHW_INTERLEAVED_PLANES 2 /* Interleaved planes */
|
---|
11 | #define FBDEVHW_TEXT 3 /* Text/attributes */
|
---|
12 | #define FBDEVHW_VGA_PLANES 4 /* EGA/VGA planes */
|
---|
13 |
|
---|
14 | Bool fbdevHWGetRec(ScrnInfoPtr pScrn);
|
---|
15 | void fbdevHWFreeRec(ScrnInfoPtr pScrn);
|
---|
16 |
|
---|
17 | Bool fbdevHWProbe(pciVideoPtr pPci, char *device, char **namep);
|
---|
18 | Bool fbdevHWInit(ScrnInfoPtr pScrn, pciVideoPtr pPci, char *device);
|
---|
19 |
|
---|
20 | char* fbdevHWGetName(ScrnInfoPtr pScrn);
|
---|
21 | int fbdevHWGetDepth(ScrnInfoPtr pScrn, int *fbbpp);
|
---|
22 | int fbdevHWGetLineLength(ScrnInfoPtr pScrn);
|
---|
23 | int fbdevHWGetType(ScrnInfoPtr pScrn);
|
---|
24 | int fbdevHWGetVidmem(ScrnInfoPtr pScrn);
|
---|
25 |
|
---|
26 | void* fbdevHWMapVidmem(ScrnInfoPtr pScrn);
|
---|
27 | int fbdevHWLinearOffset(ScrnInfoPtr pScrn);
|
---|
28 | Bool fbdevHWUnmapVidmem(ScrnInfoPtr pScrn);
|
---|
29 | void* fbdevHWMapMMIO(ScrnInfoPtr pScrn);
|
---|
30 | Bool fbdevHWUnmapMMIO(ScrnInfoPtr pScrn);
|
---|
31 |
|
---|
32 | void fbdevHWSetVideoModes(ScrnInfoPtr pScrn);
|
---|
33 | DisplayModePtr fbdevHWGetBuildinMode(ScrnInfoPtr pScrn);
|
---|
34 | void fbdevHWUseBuildinMode(ScrnInfoPtr pScrn);
|
---|
35 | Bool fbdevHWModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
---|
36 | void fbdevHWSave(ScrnInfoPtr pScrn);
|
---|
37 | void fbdevHWRestore(ScrnInfoPtr pScrn);
|
---|
38 |
|
---|
39 | void fbdevHWLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
|
---|
40 | LOCO *colors, VisualPtr pVisual);
|
---|
41 |
|
---|
42 | ModeStatus fbdevHWValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags);
|
---|
43 | Bool fbdevHWSwitchMode(int scrnIndex, DisplayModePtr mode, int flags);
|
---|
44 | void fbdevHWAdjustFrame(int scrnIndex, int x, int y, int flags);
|
---|
45 | Bool fbdevHWEnterVT(int scrnIndex, int flags);
|
---|
46 | void fbdevHWLeaveVT(int scrnIndex, int flags);
|
---|
47 | void fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags);
|
---|
48 |
|
---|
49 | Bool fbdevHWSaveScreen(ScreenPtr pScreen, int mode);
|
---|
50 |
|
---|
51 | xf86SwitchModeProc *fbdevHWSwitchModeWeak(void);
|
---|
52 | xf86AdjustFrameProc *fbdevHWAdjustFrameWeak(void);
|
---|
53 | xf86EnterVTProc *fbdevHWEnterVTWeak(void);
|
---|
54 | xf86LeaveVTProc *fbdevHWLeaveVTWeak(void);
|
---|
55 | xf86ValidModeProc *fbdevHWValidModeWeak(void);
|
---|
56 | xf86DPMSSetProc *fbdevHWDPMSSetWeak(void);
|
---|
57 | xf86LoadPaletteProc *fbdevHWLoadPaletteWeak(void);
|
---|
58 | SaveScreenProcPtr fbdevHWSaveScreenWeak(void);
|
---|
59 |
|
---|
60 | #endif
|
---|