#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include "mmpfb.h"
static int var_to_pixfmt(struct fb_var_screeninfo *var)
{ … }
static void pixfmt_to_var(struct fb_var_screeninfo *var, int pix_fmt)
{ … }
static void fbmode_to_mmpmode(struct mmp_mode *mode,
struct fb_videomode *videomode, int output_fmt)
{ … }
static void mmpmode_to_fbmode(struct fb_videomode *videomode,
struct mmp_mode *mode)
{ … }
static int mmpfb_check_var(struct fb_var_screeninfo *var,
struct fb_info *info)
{ … }
static unsigned int chan_to_field(unsigned int chan, struct fb_bitfield *bf)
{ … }
static u32 to_rgb(u16 red, u16 green, u16 blue)
{ … }
static int mmpfb_setcolreg(unsigned int regno, unsigned int red,
unsigned int green, unsigned int blue,
unsigned int trans, struct fb_info *info)
{ … }
static int mmpfb_pan_display(struct fb_var_screeninfo *var,
struct fb_info *info)
{ … }
static int var_update(struct fb_info *info)
{ … }
static void mmpfb_set_win(struct fb_info *info)
{ … }
static int mmpfb_set_par(struct fb_info *info)
{ … }
static void mmpfb_power(struct mmpfb_info *fbi, int power)
{ … }
static int mmpfb_blank(int blank, struct fb_info *info)
{ … }
static const struct fb_ops mmpfb_ops = …;
static int modes_setup(struct mmpfb_info *fbi)
{ … }
static int fb_info_setup(struct fb_info *info,
struct mmpfb_info *fbi)
{ … }
static void fb_info_clear(struct fb_info *info)
{ … }
static int mmpfb_probe(struct platform_device *pdev)
{ … }
static struct platform_driver mmpfb_driver = …;
static int mmpfb_init(void)
{ … }
module_init(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;