Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
picvue.c File Reference
#include <linux/kernel.h>
#include <linux/delay.h>
#include <asm/bootinfo.h>
#include <asm/lasat/lasat.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/string.h>
#include "picvue.h"

Go to the source code of this file.

Macros

#define PVC_BUSY   0x80
 
#define PVC_NLINES   2
 
#define PVC_DISPMEM   80
 
#define PVC_LINELEN   PVC_DISPMEM / PVC_NLINES
 
#define TIMEOUT   1000
 
#define MODE_INST   0
 
#define MODE_DATA   1
 
#define BM_SIZE   8
 
#define MAX_PROGRAMMABLE_CHARS   8
 
#define FUNC_SET_CMD   0x20
 
#define EIGHT_BYTE   (1 << 4)
 
#define FOUR_BYTE   0
 
#define TWO_LINES   (1 << 3)
 
#define ONE_LINE   0
 
#define LARGE_FONT   (1 << 2)
 
#define SMALL_FONT   0
 
#define ENTRYMODE_CMD   0x4
 
#define AUTO_INC   (1 << 1)
 
#define AUTO_DEC   0
 
#define CURSOR_FOLLOWS_DISP   (1 << 0)
 
#define DISP_CNT_CMD   0x08
 
#define DISP_OFF   0
 
#define DISP_ON   (1 << 2)
 
#define CUR_ON   (1 << 1)
 
#define CUR_BLINK   (1 << 0)
 
#define MOVE_CMD   0x10
 
#define DISPLAY   (1 << 3)
 
#define CURSOR   0
 
#define RIGHT   (1 << 2)
 
#define LEFT   0
 
#define CLEAR_CMD   0x1
 
#define HOME_CMD   0x2
 

Functions

void pvc_write_string (const unsigned char *str, u8 addr, int line)
 
void pvc_write_string_centered (const unsigned char *str, int line)
 
void pvc_dump_string (const unsigned char *str)
 
int pvc_program_cg (int charnum, u8 bitmap[BM_SIZE])
 
void pvc_dispcnt (u8 cmd)
 
void pvc_move (u8 cmd)
 
void pvc_clear (void)
 
void pvc_home (void)
 
int pvc_init (void)
 
 module_init (pvc_init)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct pvc_defspicvue
 

Macro Definition Documentation

#define AUTO_DEC   0

Definition at line 181 of file picvue.c.

#define AUTO_INC   (1 << 1)

Definition at line 180 of file picvue.c.

#define BM_SIZE   8

Definition at line 147 of file picvue.c.

#define CLEAR_CMD   0x1

Definition at line 210 of file picvue.c.

#define CUR_BLINK   (1 << 0)

Definition at line 194 of file picvue.c.

#define CUR_ON   (1 << 1)

Definition at line 193 of file picvue.c.

#define CURSOR   0

Definition at line 202 of file picvue.c.

#define CURSOR_FOLLOWS_DISP   (1 << 0)

Definition at line 182 of file picvue.c.

#define DISP_CNT_CMD   0x08

Definition at line 190 of file picvue.c.

#define DISP_OFF   0

Definition at line 191 of file picvue.c.

#define DISP_ON   (1 << 2)

Definition at line 192 of file picvue.c.

#define DISPLAY   (1 << 3)

Definition at line 201 of file picvue.c.

#define EIGHT_BYTE   (1 << 4)

Definition at line 166 of file picvue.c.

#define ENTRYMODE_CMD   0x4

Definition at line 179 of file picvue.c.

#define FOUR_BYTE   0

Definition at line 167 of file picvue.c.

#define FUNC_SET_CMD   0x20

Definition at line 165 of file picvue.c.

#define HOME_CMD   0x2

Definition at line 216 of file picvue.c.

#define LARGE_FONT   (1 << 2)

Definition at line 170 of file picvue.c.

#define LEFT   0

Definition at line 204 of file picvue.c.

#define MAX_PROGRAMMABLE_CHARS   8

Definition at line 148 of file picvue.c.

#define MODE_DATA   1

Definition at line 91 of file picvue.c.

#define MODE_INST   0

Definition at line 90 of file picvue.c.

#define MOVE_CMD   0x10

Definition at line 200 of file picvue.c.

#define ONE_LINE   0

Definition at line 169 of file picvue.c.

#define PVC_BUSY   0x80

Definition at line 18 of file picvue.c.

#define PVC_DISPMEM   80

Definition at line 20 of file picvue.c.

#define PVC_LINELEN   PVC_DISPMEM / PVC_NLINES

Definition at line 21 of file picvue.c.

#define PVC_NLINES   2

Definition at line 19 of file picvue.c.

#define RIGHT   (1 << 2)

Definition at line 203 of file picvue.c.

#define SMALL_FONT   0

Definition at line 171 of file picvue.c.

#define TIMEOUT   1000

Definition at line 76 of file picvue.c.

#define TWO_LINES   (1 << 3)

Definition at line 168 of file picvue.c.

Function Documentation

module_init ( pvc_init  )
MODULE_LICENSE ( "GPL"  )
void pvc_clear ( void  )

Definition at line 211 of file picvue.c.

void pvc_dispcnt ( u8  cmd)

Definition at line 195 of file picvue.c.

void pvc_dump_string ( const unsigned char str)

Definition at line 138 of file picvue.c.

void pvc_home ( void  )

Definition at line 217 of file picvue.c.

int pvc_init ( void  )

Definition at line 222 of file picvue.c.

void pvc_move ( u8  cmd)

Definition at line 205 of file picvue.c.

int pvc_program_cg ( int  charnum,
u8  bitmap[BM_SIZE] 
)

Definition at line 149 of file picvue.c.

void pvc_write_string ( const unsigned char str,
u8  addr,
int  line 
)

Definition at line 111 of file picvue.c.

void pvc_write_string_centered ( const unsigned char str,
int  line 
)

Definition at line 125 of file picvue.c.

Variable Documentation

struct pvc_defs* picvue

Definition at line 23 of file picvue.c.