Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __MATROXFB_MISC_H__
0003 #define __MATROXFB_MISC_H__
0004 
0005 #include "matroxfb_base.h"
0006 
0007 /* also for modules */
0008 int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int fmax,
0009     unsigned int* in, unsigned int* feed, unsigned int* post);
0010 static inline int PLL_calcclock(const struct matrox_fb_info *minfo,
0011                 unsigned int freq, unsigned int fmax,
0012                 unsigned int *in, unsigned int *feed,
0013                 unsigned int *post)
0014 {
0015     return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post);
0016 }
0017 
0018 int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming* m);
0019 void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo);
0020 void matroxfb_read_pins(struct matrox_fb_info *minfo);
0021 
0022 #endif  /* __MATROXFB_MISC_H__ */