1 |
|
---|
2 | #ifndef _FBDEVHW_H_
|
---|
3 | #define _FBDEVHW_H_
|
---|
4 |
|
---|
5 | #include "xf86str.h"
|
---|
6 | #include "colormapst.h"
|
---|
7 |
|
---|
8 | #include <pciaccess.h>
|
---|
9 |
|
---|
10 | #define FBDEVHW_PACKED_PIXELS 0 /* Packed Pixels */
|
---|
11 | #define FBDEVHW_PLANES 1 /* Non interleaved planes */
|
---|
12 | #define FBDEVHW_INTERLEAVED_PLANES 2 /* Interleaved planes */
|
---|
13 | #define FBDEVHW_TEXT 3 /* Text/attributes */
|
---|
14 | #define FBDEVHW_VGA_PLANES 4 /* EGA/VGA planes */
|
---|
15 |
|
---|
16 | extern _X_EXPORT Bool fbdevHWGetRec(ScrnInfoPtr pScrn);
|
---|
17 | extern _X_EXPORT void fbdevHWFreeRec(ScrnInfoPtr pScrn);
|
---|
18 |
|
---|
19 | extern _X_EXPORT int fbdevHWGetFD(ScrnInfoPtr pScrn);
|
---|
20 |
|
---|
21 | extern _X_EXPORT Bool fbdevHWProbe(struct pci_device * pPci, char *device, char **namep);
|
---|
22 | extern _X_EXPORT Bool fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device * pPci, 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, int *indices,
|
---|
44 | LOCO *colors, VisualPtr pVisual);
|
---|
45 |
|
---|
46 | extern _X_EXPORT ModeStatus fbdevHWValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags);
|
---|
47 | extern _X_EXPORT Bool fbdevHWSwitchMode(int scrnIndex, DisplayModePtr mode, int flags);
|
---|
48 | extern _X_EXPORT void fbdevHWAdjustFrame(int scrnIndex, int x, int y, int flags);
|
---|
49 | extern _X_EXPORT Bool fbdevHWEnterVT(int scrnIndex, int flags);
|
---|
50 | extern _X_EXPORT void fbdevHWLeaveVT(int scrnIndex, int flags);
|
---|
51 | extern _X_EXPORT void fbdevHWDPMSSet(ScrnInfoPtr pScrn, int mode, int flags);
|
---|
52 |
|
---|
53 | extern _X_EXPORT Bool fbdevHWSaveScreen(ScreenPtr pScreen, int mode);
|
---|
54 |
|
---|
55 | extern _X_EXPORT xf86SwitchModeProc *fbdevHWSwitchModeWeak(void);
|
---|
56 | extern _X_EXPORT xf86AdjustFrameProc *fbdevHWAdjustFrameWeak(void);
|
---|
57 | extern _X_EXPORT xf86EnterVTProc *fbdevHWEnterVTWeak(void);
|
---|
58 | extern _X_EXPORT xf86LeaveVTProc *fbdevHWLeaveVTWeak(void);
|
---|
59 | extern _X_EXPORT xf86ValidModeProc *fbdevHWValidModeWeak(void);
|
---|
60 | extern _X_EXPORT xf86DPMSSetProc *fbdevHWDPMSSetWeak(void);
|
---|
61 | extern _X_EXPORT xf86LoadPaletteProc *fbdevHWLoadPaletteWeak(void);
|
---|
62 | extern _X_EXPORT SaveScreenProcPtr fbdevHWSaveScreenWeak(void);
|
---|
63 |
|
---|
64 | #endif
|
---|