Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
arcfb.c File Reference
#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/arcfb.h>
#include <linux/platform_device.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  arcfb_par
 

Macros

#define floor8(a)   (a&(~0x07))
 
#define floorXres(a, xres)   (a&(~(xres - 1)))
 
#define iceil8(a)   (((int)((a+7)/8))*8)
 
#define ceil64(a)   (a|0x3F)
 
#define ceilXres(a, xres)   (a|(xres - 1))
 
#define KS_SET_DPY_START_LINE   0xC0
 
#define KS_SET_PAGE_NUM   0xB8
 
#define KS_SET_X   0x40
 
#define KS_CEHI   0x01
 
#define KS_CELO   0x00
 
#define KS_SEL_CMD   0x08
 
#define KS_SEL_DATA   0x00
 
#define KS_DPY_ON   0x3F
 
#define KS_DPY_OFF   0x3E
 
#define KS_INTACK   0x40
 
#define KS_CLRINT   0x02
 

Functions

 module_param (num_cols, ulong, 0)
 
 MODULE_PARM_DESC (num_cols,"Num horiz panels, eg: 2 = 128 bit wide")
 
 module_param (num_rows, ulong, 0)
 
 MODULE_PARM_DESC (num_rows,"Num vert panels, eg: 1 = 64 bit high")
 
 module_param (nosplash, uint, 0)
 
 MODULE_PARM_DESC (nosplash,"Disable doing the splash screen")
 
 module_param (arcfb_enable, uint, 0)
 
 MODULE_PARM_DESC (arcfb_enable,"Enable communication with Arc board")
 
 module_param (dio_addr, ulong, 0)
 
 MODULE_PARM_DESC (dio_addr,"IO address for data, eg: 0x480")
 
 module_param (cio_addr, ulong, 0)
 
 MODULE_PARM_DESC (cio_addr,"IO address for control, eg: 0x400")
 
 module_param (c2io_addr, ulong, 0)
 
 MODULE_PARM_DESC (c2io_addr,"IO address for secondary control, eg: 0x408")
 
 module_param (splashval, ulong, 0)
 
 MODULE_PARM_DESC (splashval,"Splash pattern: 0xFF is black, 0x00 is green")
 
 module_param (tuhold, ulong, 0)
 
 MODULE_PARM_DESC (tuhold,"Time to hold between strobing data to Arc board")
 
 module_param (irq, uint, 0)
 
 MODULE_PARM_DESC (irq,"IRQ for the Arc board")
 
 module_init (arcfb_init)
 
 module_exit (arcfb_exit)
 
 MODULE_DESCRIPTION ("fbdev driver for Arc monochrome LCD board")
 
 MODULE_AUTHOR ("Jaya Kumar")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ceil64 (   a)    (a|0x3F)

Definition at line 54 of file arcfb.c.

#define ceilXres (   a,
  xres 
)    (a|(xres - 1))

Definition at line 55 of file arcfb.c.

#define floor8 (   a)    (a&(~0x07))

Definition at line 51 of file arcfb.c.

#define floorXres (   a,
  xres 
)    (a&(~(xres - 1)))

Definition at line 52 of file arcfb.c.

#define iceil8 (   a)    (((int)((a+7)/8))*8)

Definition at line 53 of file arcfb.c.

#define KS_CEHI   0x01

Definition at line 62 of file arcfb.c.

#define KS_CELO   0x00

Definition at line 63 of file arcfb.c.

#define KS_CLRINT   0x02

Definition at line 69 of file arcfb.c.

#define KS_DPY_OFF   0x3E

Definition at line 67 of file arcfb.c.

#define KS_DPY_ON   0x3F

Definition at line 66 of file arcfb.c.

#define KS_INTACK   0x40

Definition at line 68 of file arcfb.c.

#define KS_SEL_CMD   0x08

Definition at line 64 of file arcfb.c.

#define KS_SEL_DATA   0x00

Definition at line 65 of file arcfb.c.

#define KS_SET_DPY_START_LINE   0xC0

Definition at line 59 of file arcfb.c.

#define KS_SET_PAGE_NUM   0xB8

Definition at line 60 of file arcfb.c.

#define KS_SET_X   0x40

Definition at line 61 of file arcfb.c.

Function Documentation

MODULE_AUTHOR ( "Jaya Kumar"  )
MODULE_DESCRIPTION ( "fbdev driver for Arc monochrome LCD board )
module_exit ( arcfb_exit  )
module_init ( arcfb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( num_cols  ,
ulong  ,
 
)
module_param ( num_rows  ,
ulong  ,
 
)
module_param ( nosplash  ,
uint  ,
 
)
module_param ( arcfb_enable  ,
uint  ,
 
)
module_param ( dio_addr  ,
ulong  ,
 
)
module_param ( cio_addr  ,
ulong  ,
 
)
module_param ( c2io_addr  ,
ulong  ,
 
)
module_param ( splashval  ,
ulong  ,
 
)
module_param ( tuhold  ,
ulong  ,
 
)
module_param ( irq  ,
uint  ,
 
)
MODULE_PARM_DESC ( num_cols  ,
"Num horiz  panels 
)
MODULE_PARM_DESC ( num_rows  ,
"Num vert  panels 
)
MODULE_PARM_DESC ( nosplash  ,
"Disable doing the splash screen"   
)
MODULE_PARM_DESC ( arcfb_enable  ,
"Enable communication with Arc board  
)
MODULE_PARM_DESC ( dio_addr  ,
"IO address for  data,
eg:0x480"   
)
MODULE_PARM_DESC ( cio_addr  ,
"IO address for  control,
eg:0x400"   
)
MODULE_PARM_DESC ( c2io_addr  ,
"IO address for secondary  control,
eg:0x408"   
)
MODULE_PARM_DESC ( splashval  ,
"Splash pattern: 0xFF is  black,
0x00 is green"   
)
MODULE_PARM_DESC ( tuhold  ,
"Time to hold between strobing data to Arc board  
)
MODULE_PARM_DESC ( irq  ,
"IRQ for the Arc board  
)