blob: 351c823f1f74ae5cd87429a83369cb75d51760ce [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __MATROXFB_MISC_H__
2#define __MATROXFB_MISC_H__
3
4#include "matroxfb_base.h"
5
6/* also for modules */
7int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int freq, unsigned int fmax,
8 unsigned int* in, unsigned int* feed, unsigned int* post);
Jean Delvare316b4d62009-09-22 16:47:49 -07009static inline int PLL_calcclock(const struct matrox_fb_info *minfo,
10 unsigned int freq, unsigned int fmax,
11 unsigned int *in, unsigned int *feed,
12 unsigned int *post)
13{
Jean Delvarefc2d10d2009-09-22 16:47:48 -070014 return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post);
Linus Torvalds1da177e2005-04-16 15:20:36 -070015}
16
Jean Delvare316b4d62009-09-22 16:47:49 -070017int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming* m);
18void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo);
19void matroxfb_read_pins(struct matrox_fb_info *minfo);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21#endif /* __MATROXFB_MISC_H__ */