162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __MATROXFB_MISC_H__ 362306a36Sopenharmony_ci#define __MATROXFB_MISC_H__ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include "matroxfb_base.h" 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* also for modules */ 862306a36Sopenharmony_ciint matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int fmax, 962306a36Sopenharmony_ci unsigned int* in, unsigned int* feed, unsigned int* post); 1062306a36Sopenharmony_cistatic inline int PLL_calcclock(const struct matrox_fb_info *minfo, 1162306a36Sopenharmony_ci unsigned int freq, unsigned int fmax, 1262306a36Sopenharmony_ci unsigned int *in, unsigned int *feed, 1362306a36Sopenharmony_ci unsigned int *post) 1462306a36Sopenharmony_ci{ 1562306a36Sopenharmony_ci return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post); 1662306a36Sopenharmony_ci} 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciint matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming* m); 1962306a36Sopenharmony_civoid matroxfb_vgaHWrestore(struct matrox_fb_info *minfo); 2062306a36Sopenharmony_civoid matroxfb_read_pins(struct matrox_fb_info *minfo); 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#endif /* __MATROXFB_MISC_H__ */ 23