xref: /openbmc/linux/drivers/video/fbdev/matrox/matroxfb_misc.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2f7018c21STomi Valkeinen #ifndef __MATROXFB_MISC_H__
3f7018c21STomi Valkeinen #define __MATROXFB_MISC_H__
4f7018c21STomi Valkeinen 
5f7018c21STomi Valkeinen #include "matroxfb_base.h"
6f7018c21STomi Valkeinen 
7f7018c21STomi Valkeinen /* also for modules */
8f7018c21STomi Valkeinen int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int fmax,
9f7018c21STomi Valkeinen 	unsigned int* in, unsigned int* feed, unsigned int* post);
PLL_calcclock(const struct matrox_fb_info * minfo,unsigned int freq,unsigned int fmax,unsigned int * in,unsigned int * feed,unsigned int * post)10f7018c21STomi Valkeinen static inline int PLL_calcclock(const struct matrox_fb_info *minfo,
11f7018c21STomi Valkeinen 				unsigned int freq, unsigned int fmax,
12f7018c21STomi Valkeinen 				unsigned int *in, unsigned int *feed,
13f7018c21STomi Valkeinen 				unsigned int *post)
14f7018c21STomi Valkeinen {
15f7018c21STomi Valkeinen 	return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post);
16f7018c21STomi Valkeinen }
17f7018c21STomi Valkeinen 
18f7018c21STomi Valkeinen int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming* m);
19f7018c21STomi Valkeinen void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo);
20f7018c21STomi Valkeinen void matroxfb_read_pins(struct matrox_fb_info *minfo);
21f7018c21STomi Valkeinen 
22f7018c21STomi Valkeinen #endif	/* __MATROXFB_MISC_H__ */
23