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

Go to the source code of this file.

Data Structures

struct  bt_regs
 
struct  cg3_regs
 
struct  cg3_par
 

Macros

#define CG3_CR_ENABLE_INTS   0x80
 
#define CG3_CR_ENABLE_VIDEO   0x40
 
#define CG3_CR_ENABLE_TIMING   0x20
 
#define CG3_CR_ENABLE_CURCMP   0x10
 
#define CG3_CR_XTAL_MASK   0x0c
 
#define CG3_CR_DIVISOR_MASK   0x03
 
#define CG3_SR_PENDING_INT   0x80
 
#define CG3_SR_RES_MASK   0x70
 
#define CG3_SR_1152_900_76_A   0x40
 
#define CG3_SR_1152_900_76_B   0x60
 
#define CG3_SR_ID_MASK   0x0f
 
#define CG3_SR_ID_COLOR   0x01
 
#define CG3_SR_ID_MONO   0x02
 
#define CG3_SR_ID_MONO_ECL   0x03
 
#define CG3_REGS_OFFSET   0x400000UL
 
#define CG3_RAM_OFFSET   0x800000UL
 
#define CG3_FLAG_BLANKED   0x00000001
 
#define CG3_FLAG_RDI   0x00000002
 
#define D4M3(x)   ((((x)>>2)<<1) + ((x)>>2)) /* (x/4)*3 */
 
#define D4M4(x)   ((x)&~0x3) /* (x/4)*4 */
 

Enumerations

enum  cg3_type { CG3_AT_66HZ = 0, CG3_AT_76HZ, CG3_RDI }
 

Functions

 MODULE_DEVICE_TABLE (of, cg3_match)
 
 module_init (cg3_init)
 
 module_exit (cg3_exit)
 
 MODULE_DESCRIPTION ("framebuffer driver for CGthree chipsets")
 
 MODULE_AUTHOR ("David S. Miller <[email protected]>")
 
 MODULE_VERSION ("2.0")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CG3_CR_DIVISOR_MASK   0x03

Definition at line 62 of file cg3.c.

#define CG3_CR_ENABLE_CURCMP   0x10

Definition at line 60 of file cg3.c.

#define CG3_CR_ENABLE_INTS   0x80

Definition at line 57 of file cg3.c.

#define CG3_CR_ENABLE_TIMING   0x20

Definition at line 59 of file cg3.c.

#define CG3_CR_ENABLE_VIDEO   0x40

Definition at line 58 of file cg3.c.

#define CG3_CR_XTAL_MASK   0x0c

Definition at line 61 of file cg3.c.

#define CG3_FLAG_BLANKED   0x00000001

Definition at line 117 of file cg3.c.

#define CG3_FLAG_RDI   0x00000002

Definition at line 118 of file cg3.c.

#define CG3_RAM_OFFSET   0x800000UL

Definition at line 109 of file cg3.c.

#define CG3_REGS_OFFSET   0x400000UL

Definition at line 108 of file cg3.c.

#define CG3_SR_1152_900_76_A   0x40

Definition at line 67 of file cg3.c.

#define CG3_SR_1152_900_76_B   0x60

Definition at line 68 of file cg3.c.

#define CG3_SR_ID_COLOR   0x01

Definition at line 70 of file cg3.c.

#define CG3_SR_ID_MASK   0x0f

Definition at line 69 of file cg3.c.

#define CG3_SR_ID_MONO   0x02

Definition at line 71 of file cg3.c.

#define CG3_SR_ID_MONO_ECL   0x03

Definition at line 72 of file cg3.c.

#define CG3_SR_PENDING_INT   0x80

Definition at line 65 of file cg3.c.

#define CG3_SR_RES_MASK   0x70

Definition at line 66 of file cg3.c.

#define D4M3 (   x)    ((((x)>>2)<<1) + ((x)>>2)) /* (x/4)*3 */
#define D4M4 (   x)    ((x)&~0x3) /* (x/4)*4 */

Enumeration Type Documentation

enum cg3_type
Enumerator:
CG3_AT_66HZ 
CG3_AT_76HZ 
CG3_RDI 

Definition at line 74 of file cg3.c.

Function Documentation

MODULE_AUTHOR ( "David S. Miller <[email protected]>"  )
MODULE_DESCRIPTION ( "framebuffer driver for CGthree chipsets"  )
MODULE_DEVICE_TABLE ( of  ,
cg3_match   
)
module_exit ( cg3_exit  )
module_init ( cg3_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( "2.0"  )