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 | extern _X_EXPORT Bool fbdevHWGetRec(ScrnInfoPtr pScrn);
|
---|
15 | extern _X_EXPORT void fbdevHWFreeRec(ScrnInfoPtr pScrn);
|
---|
16 |
|
---|
17 | extern _X_EXPORT int fbdevHWGetFD(ScrnInfoPtr pScrn);
|
---|
18 |
|
---|
19 | extern _X_EXPORT Bool fbdevHWProbe(struct pci_device *pPci, char *device,
|
---|
20 | char **namep);
|
---|
21 | extern _X_EXPORT Bool fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device *pPci,
|
---|
22 | char *device);
|
---|
23 |
|
---|
24 | extern _X_EXPORT char *fbdevHWGetName(ScrnInfoPtr pScrn);
|
---|
25 | extern _X_EXPORT int fbdevHWGetDepth(ScrnInfoPtr pScrn, int *fbbpp);
|
---|
26 | extern _X_EXPORT int fbdevHWGetLineLength(ScrnInfoPtr pScrn);
|
---|
27 | extern _X_EXPORT int fbdevHWGetType(ScrnInfoPtr pScrn);
|
---|
28 | extern _X_EXPORT int fbdevHWGetVidmem(ScrnInfoPtr pScrn);
|
---|
29 |
|
---|
30 | extern _X_EXPORT void *fbdevHWMapVidmem(ScrnInfoPtr pScrn);
|
---|
31 | extern _X_EXPORT int fbdevHWLinearOffset(ScrnInfoPtr pScrn);
|
---|
32 | extern _X_EXPORT Bool fbdevHWUnmapVidmem(ScrnInfoPtr pScrn);
|
---|
33 | extern _X_EXPORT void *fbdevHWMapMMIO(ScrnInfoPtr pScrn);
|
---|
34 | extern _X_EXPORT Bool fbdevHWUnmapMMIO(ScrnInfoPtr pScrn);
|
---|
35 |
|
---|
36 | extern _X_EXPORT void fbdevHWSetVideoModes(ScrnInfoPtr pScrn);
|
---|
37 | extern _X_EXPORT DisplayModePtr fbdevHWGetBuildinMode(ScrnInfoPtr pScrn);
|
---|
38 | extern _X_EXPORT void fbdevHWUseBuildinMode(ScrnInfoPtr pScrn);
|
---|
39 | extern _X_EXPORT Bool fbdevHWModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
---|
40 | extern _X_EXPORT void fbdevHWSave(ScrnInfoPtr pScrn);
|
---|
41 | extern _X_EXPORT void fbdevHWRestore(ScrnInfoPtr pScrn);
|
---|
42 |
|
---|
43 | extern _X_EXPORT void fbdevHWLoadPalette(ScrnInfoPtr pScrn, int numColors,
|
---|
44 | int *indices, LOCO * colors,
|
---|
45 | VisualPtr pVisual);
|
---|
46 |
|
---|
47 | extern _X_EXPORT ModeStatus fbdevHWValidMode(ScrnInfoPtr pScrn, DisplayModePtr mode,
|
---|
48 | Bool verbose, int flags);
|
---|
49 | extern _X_EXPORT Bool fbdevHWSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr mode);
|
---|
50 | extern _X_EXPORT void fbdevHWAdjustFrame(ScrnInfoPtr pScrn, int x, int y);
|
---|
51 | extern _X_EXPORT Bool fbdevHWEnterVT(ScrnInfoPtr pScrn);
|
---|
52 | extern _X_EXPORT void fbdevHWLeaveVT(ScrnInfoPtr pScrn);
|
---|
53 | extern _X_EXPORT void fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags);
|
---|
54 |
|
---|
55 | extern _X_EXPORT Bool fbdevHWSaveScreen(ScreenPtr pScreen, int mode);
|
---|
56 |
|
---|
57 | extern _X_EXPORT xf86SwitchModeProc *fbdevHWSwitchModeWeak(void);
|
---|
58 | extern _X_EXPORT xf86AdjustFrameProc *fbdevHWAdjustFrameWeak(void);
|
---|
59 | extern _X_EXPORT xf86EnterVTProc *fbdevHWEnterVTWeak(void);
|
---|
60 | extern _X_EXPORT xf86LeaveVTProc *fbdevHWLeaveVTWeak(void);
|
---|
61 | extern _X_EXPORT xf86ValidModeProc *fbdevHWValidModeWeak(void);
|
---|
62 | extern _X_EXPORT xf86DPMSSetProc *fbdevHWDPMSSetWeak(void);
|
---|
63 | extern _X_EXPORT xf86LoadPaletteProc *fbdevHWLoadPaletteWeak(void);
|
---|
64 | extern _X_EXPORT SaveScreenProcPtr fbdevHWSaveScreenWeak(void);
|
---|
65 |
|
---|
66 | #endif
|
---|