Linux Kernel
3.7.1
|
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/uaccess.h>
#include <linux/platform_device.h>
#include <linux/module.h>
Go to the source code of this file.
Macros | |
#define | LCD_DATA_REG_OFFSET 0x10 |
#define | LCD_XRES_MAX 16 |
#define | LCD_YRES_MAX 2 |
#define | LCD_CHARS_MAX 32 |
#define | LCD_CLEAR 0x01 |
#define | LCD_CURSOR_MOVE_HOME 0x02 |
#define | LCD_RESET 0x06 |
#define | LCD_OFF 0x08 |
#define | LCD_CURSOR_OFF 0x0c |
#define | LCD_CURSOR_BLINK_OFF 0x0e |
#define | LCD_CURSOR_ON 0x0f |
#define | LCD_ON LCD_CURSOR_ON |
#define | LCD_CURSOR_MOVE_LEFT 0x10 |
#define | LCD_CURSOR_MOVE_RIGHT 0x14 |
#define | LCD_DISPLAY_LEFT 0x18 |
#define | LCD_DISPLAY_RIGHT 0x1c |
#define | LCD_PRERESET 0x3f /* execute 4 times continuously */ |
#define | LCD_BUSY 0x80 |
#define | LCD_GRAPHIC_MODE 0x40 |
#define | LCD_TEXT_MODE 0x80 |
#define | LCD_CUR_POS_MASK 0x7f |
#define | LCD_CUR_POS(x) ((x) & LCD_CUR_POS_MASK) |
#define | LCD_TEXT_POS(x) ((x) | LCD_TEXT_MODE) |
#define | LCD_CTL 0x00 |
#define | LCD_DATA 0x08 |
#define | CPLD_STATUS 0x10 |
#define | CPLD_DATA 0x18 |
Functions | |
module_init (cobalt_lcdfb_init) | |
module_exit (cobalt_lcdfb_exit) | |
MODULE_LICENSE ("GPL v2") | |
MODULE_AUTHOR ("Yoichi Yuasa") | |
MODULE_DESCRIPTION ("Cobalt server LCD frame buffer driver") | |
#define CPLD_DATA 0x18 |
Definition at line 91 of file cobalt_lcdfb.c.
#define CPLD_STATUS 0x10 |
Definition at line 90 of file cobalt_lcdfb.c.
#define LCD_BUSY 0x80 |
Definition at line 57 of file cobalt_lcdfb.c.
#define LCD_CHARS_MAX 32 |
Definition at line 42 of file cobalt_lcdfb.c.
#define LCD_CLEAR 0x01 |
Definition at line 44 of file cobalt_lcdfb.c.
#define LCD_CTL 0x00 |
Definition at line 88 of file cobalt_lcdfb.c.
#define LCD_CUR_POS | ( | x | ) | ((x) & LCD_CUR_POS_MASK) |
Definition at line 63 of file cobalt_lcdfb.c.
#define LCD_CUR_POS_MASK 0x7f |
Definition at line 61 of file cobalt_lcdfb.c.
#define LCD_CURSOR_BLINK_OFF 0x0e |
Definition at line 49 of file cobalt_lcdfb.c.
#define LCD_CURSOR_MOVE_HOME 0x02 |
Definition at line 45 of file cobalt_lcdfb.c.
#define LCD_CURSOR_MOVE_LEFT 0x10 |
Definition at line 52 of file cobalt_lcdfb.c.
#define LCD_CURSOR_MOVE_RIGHT 0x14 |
Definition at line 53 of file cobalt_lcdfb.c.
#define LCD_CURSOR_OFF 0x0c |
Definition at line 48 of file cobalt_lcdfb.c.
#define LCD_CURSOR_ON 0x0f |
Definition at line 50 of file cobalt_lcdfb.c.
#define LCD_DATA 0x08 |
Definition at line 89 of file cobalt_lcdfb.c.
#define LCD_DATA_REG_OFFSET 0x10 |
Definition at line 39 of file cobalt_lcdfb.c.
#define LCD_DISPLAY_LEFT 0x18 |
Definition at line 54 of file cobalt_lcdfb.c.
#define LCD_DISPLAY_RIGHT 0x1c |
Definition at line 55 of file cobalt_lcdfb.c.
#define LCD_GRAPHIC_MODE 0x40 |
Definition at line 59 of file cobalt_lcdfb.c.
#define LCD_OFF 0x08 |
Definition at line 47 of file cobalt_lcdfb.c.
#define LCD_ON LCD_CURSOR_ON |
Definition at line 51 of file cobalt_lcdfb.c.
#define LCD_PRERESET 0x3f /* execute 4 times continuously */ |
Definition at line 56 of file cobalt_lcdfb.c.
#define LCD_RESET 0x06 |
Definition at line 46 of file cobalt_lcdfb.c.
#define LCD_TEXT_MODE 0x80 |
Definition at line 60 of file cobalt_lcdfb.c.
#define LCD_TEXT_POS | ( | x | ) | ((x) | LCD_TEXT_MODE) |
Definition at line 64 of file cobalt_lcdfb.c.
#define LCD_XRES_MAX 16 |
Definition at line 40 of file cobalt_lcdfb.c.
#define LCD_YRES_MAX 2 |
Definition at line 41 of file cobalt_lcdfb.c.
MODULE_AUTHOR | ( | "Yoichi Yuasa" | ) |
module_exit | ( | cobalt_lcdfb_exit | ) |
module_init | ( | cobalt_lcdfb_init | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |