matroxfb_misc.h 797 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __MATROXFB_MISC_H__
  3. #define __MATROXFB_MISC_H__
  4. #include "matroxfb_base.h"
  5. /* also for modules */
  6. int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int fmax,
  7. unsigned int* in, unsigned int* feed, unsigned int* post);
  8. static inline int PLL_calcclock(const struct matrox_fb_info *minfo,
  9. unsigned int freq, unsigned int fmax,
  10. unsigned int *in, unsigned int *feed,
  11. unsigned int *post)
  12. {
  13. return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post);
  14. }
  15. int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming* m);
  16. void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo);
  17. void matroxfb_read_pins(struct matrox_fb_info *minfo);
  18. #endif /* __MATROXFB_MISC_H__ */