STG4000Interface.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #include <linux/pci.h>
  13. #include <video/kyro.h>
  14. /*
  15. * Ramdac Setup
  16. */
  17. extern int InitialiseRamdac(volatile STG4000REG __iomem *pSTGReg, u32 displayDepth,
  18. u32 displayWidth, u32 displayHeight,
  19. s32 HSyncPolarity, s32 VSyncPolarity,
  20. u32 *pixelClock);
  21. extern void DisableRamdacOutput(volatile STG4000REG __iomem *pSTGReg);
  22. extern void EnableRamdacOutput(volatile STG4000REG __iomem *pSTGReg);
  23. /*
  24. * Timing generator setup
  25. */
  26. extern void DisableVGA(volatile STG4000REG __iomem *pSTGReg);
  27. extern void StopVTG(volatile STG4000REG __iomem *pSTGReg);
  28. extern void StartVTG(volatile STG4000REG __iomem *pSTGReg);
  29. extern void SetupVTG(volatile STG4000REG __iomem *pSTGReg,
  30. const struct kyrofb_info * pTiming);
  31. extern u32 ProgramClock(u32 refClock, u32 coreClock, u32 *FOut, u32 *ROut, u32 *POut);
  32. extern int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev);
  33. /*
  34. * Overlay setup
  35. */
  36. extern void ResetOverlayRegisters(volatile STG4000REG __iomem *pSTGReg);
  37. extern int CreateOverlaySurface(volatile STG4000REG __iomem *pSTGReg,
  38. u32 ulWidth, u32 ulHeight,
  39. int bLinear,
  40. u32 ulOverlayOffset,
  41. u32 * retStride, u32 * retUVStride);
  42. extern int SetOverlayBlendMode(volatile STG4000REG __iomem *pSTGReg,
  43. OVRL_BLEND_MODE mode,
  44. u32 ulAlpha, u32 ulColorKey);
  45. extern int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg,
  46. u32 left, u32 top,
  47. u32 right, u32 bottom);
  48. extern void EnableOverlayPlane(volatile STG4000REG __iomem *pSTGReg);
  49. #endif /* _STG4000INTERFACE_H */