Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ks0108.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/io.h>
#include <linux/parport.h>
#include <linux/uaccess.h>
#include <linux/ks0108.h>

Go to the source code of this file.

Macros

#define KS0108_NAME   "ks0108"
 
#define bit(n)   (((unsigned char)1)<<(n))
 

Functions

 module_param (ks0108_port, uint, S_IRUGO)
 
 MODULE_PARM_DESC (ks0108_port,"Parallel port where the LCD is connected")
 
 module_param (ks0108_delay, uint, S_IRUGO)
 
 MODULE_PARM_DESC (ks0108_delay,"Delay between each control writing (microseconds)")
 
void ks0108_writedata (unsigned char byte)
 
void ks0108_writecontrol (unsigned char byte)
 
void ks0108_displaystate (unsigned char state)
 
void ks0108_startline (unsigned char startline)
 
void ks0108_address (unsigned char address)
 
void ks0108_page (unsigned char page)
 
 EXPORT_SYMBOL_GPL (ks0108_writedata)
 
 EXPORT_SYMBOL_GPL (ks0108_writecontrol)
 
 EXPORT_SYMBOL_GPL (ks0108_displaystate)
 
 EXPORT_SYMBOL_GPL (ks0108_startline)
 
 EXPORT_SYMBOL_GPL (ks0108_address)
 
 EXPORT_SYMBOL_GPL (ks0108_page)
 
unsigned char ks0108_isinited (void)
 
 EXPORT_SYMBOL_GPL (ks0108_isinited)
 
 module_init (ks0108_init)
 
 module_exit (ks0108_exit)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Miguel Ojeda Sandonis <[email protected]>")
 
 MODULE_DESCRIPTION ("ks0108 LCD Controller driver")
 

Macro Definition Documentation

#define bit (   n)    (((unsigned char)1)<<(n))

Definition at line 73 of file ks0108.c.

#define KS0108_NAME   "ks0108"

Definition at line 36 of file ks0108.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ks0108_writedata  )
EXPORT_SYMBOL_GPL ( ks0108_writecontrol  )
EXPORT_SYMBOL_GPL ( ks0108_displaystate  )
EXPORT_SYMBOL_GPL ( ks0108_startline  )
EXPORT_SYMBOL_GPL ( ks0108_address  )
EXPORT_SYMBOL_GPL ( ks0108_page  )
EXPORT_SYMBOL_GPL ( ks0108_isinited  )
void ks0108_address ( unsigned char  address)

Definition at line 96 of file ks0108.c.

void ks0108_displaystate ( unsigned char  state)

Definition at line 86 of file ks0108.c.

unsigned char ks0108_isinited ( void  )

Definition at line 118 of file ks0108.c.

void ks0108_page ( unsigned char  page)

Definition at line 101 of file ks0108.c.

void ks0108_startline ( unsigned char  startline)

Definition at line 91 of file ks0108.c.

void ks0108_writecontrol ( unsigned char  byte)

Definition at line 80 of file ks0108.c.

void ks0108_writedata ( unsigned char  byte)

Definition at line 75 of file ks0108.c.

MODULE_AUTHOR ( "Miguel Ojeda Sandonis <[email protected]>"  )
MODULE_DESCRIPTION ( "ks0108 LCD Controller driver )
module_exit ( ks0108_exit  )
module_init ( ks0108_init  )
MODULE_LICENSE ( "GPL v2 )
module_param ( ks0108_port  ,
uint  ,
S_IRUGO   
)
module_param ( ks0108_delay  ,
uint  ,
S_IRUGO   
)
MODULE_PARM_DESC ( ks0108_port  ,
"Parallel port where the LCD is connected"   
)
MODULE_PARM_DESC ( ks0108_delay  ,
"Delay between each control writing (microseconds)"   
)