Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pvr2fb.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/slab.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>

Go to the source code of this file.

Data Structures

struct  pvr2_params
 
struct  pvr2fb_par
 
struct  pvr2_board
 

Macros

#define PCI_DEVICE_ID_NEC_NEON250   0x0067
 
#define DISP_BASE   par->mmio_base
 
#define DISP_BRDRCOLR   (DISP_BASE + 0x40)
 
#define DISP_DIWMODE   (DISP_BASE + 0x44)
 
#define DISP_DIWADDRL   (DISP_BASE + 0x50)
 
#define DISP_DIWADDRS   (DISP_BASE + 0x54)
 
#define DISP_DIWSIZE   (DISP_BASE + 0x5c)
 
#define DISP_SYNCCONF   (DISP_BASE + 0xd0)
 
#define DISP_BRDRHORZ   (DISP_BASE + 0xd4)
 
#define DISP_SYNCSIZE   (DISP_BASE + 0xd8)
 
#define DISP_BRDRVERT   (DISP_BASE + 0xdc)
 
#define DISP_DIWCONF   (DISP_BASE + 0xe8)
 
#define DISP_DIWHSTRT   (DISP_BASE + 0xec)
 
#define DISP_DIWVSTRT   (DISP_BASE + 0xf0)
 
#define DISP_PIXDEPTH   (DISP_BASE + 0x108)
 
#define TV_CLK   74239
 
#define VGA_CLK   37119
 
#define PAL_HTOTAL   863
 
#define PAL_VTOTAL   312
 
#define NTSC_HTOTAL   857
 
#define NTSC_VTOTAL   262
 
#define NUM_TOTAL_MODES   ARRAY_SIZE(pvr2_modedb)
 
#define DEFMODE_NTSC   0
 
#define DEFMODE_PAL   0
 
#define DEFMODE_VGA   2
 
#define BLANK_BIT   (1<<3)
 
#define PCTRA   0xff80002c
 
#define PDTRA   0xff800030
 
#define VOUTC   0xa0702c00
 

Enumerations

enum  { CT_VGA, CT_NONE, CT_RGB, CT_COMPOSITE }
 
enum  { VO_PAL, VO_NTSC, VO_VGA }
 
enum  { PAL_ARGB1555, PAL_RGB565, PAL_ARGB4444, PAL_ARGB8888 }
 

Functions

 module_init (pvr2fb_init)
 
 module_exit (pvr2fb_exit)
 
 MODULE_AUTHOR ("Paul Mundt <[email protected]>, M. R. Brown <[email protected]>")
 
 MODULE_DESCRIPTION ("Framebuffer driver for NEC PowerVR 2 based graphics boards")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BLANK_BIT   (1<<3)

Definition at line 609 of file pvr2fb.c.

#define DEFMODE_NTSC   0

Definition at line 254 of file pvr2fb.c.

#define DEFMODE_PAL   0

Definition at line 255 of file pvr2fb.c.

#define DEFMODE_VGA   2

Definition at line 256 of file pvr2fb.c.

#define DISP_BASE   par->mmio_base

Definition at line 80 of file pvr2fb.c.

#define DISP_BRDRCOLR   (DISP_BASE + 0x40)

Definition at line 81 of file pvr2fb.c.

#define DISP_BRDRHORZ   (DISP_BASE + 0xd4)

Definition at line 87 of file pvr2fb.c.

#define DISP_BRDRVERT   (DISP_BASE + 0xdc)

Definition at line 89 of file pvr2fb.c.

#define DISP_DIWADDRL   (DISP_BASE + 0x50)

Definition at line 83 of file pvr2fb.c.

#define DISP_DIWADDRS   (DISP_BASE + 0x54)

Definition at line 84 of file pvr2fb.c.

#define DISP_DIWCONF   (DISP_BASE + 0xe8)

Definition at line 90 of file pvr2fb.c.

#define DISP_DIWHSTRT   (DISP_BASE + 0xec)

Definition at line 91 of file pvr2fb.c.

#define DISP_DIWMODE   (DISP_BASE + 0x44)

Definition at line 82 of file pvr2fb.c.

#define DISP_DIWSIZE   (DISP_BASE + 0x5c)

Definition at line 85 of file pvr2fb.c.

#define DISP_DIWVSTRT   (DISP_BASE + 0xf0)

Definition at line 92 of file pvr2fb.c.

#define DISP_PIXDEPTH   (DISP_BASE + 0x108)

Definition at line 93 of file pvr2fb.c.

#define DISP_SYNCCONF   (DISP_BASE + 0xd0)

Definition at line 86 of file pvr2fb.c.

#define DISP_SYNCSIZE   (DISP_BASE + 0xd8)

Definition at line 88 of file pvr2fb.c.

#define NTSC_HTOTAL   857

Definition at line 102 of file pvr2fb.c.

#define NTSC_VTOTAL   262

Definition at line 103 of file pvr2fb.c.

#define NUM_TOTAL_MODES   ARRAY_SIZE(pvr2_modedb)

Definition at line 252 of file pvr2fb.c.

#define PAL_HTOTAL   863

Definition at line 100 of file pvr2fb.c.

#define PAL_VTOTAL   312

Definition at line 101 of file pvr2fb.c.

#define PCI_DEVICE_ID_NEC_NEON250   0x0067

Definition at line 76 of file pvr2fb.c.

#define PCTRA   0xff80002c

Definition at line 649 of file pvr2fb.c.

#define PDTRA   0xff800030

Definition at line 650 of file pvr2fb.c.

#define TV_CLK   74239

Definition at line 96 of file pvr2fb.c.

#define VGA_CLK   37119

Definition at line 97 of file pvr2fb.c.

#define VOUTC   0xa0702c00

Definition at line 651 of file pvr2fb.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
CT_VGA 
CT_NONE 
CT_RGB 
CT_COMPOSITE 

Definition at line 106 of file pvr2fb.c.

anonymous enum
Enumerator:
VO_PAL 
VO_NTSC 
VO_VGA 

Definition at line 109 of file pvr2fb.c.

anonymous enum
Enumerator:
PAL_ARGB1555 
PAL_RGB565 
PAL_ARGB4444 
PAL_ARGB8888 

Definition at line 112 of file pvr2fb.c.

Function Documentation

MODULE_AUTHOR ( "Paul Mundt <[email protected] ,
M.R.Brown< mrbrown @0xd6.org >"   
)
MODULE_DESCRIPTION ( "Framebuffer driver for NEC PowerVR 2 based graphics boards"  )
module_exit ( pvr2fb_exit  )
module_init ( pvr2fb_init  )
MODULE_LICENSE ( "GPL"  )