STG4000Interface.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * linux/drivers/video/kyro/STG4000Interface.h
  3. *
  4. * Copyright (C) 2002 STMicroelectronics
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file COPYING in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef _STG4000INTERFACE_H
  11. #define _STG4000INTERFACE_H
  12. struct pci_dev;
  13. /*
  14. * Ramdac Setup
  15. */
  16. extern int InitialiseRamdac(volatile STG4000REG __iomem *pSTGReg, u32 displayDepth,
  17. u32 displayWidth, u32 displayHeight,
  18. s32 HSyncPolarity, s32 VSyncPolarity,
  19. u32 *pixelClock);
  20. extern void DisableRamdacOutput(volatile STG4000REG __iomem *pSTGReg);
  21. extern void EnableRamdacOutput(volatile STG4000REG __iomem *pSTGReg);
  22. /*
  23. * Timing generator setup
  24. */
  25. extern void DisableVGA(volatile STG4000REG __iomem *pSTGReg);
  26. extern void StopVTG(volatile STG4000REG __iomem *pSTGReg);
  27. extern void StartVTG(volatile STG4000REG __iomem *pSTGReg);
  28. extern void SetupVTG(volatile STG4000REG __iomem *pSTGReg,
  29. const struct kyrofb_info * pTiming);
  30. extern u32 ProgramClock(u32 refClock, u32 coreClock, u32 *FOut, u32 *ROut, u32 *POut);
  31. extern int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev);
  32. /*
  33. * Overlay setup
  34. */
  35. extern void ResetOverlayRegisters(volatile STG4000REG __iomem *pSTGReg);
  36. extern int CreateOverlaySurface(volatile STG4000REG __iomem *pSTGReg,
  37. u32 ulWidth, u32 ulHeight,
  38. int bLinear,
  39. u32 ulOverlayOffset,
  40. u32 * retStride, u32 * retUVStride);
  41. extern int SetOverlayBlendMode(volatile STG4000REG __iomem *pSTGReg,
  42. OVRL_BLEND_MODE mode,
  43. u32 ulAlpha, u32 ulColorKey);
  44. extern int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg,
  45. u32 left, u32 top,
  46. u32 right, u32 bottom);
  47. extern void EnableOverlayPlane(volatile STG4000REG __iomem *pSTGReg);
  48. #endif /* _STG4000INTERFACE_H */