Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
leo.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/fb.h>
#include <linux/mm.h>
#include <linux/of_device.h>
#include <linux/io.h>
#include <asm/fbio.h>
#include "sbuslib.h"

Go to the source code of this file.

Data Structures

struct  leo_cursor
 
struct  leo_lx_krn
 
struct  leo_lc_ss0_krn
 
struct  leo_lc_ss0_usr
 
struct  leo_lc_ss1_krn
 
struct  leo_lc_ss1_usr
 
struct  leo_ld_ss0
 
struct  leo_ld_ss1
 
struct  leo_ld_gbl
 
struct  leo_par
 

Macros

#define LEO_OFF_LC_SS0_KRN   0x00200000UL
 
#define LEO_OFF_LC_SS0_USR   0x00201000UL
 
#define LEO_OFF_LC_SS1_KRN   0x01200000UL
 
#define LEO_OFF_LC_SS1_USR   0x01201000UL
 
#define LEO_OFF_LD_SS0   0x00400000UL
 
#define LEO_OFF_LD_SS1   0x01400000UL
 
#define LEO_OFF_LD_GBL   0x00401000UL
 
#define LEO_OFF_LX_KRN   0x00600000UL
 
#define LEO_OFF_LX_CURSOR   0x00601000UL
 
#define LEO_OFF_SS0   0x00800000UL
 
#define LEO_OFF_SS1   0x01800000UL
 
#define LEO_OFF_UNK   0x00602000UL
 
#define LEO_OFF_UNK2   0x00000000UL
 
#define LEO_CUR_ENABLE   0x00000080
 
#define LEO_CUR_UPDATE   0x00000030
 
#define LEO_CUR_PROGRESS   0x00000006
 
#define LEO_CUR_UPDATECMAP   0x00000003
 
#define LEO_CUR_TYPE_MASK   0x00000000
 
#define LEO_CUR_TYPE_IMAGE   0x00000020
 
#define LEO_CUR_TYPE_CMAP   0x00000050
 
#define LEO_KRN_TYPE_CLUT0   0x00001000
 
#define LEO_KRN_TYPE_CLUT1   0x00001001
 
#define LEO_KRN_TYPE_CLUT2   0x00001002
 
#define LEO_KRN_TYPE_WID   0x00001003
 
#define LEO_KRN_TYPE_UNK   0x00001006
 
#define LEO_KRN_TYPE_VIDEO   0x00002003
 
#define LEO_KRN_TYPE_CLUTDATA   0x00004000
 
#define LEO_KRN_CSR_ENABLE   0x00000008
 
#define LEO_KRN_CSR_PROGRESS   0x00000004
 
#define LEO_KRN_CSR_UNK   0x00000002
 
#define LEO_KRN_CSR_UNK2   0x00000001
 
#define LEO_SS1_MISC_ENABLE   0x00000001
 
#define LEO_SS1_MISC_STEREO   0x00000002
 
#define LEO_FLAG_BLANKED   0x00000001
 

Functions

 MODULE_DEVICE_TABLE (of, leo_match)
 
 module_init (leo_init)
 
 module_exit (leo_exit)
 
 MODULE_DESCRIPTION ("framebuffer driver for LEO chipsets")
 
 MODULE_AUTHOR ("David S. Miller <[email protected]>")
 
 MODULE_VERSION ("2.0")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LEO_CUR_ENABLE   0x00000080

Definition at line 70 of file leo.c.

#define LEO_CUR_PROGRESS   0x00000006

Definition at line 72 of file leo.c.

#define LEO_CUR_TYPE_CMAP   0x00000050

Definition at line 77 of file leo.c.

#define LEO_CUR_TYPE_IMAGE   0x00000020

Definition at line 76 of file leo.c.

#define LEO_CUR_TYPE_MASK   0x00000000

Definition at line 75 of file leo.c.

#define LEO_CUR_UPDATE   0x00000030

Definition at line 71 of file leo.c.

#define LEO_CUR_UPDATECMAP   0x00000003

Definition at line 73 of file leo.c.

#define LEO_FLAG_BLANKED   0x00000001

Definition at line 191 of file leo.c.

#define LEO_KRN_CSR_ENABLE   0x00000008

Definition at line 94 of file leo.c.

#define LEO_KRN_CSR_PROGRESS   0x00000004

Definition at line 95 of file leo.c.

#define LEO_KRN_CSR_UNK   0x00000002

Definition at line 96 of file leo.c.

#define LEO_KRN_CSR_UNK2   0x00000001

Definition at line 97 of file leo.c.

#define LEO_KRN_TYPE_CLUT0   0x00001000

Definition at line 87 of file leo.c.

#define LEO_KRN_TYPE_CLUT1   0x00001001

Definition at line 88 of file leo.c.

#define LEO_KRN_TYPE_CLUT2   0x00001002

Definition at line 89 of file leo.c.

#define LEO_KRN_TYPE_CLUTDATA   0x00004000

Definition at line 93 of file leo.c.

#define LEO_KRN_TYPE_UNK   0x00001006

Definition at line 91 of file leo.c.

#define LEO_KRN_TYPE_VIDEO   0x00002003

Definition at line 92 of file leo.c.

#define LEO_KRN_TYPE_WID   0x00001003

Definition at line 90 of file leo.c.

#define LEO_OFF_LC_SS0_KRN   0x00200000UL

Definition at line 56 of file leo.c.

#define LEO_OFF_LC_SS0_USR   0x00201000UL

Definition at line 57 of file leo.c.

#define LEO_OFF_LC_SS1_KRN   0x01200000UL

Definition at line 58 of file leo.c.

#define LEO_OFF_LC_SS1_USR   0x01201000UL

Definition at line 59 of file leo.c.

#define LEO_OFF_LD_GBL   0x00401000UL

Definition at line 62 of file leo.c.

#define LEO_OFF_LD_SS0   0x00400000UL

Definition at line 60 of file leo.c.

#define LEO_OFF_LD_SS1   0x01400000UL

Definition at line 61 of file leo.c.

#define LEO_OFF_LX_CURSOR   0x00601000UL

Definition at line 64 of file leo.c.

#define LEO_OFF_LX_KRN   0x00600000UL

Definition at line 63 of file leo.c.

#define LEO_OFF_SS0   0x00800000UL

Definition at line 65 of file leo.c.

#define LEO_OFF_SS1   0x01800000UL

Definition at line 66 of file leo.c.

#define LEO_OFF_UNK   0x00602000UL

Definition at line 67 of file leo.c.

#define LEO_OFF_UNK2   0x00000000UL

Definition at line 68 of file leo.c.

#define LEO_SS1_MISC_ENABLE   0x00000001

Definition at line 169 of file leo.c.

#define LEO_SS1_MISC_STEREO   0x00000002

Definition at line 170 of file leo.c.

Function Documentation

MODULE_AUTHOR ( "David S. Miller <[email protected]>"  )
MODULE_DESCRIPTION ( "framebuffer driver for LEO chipsets"  )
MODULE_DEVICE_TABLE ( of  ,
leo_match   
)
module_exit ( leo_exit  )
module_init ( leo_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( "2.0"  )