Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
g364fb.c File Reference
#include <linux/module.h>
#include <linux/console.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 <asm/io.h>
#include <asm/jazz.h>

Go to the source code of this file.

Macros

#define G364_MEM_BASE   0xe4400000
 
#define G364_PORT_BASE   0xe4000000
 
#define ID_REG   0xe4000000 /* Read only */
 
#define BOOT_REG   0xe4080000
 
#define TIMING_REG   0xe4080108 /* to 0x080170 - DON'T TOUCH! */
 
#define DISPLAY_REG   0xe4080118
 
#define VDISPLAY_REG   0xe4080150
 
#define MASK_REG   0xe4080200
 
#define CTLA_REG   0xe4080300
 
#define CURS_TOGGLE   0x800000
 
#define BIT_PER_PIX   0x700000 /* bits 22 to 20 of Control A */
 
#define DELAY_SAMPLE   0x080000
 
#define PORT_INTER   0x040000
 
#define PIX_PIPE_DEL   0x030000 /* bits 17 and 16 of Control A */
 
#define PIX_PIPE_DEL2   0x008000 /* same as above - don't ask me why */
 
#define TR_CYCLE_TOG   0x004000
 
#define VRAM_ADR_INC   0x003000 /* bits 13 and 12 of Control A */
 
#define BLANK_OFF   0x000800
 
#define FORCE_BLANK   0x000400
 
#define BLK_FUN_SWTCH   0x000200
 
#define BLANK_IO   0x000100
 
#define BLANK_LEVEL   0x000080
 
#define A_VID_FORM   0x000040
 
#define D_SYNC_FORM   0x000020
 
#define FRAME_FLY_PAT   0x000010
 
#define OP_MODE   0x000008
 
#define INTL_STAND   0x000004
 
#define SCRN_FORM   0x000002
 
#define ENABLE_VTG   0x000001
 
#define TOP_REG   0xe4080400
 
#define CURS_PAL_REG   0xe4080508 /* to 0x080518 */
 
#define CHKSUM_REG   0xe4080600 /* to 0x080610 - unused */
 
#define CURS_POS_REG   0xe4080638
 
#define CLR_PAL_REG   0xe4080800 /* to 0x080ff8 */
 
#define CURS_PAT_REG   0xe4081000 /* to 0x081ff8 */
 
#define MON_ID_REG   0xe4100000 /* unused */
 
#define RESET_REG   0xe4180000 /* Write only */
 

Functions

int g364fb_init (void)
 
 module_init (g364fb_init)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define A_VID_FORM   0x000040

Definition at line 56 of file g364fb.c.

#define BIT_PER_PIX   0x700000 /* bits 22 to 20 of Control A */

Definition at line 44 of file g364fb.c.

#define BLANK_IO   0x000100

Definition at line 54 of file g364fb.c.

#define BLANK_LEVEL   0x000080

Definition at line 55 of file g364fb.c.

#define BLANK_OFF   0x000800

Definition at line 51 of file g364fb.c.

#define BLK_FUN_SWTCH   0x000200

Definition at line 53 of file g364fb.c.

#define BOOT_REG   0xe4080000

Definition at line 37 of file g364fb.c.

#define CHKSUM_REG   0xe4080600 /* to 0x080610 - unused */

Definition at line 65 of file g364fb.c.

#define CLR_PAL_REG   0xe4080800 /* to 0x080ff8 */

Definition at line 67 of file g364fb.c.

#define CTLA_REG   0xe4080300

Definition at line 42 of file g364fb.c.

#define CURS_PAL_REG   0xe4080508 /* to 0x080518 */

Definition at line 64 of file g364fb.c.

#define CURS_PAT_REG   0xe4081000 /* to 0x081ff8 */

Definition at line 68 of file g364fb.c.

#define CURS_POS_REG   0xe4080638

Definition at line 66 of file g364fb.c.

#define CURS_TOGGLE   0x800000

Definition at line 43 of file g364fb.c.

#define D_SYNC_FORM   0x000020

Definition at line 57 of file g364fb.c.

#define DELAY_SAMPLE   0x080000

Definition at line 45 of file g364fb.c.

#define DISPLAY_REG   0xe4080118

Definition at line 39 of file g364fb.c.

#define ENABLE_VTG   0x000001

Definition at line 62 of file g364fb.c.

#define FORCE_BLANK   0x000400

Definition at line 52 of file g364fb.c.

#define FRAME_FLY_PAT   0x000010

Definition at line 58 of file g364fb.c.

#define G364_MEM_BASE   0xe4400000

Definition at line 34 of file g364fb.c.

#define G364_PORT_BASE   0xe4000000

Definition at line 35 of file g364fb.c.

#define ID_REG   0xe4000000 /* Read only */

Definition at line 36 of file g364fb.c.

#define INTL_STAND   0x000004

Definition at line 60 of file g364fb.c.

#define MASK_REG   0xe4080200

Definition at line 41 of file g364fb.c.

#define MON_ID_REG   0xe4100000 /* unused */

Definition at line 69 of file g364fb.c.

#define OP_MODE   0x000008

Definition at line 59 of file g364fb.c.

#define PIX_PIPE_DEL   0x030000 /* bits 17 and 16 of Control A */

Definition at line 47 of file g364fb.c.

#define PIX_PIPE_DEL2   0x008000 /* same as above - don't ask me why */

Definition at line 48 of file g364fb.c.

#define PORT_INTER   0x040000

Definition at line 46 of file g364fb.c.

#define RESET_REG   0xe4180000 /* Write only */

Definition at line 70 of file g364fb.c.

#define SCRN_FORM   0x000002

Definition at line 61 of file g364fb.c.

#define TIMING_REG   0xe4080108 /* to 0x080170 - DON'T TOUCH! */

Definition at line 38 of file g364fb.c.

#define TOP_REG   0xe4080400

Definition at line 63 of file g364fb.c.

#define TR_CYCLE_TOG   0x004000

Definition at line 49 of file g364fb.c.

#define VDISPLAY_REG   0xe4080150

Definition at line 40 of file g364fb.c.

#define VRAM_ADR_INC   0x003000 /* bits 13 and 12 of Control A */

Definition at line 50 of file g364fb.c.

Function Documentation

int __init g364fb_init ( void  )

Definition at line 195 of file g364fb.c.

module_init ( g364fb_init  )
MODULE_LICENSE ( "GPL"  )