Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

matroxfb.c File Reference

#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/tty.h>
#include <linux/malloc.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/console.h>
#include <linux/selection.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/timer.h>
#include <linux/pci.h>
#include <asm/io.h>
#include <asm/spinlock.h>
#include <asm/unaligned.h>
#include <video/fbcon.h>
#include <video/fbcon-cfb4.h>
#include <video/fbcon-cfb8.h>
#include <video/fbcon-cfb16.h>
#include <video/fbcon-cfb24.h>
#include <video/fbcon-cfb32.h>

Include dependency graph for matroxfb.c:

Go to the source code of this file.

Data Structures

struct  board

Defines

#define CONFIG_FB_MATROX_32MB
#define FBCON_HAS_VGATEXT
#define DBG(x)
#define DBG_HEAVY(x)
#define DBG_REG(x)
#define DBG_LOOP(x)
#define ioremap_nocache(X, Y)   ioremap(X,Y)
#define READx_FAILS
#define MEMCPYTOIO_WRITEL
#define MAP_IOREMAP
#define dprintk(X...)
#define PCI_SS_VENDOR_ID_SIEMENS_NIXDORF   0x110A
#define PCI_SS_VENDOR_ID_MATROX   PCI_VENDOR_ID_MATROX
#define PCI_DEVICE_ID_MATROX_G200_PCI   0x0520
#define PCI_DEVICE_ID_MATROX_G200_AGP   0x0521
#define PCI_DEVICE_ID_MATROX_G100   0x1000
#define PCI_DEVICE_ID_MATROX_G100_AGP   0x1001
#define PCI_DEVICE_ID_MATROX_G400_AGP   0x0525
#define PCI_SS_ID_MATROX_GENERIC   0xFF00
#define PCI_SS_ID_MATROX_PRODUCTIVA_G100_AGP   0xFF01
#define PCI_SS_ID_MATROX_MYSTIQUE_G200_AGP   0xFF02
#define PCI_SS_ID_MATROX_MILLENIUM_G200_AGP   0xFF03
#define PCI_SS_ID_MATROX_MARVEL_G200_AGP   0xFF04
#define PCI_SS_ID_MATROX_MGA_G100_PCI   0xFF05
#define PCI_SS_ID_MATROX_MGA_G100_AGP   0x1001
#define PCI_SS_ID_SIEMENS_MGA_G100_AGP   0x001E
#define PCI_SS_ID_SIEMENS_MGA_G200_AGP   0x0032
#define MX_VISUAL_TRUECOLOR   FB_VISUAL_DIRECTCOLOR
#define MX_VISUAL_DIRECTCOLOR   FB_VISUAL_TRUECOLOR
#define MX_VISUAL_PSEUDOCOLOR   FB_VISUAL_PSEUDOCOLOR
#define CNVT_TOHW(val, width)   ((((val)<<(width))+0x7FFF-(val))>>16)
#define srcd   ((const u_int32_t*)src)
#define MGA_IOREMAP_NORMAL   0
#define MGA_IOREMAP_NOCACHE   1
#define MGA_IOREMAP_FB   MGA_IOREMAP_NOCACHE
#define MGA_IOREMAP_MMIO   MGA_IOREMAP_NOCACHE
#define MATROX_2MB_WITH_4MB_ADDON
#define ACCESS_FBINFO(x)   (global_mxinfo.x)
#define ACCESS_FBINFO2(info, x)   (global_mxinfo.x)
#define MINFO   (&global_mxinfo)
#define WPMINFO
#define CPMINFO
#define PMINFO
#define PMXINFO(p)
#define MINFO_FROM(x)
#define MINFO_FROM_DISP(x)
#define curr_ydstorg(x)   ACCESS_FBINFO2(x, curr.ydstorg.pixels)
#define PCI_OPTION_REG   0x40
#define PCI_MGA_INDEX   0x44
#define PCI_MGA_DATA   0x48
#define M_DWGCTL   0x1C00
#define M_MACCESS   0x1C04
#define M_CTLWTST   0x1C08
#define M_PLNWT   0x1C1C
#define M_BCOL   0x1C20
#define M_FCOL   0x1C24
#define M_SGN   0x1C58
#define M_LEN   0x1C5C
#define M_AR0   0x1C60
#define M_AR1   0x1C64
#define M_AR2   0x1C68
#define M_AR3   0x1C6C
#define M_AR4   0x1C70
#define M_AR5   0x1C74
#define M_AR6   0x1C78
#define M_CXBNDRY   0x1C80
#define M_FXBNDRY   0x1C84
#define M_YDSTLEN   0x1C88
#define M_PITCH   0x1C8C
#define M_YDST   0x1C90
#define M_YDSTORG   0x1C94
#define M_YTOP   0x1C98
#define M_YBOT   0x1C9C
#define M_CACHEFLUSH   0x1FFF
#define M_EXEC   0x0100
#define M_DWG_TRAP   0x04
#define M_DWG_BITBLT   0x08
#define M_DWG_ILOAD   0x09
#define M_DWG_LINEAR   0x0080
#define M_DWG_SOLID   0x0800
#define M_DWG_ARZERO   0x1000
#define M_DWG_SGNZERO   0x2000
#define M_DWG_SHIFTZERO   0x4000
#define M_DWG_REPLACE   0x000C0000
#define M_DWG_REPLACE2   (M_DWG_REPLACE | 0x40)
#define M_DWG_XOR   0x00060010
#define M_DWG_BFCOL   0x04000000
#define M_DWG_BMONOWF   0x08000000
#define M_DWG_TRANSC   0x40000000
#define M_FIFOSTATUS   0x1E10
#define M_STATUS   0x1E14
#define M_IEN   0x1E1C
#define M_VCOUNT   0x1E20
#define M_RESET   0x1E40
#define M_AGP2PLL   0x1E4C
#define M_OPMODE   0x1E54
#define M_OPMODE_DMA_GEN_WRITE   0x00
#define M_OPMODE_DMA_BLIT   0x04
#define M_OPMODE_DMA_VECTOR_WRITE   0x08
#define M_OPMODE_DMA_LE   0x0000
#define M_OPMODE_DMA_BE_8BPP   0x0000
#define M_OPMODE_DMA_BE_16BPP   0x0100
#define M_OPMODE_DMA_BE_32BPP   0x0200
#define M_OPMODE_DIR_LE   0x000000
#define M_OPMODE_DIR_BE_8BPP   0x000000
#define M_OPMODE_DIR_BE_16BPP   0x010000
#define M_OPMODE_DIR_BE_32BPP   0x020000
#define M_ATTR_INDEX   0x1FC0
#define M_ATTR_DATA   0x1FC1
#define M_MISC_REG   0x1FC2
#define M_3C2_RD   0x1FC2
#define M_SEQ_INDEX   0x1FC4
#define M_SEQ_DATA   0x1FC5
#define M_MISC_REG_READ   0x1FCC
#define M_GRAPHICS_INDEX   0x1FCE
#define M_GRAPHICS_DATA   0x1FCF
#define M_CRTC_INDEX   0x1FD4
#define M_ATTR_RESET   0x1FDA
#define M_3DA_WR   0x1FDA
#define M_EXTVGA_INDEX   0x1FDE
#define M_EXTVGA_DATA   0x1FDF
#define M_SRCORG   0x2CB4
#define M_RAMDAC_BASE   0x3C00
#define M_DAC_REG   (M_RAMDAC_BASE+0)
#define M_DAC_VAL   (M_RAMDAC_BASE+1)
#define M_PALETTE_MASK   (M_RAMDAC_BASE+2)
#define M_X_INDEX   0x00
#define M_X_DATAREG   0x0A
#define DAC_XGENIOCTRL   0x2A
#define DAC_XGENIODATA   0x2B
#define mga_inb(addr)   mga_readb(ACCESS_FBINFO(mmio.vbase), (addr))
#define mga_inl(addr)   mga_readl(ACCESS_FBINFO(mmio.vbase), (addr))
#define mga_outb(addr, val)   mga_writeb(ACCESS_FBINFO(mmio.vbase), (addr), (val))
#define mga_outw(addr, val)   mga_writew(ACCESS_FBINFO(mmio.vbase), (addr), (val))
#define mga_outl(addr, val)   mga_writel(ACCESS_FBINFO(mmio.vbase), (addr), (val))
#define mga_readr(port, idx)   (mga_outb((port),(idx)), mga_inb((port)+1))
#define mga_setr(addr, port, val)   do { mga_outb(addr, port); mga_outb((addr)+1, val); } while (0)
#define mga_fifo(n)   do {} while ((mga_inl(M_FIFOSTATUS) & 0xFF) < (n))
#define WaitTillIdle()   do {} while (mga_inl(M_STATUS) & 0x10000)
#define isInterleave(x)   (0)
#define isMillenium(x)   (0)
#define isMilleniumII(x)   (0)
#define CRITBEGIN
#define CRITEND
#define mga_ydstlen(y, l)   mga_outl(M_YDSTLEN | M_EXEC, ((y) << 16) | (l))
#define outTi3026   outDAC
#define inTi3026   inDAC
#define outDAC1064   outDAC
#define inDAC1064   inDAC
#define FNTCHARCNT(fd)   (((int *)(fd))[-3])
#define matrox_cfb16_revc   matrox_cfbX_revc
#define matrox_cfb24_revc   matrox_cfbX_revc
#define matrox_cfb32_revc   matrox_cfbX_revc
#define matrox_cfb24_clear   matrox_cfb32_clear
#define matrox_cfb24_putc   matrox_cfb32_putc
#define matrox_cfb24_putcs   matrox_cfb32_putcs
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#define minfo   ((struct matrox_fb_info*)info)
#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
#define RS1056x400   13
#define RS1056x480   14
#define RSNoxNo   2
#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 RSCreate(X, Y)   ((X) | ((Y) << 8))
#define DEVF_VIDEO64BIT   0x01
#define DEVF_SWAPS   0x02
#define DEVF_MILLENIUM   0x04
#define DEVF_MILLENIUM2   0x08
#define DEVF_CROSS4MB   0x10
#define DEVF_TEXT4B   0x20
#define DEVF_DDC_8_2   0x40
#define DEVF_DMA   0x80
#define DEVF_SUPPORT32MB   0x100
#define DEVF_ANY_VXRES   0x200
#define DEVF_TEXT16B   0x400
#define DEVF_G100   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2)
#define DEVF_G200   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2 | DEVF_ANY_VXRES)
#define DEVF_G400   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2 | DEVF_ANY_VXRES | DEVF_SUPPORT32MB | DEVF_TEXT16B)

Functions

static unsigned int mga_readb (vaddr_t va, unsigned int offs)
static unsigned int mga_readw (vaddr_t va, unsigned int offs)
static u_int32_t mga_readl (vaddr_t va, unsigned int offs)
static void mga_writeb (vaddr_t va, unsigned int offs, u_int8_t value)
static void mga_writew (vaddr_t va, unsigned int offs, u_int16_t value)
static void mga_writel (vaddr_t va, unsigned int offs, u_int32_t value)
static void mga_memcpy_toio (vaddr_t va, unsigned int offs, const void *src, int len)
static void vaddr_add (vaddr_t *va, unsigned long offs)
static void * vaddr_va (vaddr_t va)
static int mga_ioremap (unsigned long phys, unsigned long size, int flags, vaddr_t *virt)
static void mga_iounmap (vaddr_t va)
static void matrox_cfbX_init (WPMINFO struct display *p)
static void matrox_cfbX_bmove (struct display *p, int sy, int sx, int dy, int dx, int height, int width)
static void matroxfb_accel_clear (CPMINFO u_int32_t color, int sy, int sx, int height, int width)
static void matrox_cfbX_clear (u_int32_t color, struct display *p, int sy, int sx, int height, int width)
static void matrox_cfbX_fastputc (u_int32_t fgx, u_int32_t bgx, struct display *p, int c, int yy, int xx)
static void matrox_cfbX_putc (u_int32_t fgx, u_int32_t bgx, struct display *p, int c, int yy, int xx)
static void matrox_cfbX_fastputcs (u_int32_t fgx, u_int32_t bgx, struct display *p, const unsigned short *s, int count, int yy, int xx)
static void matrox_cfbX_putcs (u_int32_t fgx, u_int32_t bgx, struct display *p, const unsigned short *s, int count, int yy, int xx)
static void matrox_cfbX_revc (struct display *p, int xx, int yy)
static void matrox_cfbX_clear_margins (struct vc_data *conp, struct display *p, int bottom_only)
static void outDAC (CPMINFO int reg, int val)
static int inDAC (CPMINFO int reg)
static void matroxfb_createcursorshape (WPMINFO struct display *p, int vmode)
static int matroxfb_fastfont_tryset (WPMINFO struct display *p)
static void matrox_text_setup (struct display *p)
static void matrox_text_bmove (struct display *p, int sy, int sx, int dy, int dx, int height, int width)
static void matrox_text_clear (struct vc_data *conp, struct display *p, int sy, int sx, int height, int width)
static void matrox_text_putc (struct vc_data *conp, struct display *p, int c, int yy, int xx)
static void matrox_text_putcs (struct vc_data *conp, struct display *p, const unsigned short *s, int count, int yy, int xx)
static void matrox_text_revc (struct display *p, int xx, int yy)
static int matrox_text_loadfont (WPMINFO struct display *p)
static void matrox_text_createcursor (WPMINFO struct display *p)
static void matrox_text_cursor (struct display *p, int mode, int x, int y)
static void matrox_text_round (CPMINFO struct fb_var_screeninfo *var, struct display *p)
static int matrox_text_setfont (struct display *p, int width, int height)
static struct pci_dev * pci_find (struct pci_dev *p)
static void initMatrox (WPMINFO struct display *p)
static void matrox_pan_var (WPMINFO struct fb_var_screeninfo *var)
static int matroxfb_open (struct fb_info *info, int user)
static int matroxfb_release (struct fb_info *info, int user)
static int matroxfb_pan_display (struct fb_var_screeninfo *var, int con, struct fb_info *info)
static int matroxfb_updatevar (int con, struct fb_info *info)
static int matroxfb_get_final_bppShift (CPMINFO int bpp)
static int matroxfb_test_and_set_rounding (CPMINFO int xres, int bpp)
static int matroxfb_pitch_adjust (CPMINFO int xres, int bpp)
static int PLL_calcclock (CPMINFO unsigned int freq, unsigned int fmax, unsigned int *in, unsigned int *feed, unsigned int *post)
static void var2my (struct fb_var_screeninfo *var, struct my_timming *mt)
static int vgaHWinit (CPMINFO struct matrox_hw_state *hw, struct my_timming *m, struct display *p)
static int matroxfb_get_cmap_len (struct fb_var_screeninfo *var)
static int matroxfb_decode_var (CPMINFO struct display *p, struct fb_var_screeninfo *var, int *visual, int *video_cmap_len, unsigned int *ydstorg)
static void matroxfb_fastfont_init (struct matrox_fb_info *minfo)
static void vgaHWrestore (CPMINFO struct matrox_hw_state *hw, struct matrox_hw_state *oldhw)
static int matrox_setcolreg (unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fb_info)
static void do_install_cmap (WPMINFO struct display *dsp)
static int matroxfb_get_fix (struct fb_fix_screeninfo *fix, int con, struct fb_info *info)
static int matroxfb_get_var (struct fb_var_screeninfo *var, int con, struct fb_info *info)
static int matroxfb_set_var (struct fb_var_screeninfo *var, int con, struct fb_info *info)
static int matrox_getcolreg (unsigned regno, unsigned *red, unsigned *green, unsigned *blue, unsigned *transp, struct fb_info *info)
static int matroxfb_get_cmap (struct fb_cmap *cmap, int kspc, int con, struct fb_info *info)
static int matroxfb_set_cmap (struct fb_cmap *cmap, int kspc, int con, struct fb_info *info)
static int matroxfb_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg, int con, struct fb_info *info)
static int matroxfb_switch (int con, struct fb_info *info)
static void matroxfb_blank (int blank, struct fb_info *info)
 __initfunc (void matroxfb_setup(char *options, int *ints))
 __initfunc (static int matroxfb_getmemory(WPMINFO unsigned int maxSize, unsigned int *realOffset, unsigned int *realSize))
 __initfunc (static int initMatrox2(WPMINFO struct display *d, struct board *b))
 __initfunc (static int matrox_init(void))
 __initfunc (void matroxfb_init(void))

Variables

matrox_fb_info global_mxinfo
display global_disp
static struct display_switch matroxfb_text
static struct fb_var_screeninfo
vesafb_defined 
__initdata
static struct fb_ops matroxfb_ops
struct {
   unsigned int   vesa
   unsigned int   info
RSptr
static unsigned int mem = 0
static int option_precise_width = 1
static int inv24 = 0
static int cross4MB = -1
static int disabled = 0
static int noaccel = 0
static int nopan = 0
static int no_pci_retry = 0
static int novga = 0
static int nobios = 0
static int noinit = 1
static int inverse = 0
static int hwcursor = 1
static int blink = 1
static int sgram = 0
static int grayscale = 0
static unsigned int fastfont = 0
static int dev = -1
static int depth = -1
static unsigned int pixclock = 0
static int sync = -1
static unsigned int fv = 0
static unsigned int fh = 0
static unsigned int maxclk = 0
static char fontname [64]
static char videomode [64]
static struct matrox_fb_infofb_list = NULL
static int __init initialized = 0


Define Documentation

#define ACCESS_FBINFO x   )     (global_mxinfo.x)
 

Definition at line 481 of file matroxfb.c.

Referenced by __initfunc(), do_install_cmap(), initMatrox(), matrox_cfbX_fastputc(), matrox_cfbX_fastputcs(), matrox_cfbX_init(), matrox_cfbX_putc(), matrox_cfbX_putcs(), matrox_cfbX_revc(), matrox_getcolreg(), matrox_pan_var(), matrox_setcolreg(), matrox_text_bmove(), matrox_text_clear(), matrox_text_createcursor(), matrox_text_cursor(), matrox_text_loadfont(), matrox_text_putc(), matrox_text_putcs(), matrox_text_revc(), matrox_text_round(), matrox_text_setfont(), matrox_text_setup(), matroxfb_accel_clear(), matroxfb_createcursorshape(), matroxfb_decode_var(), matroxfb_fastfont_init(), matroxfb_fastfont_tryset(), matroxfb_get_cmap(), matroxfb_get_final_bppShift(), matroxfb_get_fix(), matroxfb_get_var(), matroxfb_pan_display(), matroxfb_pitch_adjust(), matroxfb_set_cmap(), matroxfb_set_var(), matroxfb_switch(), matroxfb_test_and_set_rounding(), PLL_calcclock(), and vgaHWinit().

#define ACCESS_FBINFO2 info,
x   )     (global_mxinfo.x)
 

Definition at line 482 of file matroxfb.c.

#define CNVT_TOHW val,
width   )     ((((val)<<(width))+0x7FFF-(val))>>16)
 

Definition at line 254 of file matroxfb.c.

Referenced by matrox_setcolreg().

#define CONFIG_FB_MATROX_32MB
 

Definition at line 142 of file matroxfb.c.

#define CPMINFO
 

Definition at line 487 of file matroxfb.c.

#define CRITBEGIN
 

Definition at line 1123 of file matroxfb.c.

Referenced by matrox_cfbX_bmove(), matrox_cfbX_fastputc(), matrox_cfbX_fastputcs(), matrox_cfbX_putc(), matrox_cfbX_putcs(), matrox_cfbX_revc(), matrox_pan_var(), matrox_text_bmove(), matrox_text_clear(), matrox_text_createcursor(), matrox_text_cursor(), matrox_text_loadfont(), matrox_text_putc(), matrox_text_putcs(), matrox_text_revc(), matroxfb_accel_clear(), matroxfb_blank(), matroxfb_fastfont_tryset(), and vgaHWrestore().

#define CRITEND
 

Definition at line 1124 of file matroxfb.c.

Referenced by matrox_cfbX_bmove(), matrox_cfbX_fastputc(), matrox_cfbX_fastputcs(), matrox_cfbX_putc(), matrox_cfbX_putcs(), matrox_cfbX_revc(), matrox_pan_var(), matrox_text_bmove(), matrox_text_clear(), matrox_text_createcursor(), matrox_text_cursor(), matrox_text_loadfont(), matrox_text_putc(), matrox_text_putcs(), matrox_text_revc(), matroxfb_accel_clear(), matroxfb_blank(), matroxfb_fastfont_tryset(), and vgaHWrestore().

#define curr_ydstorg x   )     ACCESS_FBINFO2(x, curr.ydstorg.pixels)
 

Definition at line 637 of file matroxfb.c.

Referenced by matrox_cfbX_bmove(), and matrox_cfbX_init().

#define DAC_XGENIOCTRL   0x2A
 

Definition at line 754 of file matroxfb.c.

#define DAC_XGENIODATA   0x2B
 

Definition at line 755 of file matroxfb.c.

#define DBG x   ) 
 

Definition at line 171 of file matroxfb.c.

#define DBG_HEAVY x   ) 
 

Definition at line 172 of file matroxfb.c.

Referenced by matrox_cfbX_putc(), and matrox_cfbX_putcs().

#define DBG_LOOP x   ) 
 

Definition at line 174 of file matroxfb.c.

Referenced by matrox_cfbX_revc(), matroxfb_open(), and matroxfb_release().

#define DBG_REG x   ) 
 

Definition at line 173 of file matroxfb.c.

Referenced by inDAC(), and outDAC().

#define DEVF_ANY_VXRES   0x200
 

Definition at line 5496 of file matroxfb.c.

Referenced by __initfunc().

#define DEVF_CROSS4MB   0x10
 

Definition at line 5491 of file matroxfb.c.

Referenced by __initfunc().

#define DEVF_DDC_8_2   0x40
 

Definition at line 5493 of file matroxfb.c.

#define DEVF_DMA   0x80
 

Definition at line 5494 of file matroxfb.c.

#define DEVF_G100   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2)
 

Definition at line 5499 of file matroxfb.c.

#define DEVF_G200   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2 | DEVF_ANY_VXRES)
 

Definition at line 5500 of file matroxfb.c.

#define DEVF_G400   (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2 | DEVF_ANY_VXRES | DEVF_SUPPORT32MB | DEVF_TEXT16B)
 

Definition at line 5501 of file matroxfb.c.

#define DEVF_MILLENIUM   0x04
 

Definition at line 5489 of file matroxfb.c.

#define DEVF_MILLENIUM2   0x08
 

Definition at line 5490 of file matroxfb.c.

#define DEVF_SUPPORT32MB   0x100
 

Definition at line 5495 of file matroxfb.c.

Referenced by __initfunc().

#define DEVF_SWAPS   0x02
 

Definition at line 5488 of file matroxfb.c.

Referenced by __initfunc().

#define DEVF_TEXT16B   0x400
 

Definition at line 5497 of file matroxfb.c.

Referenced by __initfunc().

#define DEVF_TEXT4B   0x20
 

Definition at line 5492 of file matroxfb.c.

Referenced by __initfunc().

#define DEVF_VIDEO64BIT   0x01
 

Definition at line 5487 of file matroxfb.c.

Referenced by __initfunc().

#define dprintk X...   ) 
 

Definition at line 213 of file matroxfb.c.

#define FBCON_HAS_VGATEXT
 

Definition at line 144 of file matroxfb.c.

#define FNTCHARCNT fd   )     (((int *)(fd))[-3])
 

Definition at line 2128 of file matroxfb.c.

#define inDAC1064   inDAC
 

Definition at line 1850 of file matroxfb.c.

#define inTi3026   inDAC
 

Definition at line 1848 of file matroxfb.c.

#define ioremap_nocache X,
 )     ioremap(X,Y)
 

Definition at line 180 of file matroxfb.c.

Referenced by __initfunc(), aic7xxx_detect(), c4_add_card(), cs4281_probe(), DAC960_DetectControllers(), hc_start_ohci(), li_create(), mga_dma_initialize(), mga_ioremap(), nm256_peek_for_sig(), nm256_remap_ports(), rtl8139_init_board(), and t1pci_add_card().

#define isInterleave x   )     (0)
 

Definition at line 1083 of file matroxfb.c.

Referenced by matroxfb_get_final_bppShift(), matroxfb_set_var(), and matroxfb_test_and_set_rounding().

#define isMillenium x   )     (0)
 

Definition at line 1084 of file matroxfb.c.

Referenced by __initfunc(), and initMatrox().

#define isMilleniumII x   )     (0)
 

Definition at line 1085 of file matroxfb.c.

Referenced by matrox_cfbX_init().

#define M_3C2_RD   0x1FC2
 

Definition at line 723 of file matroxfb.c.

#define M_3DA_WR   0x1FDA
 

Definition at line 736 of file matroxfb.c.

#define M_AGP2PLL   0x1E4C
 

Definition at line 704 of file matroxfb.c.

#define M_AR0   0x1C60
 

Definition at line 654 of file matroxfb.c.

Referenced by matrox_cfbX_bmove(), matrox_cfbX_fastputc(), matrox_cfbX_fastputcs(), matrox_cfbX_putc(), and matrox_cfbX_putcs().

#define M_AR1   0x1C64
 

Definition at line 655 of file matroxfb.c.

#define M_AR2   0x1C68
 

Definition at line 656 of file matroxfb.c.

#define M_AR3   0x1C6C
 

Definition at line 657 of file matroxfb.c.

Referenced by matrox_cfbX_bmove(), matrox_cfbX_fastputc(), matrox_cfbX_fastputcs(), matrox_cfbX_putc(), and matrox_cfbX_putcs().