linux/drivers/video/fbdev/geode/lxfb_core.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Geode LX framebuffer driver.
 *
 * Copyright (C) 2007 Advanced Micro Devices, Inc.
 * Built from gxfb (which is Copyright (C) 2006 Arcom Control Systems Ltd.)
 */

#include <linux/aperture.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/console.h>
#include <linux/mm.h>
#include <linux/suspend.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/uaccess.h>

#include <asm/olpc.h>

#include "lxfb.h"

static char *mode_option;
static int noclear, nopanel, nocrt;
static int vram;
static int vt_switch;

/* Most of these modes are sorted in ascending order, but
 * since the first entry in this table is the "default" mode,
 * we try to make it something sane - 640x480-60 is sane
 */

static struct fb_videomode geode_modedb[] =;

static struct fb_videomode olpc_dcon_modedb[] =;

static void get_modedb(struct fb_videomode **modedb, unsigned int *size)
{}

static int lxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
{}

static int lxfb_set_par(struct fb_info *info)
{}

static inline u_int chan_to_field(u_int chan, struct fb_bitfield *bf)
{}

static int lxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
			   unsigned blue, unsigned transp,
			   struct fb_info *info)
{}

static int lxfb_blank(int blank_mode, struct fb_info *info)
{}


static int lxfb_map_video_memory(struct fb_info *info, struct pci_dev *dev)
{}

static const struct fb_ops lxfb_ops =;

static struct fb_info *lxfb_init_fbinfo(struct device *dev)
{}

static int __maybe_unused lxfb_suspend(struct device *dev)
{}

static int __maybe_unused lxfb_resume(struct device *dev)
{}

static int lxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
{}

static void lxfb_remove(struct pci_dev *pdev)
{}

static struct pci_device_id lxfb_id_table[] =;

MODULE_DEVICE_TABLE(pci, lxfb_id_table);

static const struct dev_pm_ops lxfb_pm_ops =;

static struct pci_driver lxfb_driver =;

#ifndef MODULE
static int __init lxfb_setup(char *options)
{}
#endif

static int __init lxfb_init(void)
{}
static void __exit lxfb_cleanup(void)
{}

module_init();
module_exit(lxfb_cleanup);

module_param(mode_option, charp, 0);
MODULE_PARM_DESC();

module_param(vram, int, 0);
MODULE_PARM_DESC();

module_param(vt_switch, int, 0);
MODULE_PARM_DESC();

MODULE_DESCRIPTION();
MODULE_LICENSE();