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