linux/drivers/video/fbdev/mmp/fb/mmpfb.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * linux/drivers/video/mmp/fb/mmpfb.c
 * Framebuffer driver for Marvell Display controller.
 *
 * Copyright (C) 2012 Marvell Technology Group Ltd.
 * Authors: Zhou Zhu <[email protected]>
 */
#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)
{}

/*
 * fb framework has its limitation:
 * 1. input color/output color is not seprated
 * 2. fb_videomode not include output color
 * so for fb usage, we keep a output format which is not changed
 *  then it's added for mmpmode
 */
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();