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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Geode GX framebuffer driver.
 *
 *   Copyright (C) 2006 Arcom Control Systems Ltd.
 *
 * This driver assumes that the BIOS has created a virtual PCI device header
 * for the video device. The PCI header is assumed to contain the following
 * BARs:
 *
 *    BAR0 - framebuffer memory
 *    BAR1 - graphics processor registers
 *    BAR2 - display controller registers
 *    BAR3 - video processor and flat panel control registers.
 *
 * 16 MiB of framebuffer memory is assumed to be available.
 */
#include <linux/aperture.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/console.h>
#include <linux/suspend.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/cs5535.h>

#include <asm/olpc.h>

#include "gxfb.h"

static char *mode_option;
static int vram;
static int vt_switch;

/* Modes relevant to the GX (taken from modedb.c) */
static struct fb_videomode gx_modedb[] =;

static struct fb_videomode gx_dcon_modedb[] =;

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

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

static int gxfb_set_par(struct fb_info *info)
{}

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

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

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

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

static const struct fb_ops gxfb_ops =;

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

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

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

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

static void gxfb_remove(struct pci_dev *pdev)
{}

static const struct pci_device_id gxfb_id_table[] =;

MODULE_DEVICE_TABLE(pci, gxfb_id_table);

static const struct dev_pm_ops gxfb_pm_ops =;

static struct pci_driver gxfb_driver =;

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

static int __init gxfb_init(void)
{}

static void __exit gxfb_cleanup(void)
{}

module_init();
module_exit(gxfb_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();