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