Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
matroxfb_base.c File Reference
#include <linux/version.h>
#include "matroxfb_base.h"
#include "matroxfb_misc.h"
#include "matroxfb_accel.h"
#include "matroxfb_DAC1064.h"
#include "matroxfb_Ti3026.h"
#include "matroxfb_maven.h"
#include "matroxfb_crtc2.h"
#include "matroxfb_g450.h"
#include <linux/matroxfb.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  video_board
 
struct  board
 

Macros

#define SETCLR(clr)
 
#define RSDepth(X)   (((X) >> 8) & 0x0F)
 
#define RS8bpp   0x1
 
#define RS15bpp   0x2
 
#define RS16bpp   0x3
 
#define RS32bpp   0x4
 
#define RS4bpp   0x5
 
#define RS24bpp   0x6
 
#define RSText   0x7
 
#define RSText8   0x8
 
#define DEVF_VIDEO64BIT   0x0001
 
#define DEVF_SWAPS   0x0002
 
#define DEVF_SRCORG   0x0004
 
#define DEVF_DUALHEAD   0x0008
 
#define DEVF_CROSS4MB   0x0010
 
#define DEVF_TEXT4B   0x0020
 
#define DEVF_SUPPORT32MB   0x0100
 
#define DEVF_ANY_VXRES   0x0200
 
#define DEVF_TEXT16B   0x0400
 
#define DEVF_CRTC2   0x0800
 
#define DEVF_MAVEN_CAPABLE   0x1000
 
#define DEVF_PANELLINK_CAPABLE   0x2000
 
#define DEVF_G450DAC   0x4000
 
#define DEVF_GCORE   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB)
 
#define DEVF_G2CORE   (DEVF_GCORE | DEVF_ANY_VXRES | DEVF_MAVEN_CAPABLE | DEVF_PANELLINK_CAPABLE | DEVF_SRCORG | DEVF_DUALHEAD)
 
#define DEVF_G100   (DEVF_GCORE) /* no doc, no vxres... */
 
#define DEVF_G200   (DEVF_G2CORE)
 
#define DEVF_G400   (DEVF_G2CORE | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2)
 
#define DEVF_G450   (DEVF_GCORE | DEVF_ANY_VXRES | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2 | DEVF_G450DAC | DEVF_SRCORG | DEVF_DUALHEAD)
 
#define DEVF_G550   (DEVF_G450)
 
#define matroxfb_l(x)   list_entry(x, struct matrox_fb_info, next_fb)
 
#define matroxfb_driver_l(x)   list_entry(x, struct matroxfb_driver, node)
 
#define RSResolution(X)   ((X) & 0x0F)
 
#define RS640x400   1
 
#define RS640x480   2
 
#define RS800x600   3
 
#define RS1024x768   4
 
#define RS1280x1024   5
 
#define RS1600x1200   6
 
#define RS768x576   7
 
#define RS960x720   8
 
#define RS1152x864   9
 
#define RS1408x1056   10
 
#define RS640x350   11
 
#define RS1056x344   12 /* 132 x 43 text */
 
#define RS1056x400   13 /* 132 x 50 text */
 
#define RS1056x480   14 /* 132 x 60 text */
 
#define RSNoxNo   15
 
#define RSCreate(X, Y)   ((X) | ((Y) << 8))
 

Functions

int matroxfb_enable_irq (struct matrox_fb_info *minfo, int reenable)
 
int matroxfb_wait_for_sync (struct matrox_fb_info *minfo, u_int32_t crtc)
 
int matroxfb_register_driver (struct matroxfb_driver *drv)
 
void matroxfb_unregister_driver (struct matroxfb_driver *drv)
 
 MODULE_DEVICE_TABLE (pci, matroxfb_devices)
 
 module_init (matroxfb_init)
 
 module_exit (matrox_done)
 
 EXPORT_SYMBOL (matroxfb_register_driver)
 
 EXPORT_SYMBOL (matroxfb_unregister_driver)
 
 EXPORT_SYMBOL (matroxfb_wait_for_sync)
 
 EXPORT_SYMBOL (matroxfb_enable_irq)
 

Macro Definition Documentation

#define DEVF_ANY_VXRES   0x0200

Definition at line 1368 of file matroxfb_base.c.

#define DEVF_CROSS4MB   0x0010

Definition at line 1363 of file matroxfb_base.c.

#define DEVF_CRTC2   0x0800

Definition at line 1370 of file matroxfb_base.c.

#define DEVF_DUALHEAD   0x0008

Definition at line 1362 of file matroxfb_base.c.

#define DEVF_G100   (DEVF_GCORE) /* no doc, no vxres... */

Definition at line 1377 of file matroxfb_base.c.

#define DEVF_G200   (DEVF_G2CORE)

Definition at line 1378 of file matroxfb_base.c.

Definition at line 1376 of file matroxfb_base.c.

#define DEVF_G400   (DEVF_G2CORE | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2)

Definition at line 1379 of file matroxfb_base.c.

Definition at line 1381 of file matroxfb_base.c.

#define DEVF_G450DAC   0x4000

Definition at line 1373 of file matroxfb_base.c.

#define DEVF_G550   (DEVF_G450)

Definition at line 1382 of file matroxfb_base.c.

#define DEVF_GCORE   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB)

Definition at line 1375 of file matroxfb_base.c.

#define DEVF_MAVEN_CAPABLE   0x1000

Definition at line 1371 of file matroxfb_base.c.

#define DEVF_PANELLINK_CAPABLE   0x2000

Definition at line 1372 of file matroxfb_base.c.

#define DEVF_SRCORG   0x0004

Definition at line 1361 of file matroxfb_base.c.

#define DEVF_SUPPORT32MB   0x0100

Definition at line 1367 of file matroxfb_base.c.

#define DEVF_SWAPS   0x0002

Definition at line 1360 of file matroxfb_base.c.

#define DEVF_TEXT16B   0x0400

Definition at line 1369 of file matroxfb_base.c.

#define DEVF_TEXT4B   0x0020

Definition at line 1364 of file matroxfb_base.c.

#define DEVF_VIDEO64BIT   0x0001

Definition at line 1359 of file matroxfb_base.c.

#define matroxfb_driver_l (   x)    list_entry(x, struct matroxfb_driver, node)

Definition at line 1928 of file matroxfb_base.c.

#define matroxfb_l (   x)    list_entry(x, struct matrox_fb_info, next_fb)

Definition at line 1927 of file matroxfb_base.c.

#define RS1024x768   4

Definition at line 2140 of file matroxfb_base.c.

#define RS1056x344   12 /* 132 x 43 text */

Definition at line 2148 of file matroxfb_base.c.

#define RS1056x400   13 /* 132 x 50 text */

Definition at line 2149 of file matroxfb_base.c.

#define RS1056x480   14 /* 132 x 60 text */

Definition at line 2150 of file matroxfb_base.c.

#define RS1152x864   9

Definition at line 2145 of file matroxfb_base.c.

#define RS1280x1024   5

Definition at line 2141 of file matroxfb_base.c.

#define RS1408x1056   10

Definition at line 2146 of file matroxfb_base.c.

#define RS15bpp   0x2

Definition at line 1226 of file matroxfb_base.c.

#define RS1600x1200   6

Definition at line 2142 of file matroxfb_base.c.

#define RS16bpp   0x3

Definition at line 1227 of file matroxfb_base.c.

#define RS24bpp   0x6

Definition at line 1230 of file matroxfb_base.c.

#define RS32bpp   0x4

Definition at line 1228 of file matroxfb_base.c.

#define RS4bpp   0x5

Definition at line 1229 of file matroxfb_base.c.

#define RS640x350   11

Definition at line 2147 of file matroxfb_base.c.

#define RS640x400   1

Definition at line 2137 of file matroxfb_base.c.

#define RS640x480   2

Definition at line 2138 of file matroxfb_base.c.

#define RS768x576   7

Definition at line 2143 of file matroxfb_base.c.

#define RS800x600   3

Definition at line 2139 of file matroxfb_base.c.

#define RS8bpp   0x1

Definition at line 1225 of file matroxfb_base.c.

#define RS960x720   8

Definition at line 2144 of file matroxfb_base.c.

#define RSCreate (   X,
 
)    ((X) | ((Y) << 8))

Definition at line 2171 of file matroxfb_base.c.

#define RSDepth (   X)    (((X) >> 8) & 0x0F)

Definition at line 1224 of file matroxfb_base.c.

#define RSNoxNo   15

Definition at line 2151 of file matroxfb_base.c.

#define RSResolution (   X)    ((X) & 0x0F)

Definition at line 2136 of file matroxfb_base.c.

#define RSText   0x7

Definition at line 1231 of file matroxfb_base.c.

#define RSText8   0x8

Definition at line 1232 of file matroxfb_base.c.

#define SETCLR (   clr)
Value:
var->clr.offset = rgbt->clr.offset;\
var->clr.length = rgbt->clr.length

Function Documentation

EXPORT_SYMBOL ( matroxfb_register_driver  )
EXPORT_SYMBOL ( matroxfb_unregister_driver  )
EXPORT_SYMBOL ( matroxfb_wait_for_sync  )
EXPORT_SYMBOL ( matroxfb_enable_irq  )
int matroxfb_enable_irq ( struct matrox_fb_info minfo,
int  reenable 
)

Definition at line 225 of file matroxfb_base.c.

int matroxfb_register_driver ( struct matroxfb_driver drv)

Definition at line 1929 of file matroxfb_base.c.

void matroxfb_unregister_driver ( struct matroxfb_driver drv)

Definition at line 1949 of file matroxfb_base.c.

int matroxfb_wait_for_sync ( struct matrox_fb_info minfo,
u_int32_t  crtc 
)

Definition at line 268 of file matroxfb_base.c.

MODULE_DEVICE_TABLE ( pci  ,
matroxfb_devices   
)
module_exit ( matrox_done  )
module_init ( matroxfb_init  )

Variable Documentation

int bits_per_pixel

Definition at line 1234 of file matroxfb_base.c.

unsigned int info

Definition at line 2172 of file matroxfb_base.c.

Definition at line 1234 of file matroxfb_base.c.

int vfreq

Definition at line 2153 of file matroxfb_base.c.