Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
arm-charlcd.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <generated/utsrelease.h>

Go to the source code of this file.

Data Structures

struct  charlcd
 

Macros

#define DRIVERNAME   "arm-charlcd"
 
#define CHARLCD_TIMEOUT   (msecs_to_jiffies(1000))
 
#define CHAR_COM   0x00U
 
#define CHAR_DAT   0x04U
 
#define CHAR_RD   0x08U
 
#define CHAR_RAW   0x0CU
 
#define CHAR_MASK   0x10U
 
#define CHAR_STAT   0x14U
 
#define CHAR_RAW_CLEAR   0x00000000U
 
#define CHAR_RAW_VALID   0x00000100U
 
#define HD_CLEAR   0x01U
 
#define HD_HOME   0x02U
 
#define HD_ENTRYMODE   0x04U
 
#define HD_ENTRYMODE_INCREMENT   0x02U
 
#define HD_ENTRYMODE_SHIFT   0x01U
 
#define HD_DISPCTRL   0x08U
 
#define HD_DISPCTRL_ON   0x04U
 
#define HD_DISPCTRL_CURSOR_ON   0x02U
 
#define HD_DISPCTRL_CURSOR_BLINK   0x01U
 
#define HD_CRSR_SHIFT   0x10U
 
#define HD_CRSR_SHIFT_DISPLAY   0x08U
 
#define HD_CRSR_SHIFT_DISPLAY_RIGHT   0x04U
 
#define HD_FUNCSET   0x20U
 
#define HD_FUNCSET_8BIT   0x10U
 
#define HD_FUNCSET_2_LINES   0x08U
 
#define HD_FUNCSET_FONT_5X10   0x04U
 
#define HD_SET_CGRAM   0x40U
 
#define HD_SET_DDRAM   0x80U
 
#define HD_BUSY_FLAG   0x80U
 

Functions

 module_init (charlcd_init)
 
 module_exit (charlcd_exit)
 
 MODULE_AUTHOR ("Linus Walleij <[email protected]>")
 
 MODULE_DESCRIPTION ("ARM Character LCD Driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define CHAR_COM   0x00U

Definition at line 25 of file arm-charlcd.c.

#define CHAR_DAT   0x04U

Definition at line 26 of file arm-charlcd.c.

#define CHAR_MASK   0x10U

Definition at line 29 of file arm-charlcd.c.

#define CHAR_RAW   0x0CU

Definition at line 28 of file arm-charlcd.c.

#define CHAR_RAW_CLEAR   0x00000000U

Definition at line 32 of file arm-charlcd.c.

#define CHAR_RAW_VALID   0x00000100U

Definition at line 33 of file arm-charlcd.c.

#define CHAR_RD   0x08U

Definition at line 27 of file arm-charlcd.c.

#define CHAR_STAT   0x14U

Definition at line 30 of file arm-charlcd.c.

#define CHARLCD_TIMEOUT   (msecs_to_jiffies(1000))

Definition at line 22 of file arm-charlcd.c.

#define DRIVERNAME   "arm-charlcd"

Definition at line 21 of file arm-charlcd.c.

#define HD_BUSY_FLAG   0x80U

Definition at line 54 of file arm-charlcd.c.

#define HD_CLEAR   0x01U

Definition at line 36 of file arm-charlcd.c.

#define HD_CRSR_SHIFT   0x10U

Definition at line 45 of file arm-charlcd.c.

#define HD_CRSR_SHIFT_DISPLAY   0x08U

Definition at line 46 of file arm-charlcd.c.

#define HD_CRSR_SHIFT_DISPLAY_RIGHT   0x04U

Definition at line 47 of file arm-charlcd.c.

#define HD_DISPCTRL   0x08U

Definition at line 41 of file arm-charlcd.c.

#define HD_DISPCTRL_CURSOR_BLINK   0x01U

Definition at line 44 of file arm-charlcd.c.

#define HD_DISPCTRL_CURSOR_ON   0x02U

Definition at line 43 of file arm-charlcd.c.

#define HD_DISPCTRL_ON   0x04U

Definition at line 42 of file arm-charlcd.c.

#define HD_ENTRYMODE   0x04U

Definition at line 38 of file arm-charlcd.c.

#define HD_ENTRYMODE_INCREMENT   0x02U

Definition at line 39 of file arm-charlcd.c.

#define HD_ENTRYMODE_SHIFT   0x01U

Definition at line 40 of file arm-charlcd.c.

#define HD_FUNCSET   0x20U

Definition at line 48 of file arm-charlcd.c.

#define HD_FUNCSET_2_LINES   0x08U

Definition at line 50 of file arm-charlcd.c.

#define HD_FUNCSET_8BIT   0x10U

Definition at line 49 of file arm-charlcd.c.

#define HD_FUNCSET_FONT_5X10   0x04U

Definition at line 51 of file arm-charlcd.c.

#define HD_HOME   0x02U

Definition at line 37 of file arm-charlcd.c.

#define HD_SET_CGRAM   0x40U

Definition at line 52 of file arm-charlcd.c.

#define HD_SET_DDRAM   0x80U

Definition at line 53 of file arm-charlcd.c.

Function Documentation

MODULE_AUTHOR ( "Linus Walleij <[email protected]>"  )
MODULE_DESCRIPTION ( "ARM Character LCD Driver"  )
module_exit ( charlcd_exit  )
module_init ( charlcd_init  )
MODULE_LICENSE ( "GPL v2 )