#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/vmalloc.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <asm/io.h>
static const unsigned Fref = …;
#define mmio_base …
#define mm_write_ind(num, val, ap, dp) …
static void mm_write_xr(struct fb_info *p, u8 reg, u8 data)
{ … }
#define write_xr(num, val) …
static void mm_write_fr(struct fb_info *p, u8 reg, u8 data)
{ … }
#define write_fr(num, val) …
static void mm_write_cr(struct fb_info *p, u8 reg, u8 data)
{ … }
#define write_cr(num, val) …
static void mm_write_gr(struct fb_info *p, u8 reg, u8 data)
{ … }
#define write_gr(num, val) …
static void mm_write_sr(struct fb_info *p, u8 reg, u8 data)
{ … }
#define write_sr(num, val) …
static void mm_write_ar(struct fb_info *p, u8 reg, u8 data)
{ … }
#define write_ar(num, val) …
static int asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *);
static int asiliantfb_check_var(struct fb_var_screeninfo *var,
struct fb_info *info);
static int asiliantfb_set_par(struct fb_info *info);
static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
u_int transp, struct fb_info *info);
static const struct fb_ops asiliantfb_ops = …;
static void asiliant_calc_dclk2(u32 *ppixclock, u8 *dclk2_m, u8 *dclk2_n, u8 *dclk2_div)
{ … }
static void asiliant_set_timing(struct fb_info *p)
{ … }
static int asiliantfb_check_var(struct fb_var_screeninfo *var,
struct fb_info *p)
{ … }
static int asiliantfb_set_par(struct fb_info *p)
{ … }
static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
u_int transp, struct fb_info *p)
{ … }
struct chips_init_reg { … };
static struct chips_init_reg chips_init_sr[] = …;
static struct chips_init_reg chips_init_gr[] = …;
static struct chips_init_reg chips_init_ar[] = …;
static struct chips_init_reg chips_init_cr[] = …;
static struct chips_init_reg chips_init_fr[] = …;
static struct chips_init_reg chips_init_xr[] = …;
static void chips_hw_init(struct fb_info *p)
{ … }
static const struct fb_fix_screeninfo asiliantfb_fix = …;
static const struct fb_var_screeninfo asiliantfb_var = …;
static int init_asiliant(struct fb_info *p, unsigned long addr)
{ … }
static int asiliantfb_pci_init(struct pci_dev *dp,
const struct pci_device_id *ent)
{ … }
static void asiliantfb_remove(struct pci_dev *dp)
{ … }
static const struct pci_device_id asiliantfb_pci_tbl[] = …;
MODULE_DEVICE_TABLE(pci, asiliantfb_pci_tbl);
static struct pci_driver asiliantfb_driver = …;
static int __init asiliantfb_init(void)
{ … }
module_init(…) …;
static void __exit asiliantfb_exit(void)
{ … }
MODULE_LICENSE(…) …;