linux/drivers/video/fbdev/hecubafb.c

/*
 * linux/drivers/video/hecubafb.c -- FB driver for Hecuba/Apollo controller
 *
 * Copyright (C) 2006, Jaya Kumar
 * This work was sponsored by CIS(M) Sdn Bhd
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License. See the file COPYING in the main directory of this archive for
 * more details.
 *
 * Layout is based on skeletonfb.c by James Simmons and Geert Uytterhoeven.
 * This work was possible because of apollo display code from E-Ink's website
 * http://support.eink.com/community
 * All information used to write this code is from public material made
 * available by E-Ink on its support site. Some commands such as 0xA4
 * were found by looping through cmd=0x00 thru 0xFF and supplying random
 * values. There are other commands that the display is capable of,
 * beyond the 5 used here but they are more complex.
 *
 * This driver is written to be used with the Hecuba display architecture.
 * The actual display chip is called Apollo and the interface electronics
 * it needs is called Hecuba.
 *
 * It is intended to be architecture independent. A board specific driver
 * must be used to perform all the physical IO interactions. An example
 * is provided as n411.c
 *
 */

#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/platform_device.h>
#include <linux/list.h>
#include <linux/uaccess.h>

#include <video/hecubafb.h>

/* Display specific information */
#define DPY_W
#define DPY_H

static const struct fb_fix_screeninfo hecubafb_fix =;

static const struct fb_var_screeninfo hecubafb_var =;

/* main hecubafb functions */

static void apollo_send_data(struct hecubafb_par *par, unsigned char data)
{}

static void apollo_send_command(struct hecubafb_par *par, unsigned char data)
{}

static void hecubafb_dpy_update(struct hecubafb_par *par)
{}

/* this is called back from the deferred io workqueue */
static void hecubafb_dpy_deferred_io(struct fb_info *info, struct list_head *pagereflist)
{}

static void hecubafb_defio_damage_range(struct fb_info *info, off_t off, size_t len)
{}

static void hecubafb_defio_damage_area(struct fb_info *info, u32 x, u32 y,
				       u32 width, u32 height)
{}

FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(hecubafb,
				   hecubafb_defio_damage_range,
				   hecubafb_defio_damage_area)

static const struct fb_ops hecubafb_ops =;

static struct fb_deferred_io hecubafb_defio =;

static int hecubafb_probe(struct platform_device *dev)
{}

static void hecubafb_remove(struct platform_device *dev)
{}

static struct platform_driver hecubafb_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();