fbdevhw.h 3.1 KB

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