Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cg14.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/uaccess.h>
#include <linux/of_device.h>
#include <asm/io.h>
#include <asm/fbio.h>
#include "sbuslib.h"

Go to the source code of this file.

Data Structures

struct  cg14_regs
 
struct  cg14_cursor
 
struct  cg14_dac
 
struct  cg14_xlut
 
struct  cg14_clut
 
struct  cg14_par
 

Macros

#define CG14_MCR_INTENABLE_SHIFT   7
 
#define CG14_MCR_INTENABLE_MASK   0x80
 
#define CG14_MCR_VIDENABLE_SHIFT   6
 
#define CG14_MCR_VIDENABLE_MASK   0x40
 
#define CG14_MCR_PIXMODE_SHIFT   4
 
#define CG14_MCR_PIXMODE_MASK   0x30
 
#define CG14_MCR_TMR_SHIFT   2
 
#define CG14_MCR_TMR_MASK   0x0c
 
#define CG14_MCR_TMENABLE_SHIFT   1
 
#define CG14_MCR_TMENABLE_MASK   0x02
 
#define CG14_MCR_RESET_SHIFT   0
 
#define CG14_MCR_RESET_MASK   0x01
 
#define CG14_REV_REVISION_SHIFT   4
 
#define CG14_REV_REVISION_MASK   0xf0
 
#define CG14_REV_IMPL_SHIFT   0
 
#define CG14_REV_IMPL_MASK   0x0f
 
#define CG14_VBR_FRAMEBASE_SHIFT   12
 
#define CG14_VBR_FRAMEBASE_MASK   0x00fff000
 
#define CG14_VMCR1_SETUP_SHIFT   0
 
#define CG14_VMCR1_SETUP_MASK   0x000001ff
 
#define CG14_VMCR1_VCONFIG_SHIFT   9
 
#define CG14_VMCR1_VCONFIG_MASK   0x00000e00
 
#define CG14_VMCR2_REFRESH_SHIFT   0
 
#define CG14_VMCR2_REFRESH_MASK   0x00000001
 
#define CG14_VMCR2_TESTROWCNT_SHIFT   1
 
#define CG14_VMCR2_TESTROWCNT_MASK   0x00000002
 
#define CG14_VMCR2_FBCONFIG_SHIFT   2
 
#define CG14_VMCR2_FBCONFIG_MASK   0x0000000c
 
#define CG14_VCR_REFRESHREQ_SHIFT   0
 
#define CG14_VCR_REFRESHREQ_MASK   0x000003ff
 
#define CG14_VCR1_REFRESHENA_SHIFT   10
 
#define CG14_VCR1_REFRESHENA_MASK   0x00000400
 
#define CG14_VCA_CAD_SHIFT   0
 
#define CG14_VCA_CAD_MASK   0x000003ff
 
#define CG14_VCA_VERS_SHIFT   10
 
#define CG14_VCA_VERS_MASK   0x00000c00
 
#define CG14_VCA_RAMSPEED_SHIFT   12
 
#define CG14_VCA_RAMSPEED_MASK   0x00001000
 
#define CG14_VCA_8MB_SHIFT   13
 
#define CG14_VCA_8MB_MASK   0x00002000
 
#define CG14_MCR_PIXMODE_8   0
 
#define CG14_MCR_PIXMODE_16   2
 
#define CG14_MCR_PIXMODE_32   3
 
#define CG14_CCR_ENABLE   0x04
 
#define CG14_CCR_SELECT   0x02 /* HW/Full screen */
 
#define CG14_MMAP_ENTRIES   16
 
#define CG14_FLAG_BLANKED   0x00000001
 

Functions

 MODULE_DEVICE_TABLE (of, cg14_match)
 
 module_init (cg14_init)
 
 module_exit (cg14_exit)
 
 MODULE_DESCRIPTION ("framebuffer driver for CGfourteen chipsets")
 
 MODULE_AUTHOR ("David S. Miller <[email protected]>")
 
 MODULE_VERSION ("2.0")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CG14_CCR_ENABLE   0x04

Definition at line 135 of file cg14.c.

#define CG14_CCR_SELECT   0x02 /* HW/Full screen */

Definition at line 136 of file cg14.c.

#define CG14_FLAG_BLANKED   0x00000001

Definition at line 196 of file cg14.c.

#define CG14_MCR_INTENABLE_MASK   0x80

Definition at line 56 of file cg14.c.

#define CG14_MCR_INTENABLE_SHIFT   7

Definition at line 55 of file cg14.c.

#define CG14_MCR_PIXMODE_16   2

Definition at line 97 of file cg14.c.

#define CG14_MCR_PIXMODE_32   3

Definition at line 98 of file cg14.c.

#define CG14_MCR_PIXMODE_8   0

Definition at line 96 of file cg14.c.

#define CG14_MCR_PIXMODE_MASK   0x30

Definition at line 60 of file cg14.c.

#define CG14_MCR_PIXMODE_SHIFT   4

Definition at line 59 of file cg14.c.

#define CG14_MCR_RESET_MASK   0x01

Definition at line 66 of file cg14.c.

#define CG14_MCR_RESET_SHIFT   0

Definition at line 65 of file cg14.c.

#define CG14_MCR_TMENABLE_MASK   0x02

Definition at line 64 of file cg14.c.

#define CG14_MCR_TMENABLE_SHIFT   1

Definition at line 63 of file cg14.c.

#define CG14_MCR_TMR_MASK   0x0c

Definition at line 62 of file cg14.c.

#define CG14_MCR_TMR_SHIFT   2

Definition at line 61 of file cg14.c.

#define CG14_MCR_VIDENABLE_MASK   0x40

Definition at line 58 of file cg14.c.

#define CG14_MCR_VIDENABLE_SHIFT   6

Definition at line 57 of file cg14.c.

#define CG14_MMAP_ENTRIES   16

Definition at line 187 of file cg14.c.

#define CG14_REV_IMPL_MASK   0x0f

Definition at line 70 of file cg14.c.

#define CG14_REV_IMPL_SHIFT   0

Definition at line 69 of file cg14.c.

#define CG14_REV_REVISION_MASK   0xf0

Definition at line 68 of file cg14.c.

#define CG14_REV_REVISION_SHIFT   4

Definition at line 67 of file cg14.c.

#define CG14_VBR_FRAMEBASE_MASK   0x00fff000

Definition at line 72 of file cg14.c.

#define CG14_VBR_FRAMEBASE_SHIFT   12

Definition at line 71 of file cg14.c.

#define CG14_VCA_8MB_MASK   0x00002000

Definition at line 94 of file cg14.c.

#define CG14_VCA_8MB_SHIFT   13

Definition at line 93 of file cg14.c.

#define CG14_VCA_CAD_MASK   0x000003ff

Definition at line 88 of file cg14.c.

#define CG14_VCA_CAD_SHIFT   0

Definition at line 87 of file cg14.c.

#define CG14_VCA_RAMSPEED_MASK   0x00001000

Definition at line 92 of file cg14.c.

#define CG14_VCA_RAMSPEED_SHIFT   12

Definition at line 91 of file cg14.c.

#define CG14_VCA_VERS_MASK   0x00000c00

Definition at line 90 of file cg14.c.

#define CG14_VCA_VERS_SHIFT   10

Definition at line 89 of file cg14.c.

#define CG14_VCR1_REFRESHENA_MASK   0x00000400

Definition at line 86 of file cg14.c.

#define CG14_VCR1_REFRESHENA_SHIFT   10

Definition at line 85 of file cg14.c.

#define CG14_VCR_REFRESHREQ_MASK   0x000003ff

Definition at line 84 of file cg14.c.

#define CG14_VCR_REFRESHREQ_SHIFT   0

Definition at line 83 of file cg14.c.

#define CG14_VMCR1_SETUP_MASK   0x000001ff

Definition at line 74 of file cg14.c.

#define CG14_VMCR1_SETUP_SHIFT   0

Definition at line 73 of file cg14.c.

#define CG14_VMCR1_VCONFIG_MASK   0x00000e00

Definition at line 76 of file cg14.c.

#define CG14_VMCR1_VCONFIG_SHIFT   9

Definition at line 75 of file cg14.c.

#define CG14_VMCR2_FBCONFIG_MASK   0x0000000c

Definition at line 82 of file cg14.c.

#define CG14_VMCR2_FBCONFIG_SHIFT   2

Definition at line 81 of file cg14.c.

#define CG14_VMCR2_REFRESH_MASK   0x00000001

Definition at line 78 of file cg14.c.

#define CG14_VMCR2_REFRESH_SHIFT   0

Definition at line 77 of file cg14.c.

#define CG14_VMCR2_TESTROWCNT_MASK   0x00000002

Definition at line 80 of file cg14.c.

#define CG14_VMCR2_TESTROWCNT_SHIFT   1

Definition at line 79 of file cg14.c.

Function Documentation

MODULE_AUTHOR ( "David S. Miller <[email protected]>"  )
MODULE_DESCRIPTION ( "framebuffer driver for CGfourteen chipsets"  )
MODULE_DEVICE_TABLE ( of  ,
cg14_match   
)
module_exit ( cg14_exit  )
module_init ( cg14_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( "2.0"  )