Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
matroxfb_base.h 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/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 <linux/spinlock.h>
#include <linux/kd.h>
#include <asm/io.h>
#include <asm/unaligned.h>

Go to the source code of this file.

Data Structures

struct  vaddr_t
 
struct  my_timming
 
struct  matrox_pll_cache
 
struct  matrox_pll_limits
 
struct  matrox_pll_features
 
struct  matroxfb_par
 
struct  matrox_DAC1064_features
 
struct  mavenregs
 
struct  matrox_crtc2
 
struct  matrox_hw_state
 
struct  matrox_accel_data
 
struct  matrox_altout
 
struct  matrox_bios
 
struct  matrox_vsync
 
struct  matrox_fb_info
 
struct  matrox_switch
 
struct  matroxfb_driver
 

Macros

#define DBG(x)   /* DBG */
 
#define DBG_HEAVY(x)   /* DBG_HEAVY */
 
#define DBG_REG(x)   /* DBG_REG */
 
#define DBG_LOOP(x)   /* DBG_LOOP */
 
#define dprintk(X...)
 
#define PCI_SS_VENDOR_ID_SIEMENS_NIXDORF   0x110A
 
#define PCI_SS_VENDOR_ID_MATROX   PCI_VENDOR_ID_MATROX
 
#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_MATROX_MILLENNIUM_G400_MAX_AGP   0x2179
 
#define PCI_SS_ID_SIEMENS_MGA_G100_AGP   0x001E /* 30 */
 
#define PCI_SS_ID_SIEMENS_MGA_G200_AGP   0x0032 /* 50 */
 
#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 MGA_IOREMAP_NORMAL   0
 
#define MGA_IOREMAP_NOCACHE   1
 
#define MGA_IOREMAP_FB   MGA_IOREMAP_NOCACHE
 
#define MGA_IOREMAP_MMIO   MGA_IOREMAP_NOCACHE
 
#define MATROXFB_SRC_NONE   0
 
#define MATROXFB_SRC_CRTC1   1
 
#define MATROXFB_SRC_CRTC2   2
 
#define MATROXFB_MAX_OUTPUTS   3
 
#define MATROXFB_MAX_FB_DRIVERS   5
 
#define info2minfo(info)   container_of(info, struct matrox_fb_info, fbcon)
 
#define PCI_OPTION_REG   0x40
 
#define PCI_OPTION_ENABLE_ROM   0x40000000
 
#define PCI_MGA_INDEX   0x44
 
#define PCI_MGA_DATA   0x48
 
#define PCI_OPTION2_REG   0x50
 
#define PCI_OPTION3_REG   0x54
 
#define PCI_MEMMISC_REG   0x58
 
#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_ICLEAR   0x1E18
 
#define M_IEN   0x1E1C
 
#define M_VCOUNT   0x1E20
 
#define M_RESET   0x1E40
 
#define M_MEMRDBK   0x1E44
 
#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 /* little endian - no transformation */
 
#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 /* little endian - no transformation */
 
#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_SEQ1   0x01
 
#define M_SEQ1_SCROFF   0x20
 
#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_INSTS1   0x1FDA
 
#define M_EXTVGA_INDEX   0x1FDE
 
#define M_EXTVGA_DATA   0x1FDF
 
#define M_SRCORG   0x2CB4
 
#define M_DSTORG   0x2CB8
 
#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 M_C2CTL   0x3C10
 
#define MX_OPTION_BSWAP   0x00000000
 
#define mga_inb(addr)   mga_readb(minfo->mmio.vbase, (addr))
 
#define mga_inl(addr)   mga_readl(minfo->mmio.vbase, (addr))
 
#define mga_outb(addr, val)   mga_writeb(minfo->mmio.vbase, (addr), (val))
 
#define mga_outw(addr, val)   mga_writew(minfo->mmio.vbase, (addr), (val))
 
#define mga_outl(addr, val)   mga_writel(minfo->mmio.vbase, (addr), (val))
 
#define mga_readr(port, idx)   (mga_outb((port),(idx)), mga_inb((port)+1))
 
#define mga_setr(addr, port, val)   mga_outw(addr, ((val)<<8) | (port))
 
#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 matroxfb_DAC_lock()   spin_lock(&minfo->lock.DAC)
 
#define matroxfb_DAC_unlock()   spin_unlock(&minfo->lock.DAC)
 
#define matroxfb_DAC_lock_irqsave(flags)   spin_lock_irqsave(&minfo->lock.DAC, flags)
 
#define matroxfb_DAC_unlock_irqrestore(flags)   spin_unlock_irqrestore(&minfo->lock.DAC, flags)
 
#define CRITBEGIN
 
#define CRITEND
 
#define CRITFLAGS
 

Enumerations

enum  {
  M_SYSTEM_PLL, M_PIXEL_PLL_A, M_PIXEL_PLL_B, M_PIXEL_PLL_C,
  M_VIDEO_PLL
}
 
enum  mga_chip {
  MGA_2064, MGA_2164, MGA_1064, MGA_1164,
  MGA_G100, MGA_G200, MGA_G400, MGA_G450,
  MGA_G550
}
 

Functions

int matroxfb_register_driver (struct matroxfb_driver *drv)
 
void matroxfb_unregister_driver (struct matroxfb_driver *drv)
 
void matroxfb_DAC_out (const struct matrox_fb_info *minfo, int reg, int val)
 
int matroxfb_DAC_in (const struct matrox_fb_info *minfo, int reg)
 
void matroxfb_var2my (struct fb_var_screeninfo *fvsi, struct my_timming *mt)
 
int matroxfb_wait_for_sync (struct matrox_fb_info *minfo, u_int32_t crtc)
 
int matroxfb_enable_irq (struct matrox_fb_info *minfo, int reenable)
 

Macro Definition Documentation

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

Definition at line 119 of file matroxfb_base.h.

#define CRITBEGIN

Definition at line 728 of file matroxfb_base.h.

#define CRITEND

Definition at line 729 of file matroxfb_base.h.

#define CRITFLAGS

Definition at line 730 of file matroxfb_base.h.

#define DAC_XGENIOCTRL   0x2A

Definition at line 664 of file matroxfb_base.h.

#define DAC_XGENIODATA   0x2B

Definition at line 665 of file matroxfb_base.h.

#define DBG (   x)    /* DBG */

Definition at line 82 of file matroxfb_base.h.

#define DBG_HEAVY (   x)    /* DBG_HEAVY */

Definition at line 83 of file matroxfb_base.h.

#define DBG_LOOP (   x)    /* DBG_LOOP */

Definition at line 85 of file matroxfb_base.h.

#define DBG_REG (   x)    /* DBG_REG */

Definition at line 84 of file matroxfb_base.h.

#define dprintk (   X...)

Definition at line 92 of file matroxfb_base.h.

#define info2minfo (   info)    container_of(info, struct matrox_fb_info, fbcon)

Definition at line 520 of file matroxfb_base.h.

#define isInterleave (   x)    (0)

Definition at line 707 of file matroxfb_base.h.

#define isMillenium (   x)    (0)

Definition at line 708 of file matroxfb_base.h.

#define isMilleniumII (   x)    (0)

Definition at line 709 of file matroxfb_base.h.

#define M_3C2_RD   0x1FC2

Definition at line 629 of file matroxfb_base.h.

#define M_3DA_WR   0x1FDA

Definition at line 644 of file matroxfb_base.h.

#define M_AGP2PLL   0x1E4C

Definition at line 610 of file matroxfb_base.h.

#define M_AR0   0x1C60

Definition at line 559 of file matroxfb_base.h.

#define M_AR1   0x1C64

Definition at line 560 of file matroxfb_base.h.

#define M_AR2   0x1C68

Definition at line 561 of file matroxfb_base.h.

#define M_AR3   0x1C6C

Definition at line 562 of file matroxfb_base.h.

#define M_AR4   0x1C70

Definition at line 563 of file matroxfb_base.h.

#define M_AR5   0x1C74

Definition at line 564 of file matroxfb_base.h.

#define M_AR6   0x1C78

Definition at line 565 of file matroxfb_base.h.

#define M_ATTR_DATA   0x1FC1

Definition at line 626 of file matroxfb_base.h.

#define M_ATTR_INDEX   0x1FC0

Definition at line 625 of file matroxfb_base.h.

#define M_ATTR_RESET   0x1FDA

Definition at line 643 of file matroxfb_base.h.

#define M_BCOL   0x1C20

Definition at line 554 of file matroxfb_base.h.

#define M_C2CTL   0x3C10

Definition at line 667 of file matroxfb_base.h.

#define M_CACHEFLUSH   0x1FFF

Definition at line 577 of file matroxfb_base.h.

#define M_CRTC_INDEX   0x1FD4

Definition at line 641 of file matroxfb_base.h.

#define M_CTLWTST   0x1C08

Definition at line 550 of file matroxfb_base.h.

#define M_CXBNDRY   0x1C80

Definition at line 567 of file matroxfb_base.h.

#define M_DAC_REG   (M_RAMDAC_BASE+0)

Definition at line 657 of file matroxfb_base.h.

#define M_DAC_VAL   (M_RAMDAC_BASE+1)

Definition at line 658 of file matroxfb_base.h.

#define M_DSTORG   0x2CB8

Definition at line 652 of file matroxfb_base.h.

#define M_DWG_ARZERO   0x1000

Definition at line 587 of file matroxfb_base.h.

#define M_DWG_BFCOL   0x04000000

Definition at line 595 of file matroxfb_base.h.

#define M_DWG_BITBLT   0x08

Definition at line 582 of file matroxfb_base.h.

#define M_DWG_BMONOWF   0x08000000

Definition at line 596 of file matroxfb_base.h.

#define M_DWG_ILOAD   0x09

Definition at line 583 of file matroxfb_base.h.

#define M_DWG_LINEAR   0x0080

Definition at line 585 of file matroxfb_base.h.

#define M_DWG_REPLACE   0x000C0000

Definition at line 591 of file matroxfb_base.h.

#define M_DWG_REPLACE2   (M_DWG_REPLACE | 0x40)

Definition at line 592 of file matroxfb_base.h.

#define M_DWG_SGNZERO   0x2000

Definition at line 588 of file matroxfb_base.h.

#define M_DWG_SHIFTZERO   0x4000

Definition at line 589 of file matroxfb_base.h.

#define M_DWG_SOLID   0x0800

Definition at line 586 of file matroxfb_base.h.

#define M_DWG_TRANSC   0x40000000

Definition at line 598 of file matroxfb_base.h.

#define M_DWG_TRAP   0x04

Definition at line 581 of file matroxfb_base.h.

#define M_DWG_XOR   0x00060010

Definition at line 593 of file matroxfb_base.h.

#define M_DWGCTL   0x1C00

Definition at line 548 of file matroxfb_base.h.

#define M_EXEC   0x0100

Definition at line 579 of file matroxfb_base.h.

#define M_EXTVGA_DATA   0x1FDF

Definition at line 648 of file matroxfb_base.h.

#define M_EXTVGA_INDEX   0x1FDE

Definition at line 647 of file matroxfb_base.h.

#define M_FCOL   0x1C24

Definition at line 555 of file matroxfb_base.h.

#define M_FIFOSTATUS   0x1E10

Definition at line 600 of file matroxfb_base.h.

#define M_FXBNDRY   0x1C84

Definition at line 568 of file matroxfb_base.h.

#define M_GRAPHICS_DATA   0x1FCF

Definition at line 639 of file matroxfb_base.h.

#define M_GRAPHICS_INDEX   0x1FCE

Definition at line 638 of file matroxfb_base.h.

#define M_ICLEAR   0x1E18

Definition at line 602 of file matroxfb_base.h.

#define M_IEN   0x1E1C

Definition at line 603 of file matroxfb_base.h.

#define M_INSTS1   0x1FDA

Definition at line 645 of file matroxfb_base.h.

#define M_LEN   0x1C5C

Definition at line 558 of file matroxfb_base.h.

#define M_MACCESS   0x1C04

Definition at line 549 of file matroxfb_base.h.

#define M_MEMRDBK   0x1E44

Definition at line 608 of file matroxfb_base.h.

#define M_MISC_REG   0x1FC2

Definition at line 628 of file matroxfb_base.h.

#define M_MISC_REG_READ   0x1FCC

Definition at line 636 of file matroxfb_base.h.

#define M_OPMODE   0x1E54

Definition at line 612 of file matroxfb_base.h.

#define M_OPMODE_DIR_BE_16BPP   0x010000

Definition at line 622 of file matroxfb_base.h.

#define M_OPMODE_DIR_BE_32BPP   0x020000

Definition at line 623 of file matroxfb_base.h.

#define M_OPMODE_DIR_BE_8BPP   0x000000

Definition at line 621 of file matroxfb_base.h.

#define M_OPMODE_DIR_LE   0x000000 /* little endian - no transformation */

Definition at line 620 of file matroxfb_base.h.

#define M_OPMODE_DMA_BE_16BPP   0x0100

Definition at line 618 of file matroxfb_base.h.

#define M_OPMODE_DMA_BE_32BPP   0x0200

Definition at line 619 of file matroxfb_base.h.

#define M_OPMODE_DMA_BE_8BPP   0x0000

Definition at line 617 of file matroxfb_base.h.

#define M_OPMODE_DMA_BLIT   0x04

Definition at line 614 of file matroxfb_base.h.

#define M_OPMODE_DMA_GEN_WRITE   0x00

Definition at line 613 of file matroxfb_base.h.

#define M_OPMODE_DMA_LE   0x0000 /* little endian - no transformation */

Definition at line 616 of file matroxfb_base.h.

#define M_OPMODE_DMA_VECTOR_WRITE   0x08

Definition at line 615 of file matroxfb_base.h.

#define M_PALETTE_MASK   (M_RAMDAC_BASE+2)

Definition at line 659 of file matroxfb_base.h.

#define M_PITCH   0x1C8C

Definition at line 570 of file matroxfb_base.h.

#define M_PLNWT   0x1C1C

Definition at line 552 of file matroxfb_base.h.

#define M_RAMDAC_BASE   0x3C00

Definition at line 654 of file matroxfb_base.h.

#define M_RESET   0x1E40

Definition at line 607 of file matroxfb_base.h.

#define M_SEQ1   0x01

Definition at line 633 of file matroxfb_base.h.

#define M_SEQ1_SCROFF   0x20

Definition at line 634 of file matroxfb_base.h.

#define M_SEQ_DATA   0x1FC5

Definition at line 632 of file matroxfb_base.h.

#define M_SEQ_INDEX   0x1FC4

Definition at line 631 of file matroxfb_base.h.

#define M_SGN   0x1C58

Definition at line 557 of file matroxfb_base.h.

#define M_SRCORG   0x2CB4

Definition at line 651 of file matroxfb_base.h.

#define M_STATUS   0x1E14

Definition at line 601 of file matroxfb_base.h.

#define M_VCOUNT   0x1E20

Definition at line 605 of file matroxfb_base.h.

#define M_X_DATAREG   0x0A

Definition at line 662 of file matroxfb_base.h.

#define M_X_INDEX   0x00

Definition at line 661 of file matroxfb_base.h.

#define M_YBOT   0x1C9C

Definition at line 574 of file matroxfb_base.h.

#define M_YDST   0x1C90

Definition at line 571 of file matroxfb_base.h.

#define M_YDSTLEN   0x1C88

Definition at line 569 of file matroxfb_base.h.

#define M_YDSTORG   0x1C94

Definition at line 572 of file matroxfb_base.h.

#define M_YTOP   0x1C98

Definition at line 573 of file matroxfb_base.h.

#define matroxfb_DAC_lock ( )    spin_lock(&minfo->lock.DAC)

Definition at line 712 of file matroxfb_base.h.

#define matroxfb_DAC_lock_irqsave (   flags)    spin_lock_irqsave(&minfo->lock.DAC, flags)

Definition at line 714 of file matroxfb_base.h.

#define matroxfb_DAC_unlock ( )    spin_unlock(&minfo->lock.DAC)

Definition at line 713 of file matroxfb_base.h.

#define matroxfb_DAC_unlock_irqrestore (   flags)    spin_unlock_irqrestore(&minfo->lock.DAC, flags)

Definition at line 715 of file matroxfb_base.h.

#define MATROXFB_MAX_FB_DRIVERS   5

Definition at line 404 of file matroxfb_base.h.

#define MATROXFB_MAX_OUTPUTS   3

Definition at line 395 of file matroxfb_base.h.

#define MATROXFB_SRC_CRTC1   1

Definition at line 330 of file matroxfb_base.h.

#define MATROXFB_SRC_CRTC2   2

Definition at line 331 of file matroxfb_base.h.

#define MATROXFB_SRC_NONE   0

Definition at line 329 of file matroxfb_base.h.

#define mga_fifo (   n)    do {} while ((mga_inl(M_FIFOSTATUS) & 0xFF) < (n))

Definition at line 697 of file matroxfb_base.h.

#define mga_inb (   addr)    mga_readb(minfo->mmio.vbase, (addr))

Definition at line 689 of file matroxfb_base.h.

#define mga_inl (   addr)    mga_readl(minfo->mmio.vbase, (addr))

Definition at line 690 of file matroxfb_base.h.

#define MGA_IOREMAP_FB   MGA_IOREMAP_NOCACHE

Definition at line 193 of file matroxfb_base.h.

#define MGA_IOREMAP_MMIO   MGA_IOREMAP_NOCACHE

Definition at line 194 of file matroxfb_base.h.

#define MGA_IOREMAP_NOCACHE   1

Definition at line 191 of file matroxfb_base.h.

#define MGA_IOREMAP_NORMAL   0

Definition at line 190 of file matroxfb_base.h.

#define mga_outb (   addr,
  val 
)    mga_writeb(minfo->mmio.vbase, (addr), (val))

Definition at line 691 of file matroxfb_base.h.

#define mga_outl (   addr,
  val 
)    mga_writel(minfo->mmio.vbase, (addr), (val))

Definition at line 693 of file matroxfb_base.h.

#define mga_outw (   addr,
  val 
)    mga_writew(minfo->mmio.vbase, (addr), (val))

Definition at line 692 of file matroxfb_base.h.

#define mga_readr (   port,
  idx 
)    (mga_outb((port),(idx)), mga_inb((port)+1))

Definition at line 694 of file matroxfb_base.h.

#define mga_setr (   addr,
  port,
  val 
)    mga_outw(addr, ((val)<<8) | (port))

Definition at line 695 of file matroxfb_base.h.

#define MX_OPTION_BSWAP   0x00000000

Definition at line 669 of file matroxfb_base.h.

#define MX_VISUAL_DIRECTCOLOR   FB_VISUAL_TRUECOLOR

Definition at line 116 of file matroxfb_base.h.

#define MX_VISUAL_PSEUDOCOLOR   FB_VISUAL_PSEUDOCOLOR

Definition at line 117 of file matroxfb_base.h.

#define MX_VISUAL_TRUECOLOR   FB_VISUAL_DIRECTCOLOR

Definition at line 115 of file matroxfb_base.h.

#define PCI_MEMMISC_REG   0x58

Definition at line 546 of file matroxfb_base.h.

#define PCI_MGA_DATA   0x48

Definition at line 543 of file matroxfb_base.h.

#define PCI_MGA_INDEX   0x44

Definition at line 542 of file matroxfb_base.h.

#define PCI_OPTION2_REG   0x50

Definition at line 544 of file matroxfb_base.h.

#define PCI_OPTION3_REG   0x54

Definition at line 545 of file matroxfb_base.h.

#define PCI_OPTION_ENABLE_ROM   0x40000000

Definition at line 540 of file matroxfb_base.h.

#define PCI_OPTION_REG   0x40

Definition at line 539 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_GENERIC   0xFF00

Definition at line 103 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_MARVEL_G200_AGP   0xFF04

Definition at line 107 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_MGA_G100_AGP   0x1001

Definition at line 109 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_MGA_G100_PCI   0xFF05

Definition at line 108 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_MILLENIUM_G200_AGP   0xFF03

Definition at line 106 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_MILLENNIUM_G400_MAX_AGP   0x2179

Definition at line 110 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_MYSTIQUE_G200_AGP   0xFF02

Definition at line 105 of file matroxfb_base.h.

#define PCI_SS_ID_MATROX_PRODUCTIVA_G100_AGP   0xFF01

Definition at line 104 of file matroxfb_base.h.

#define PCI_SS_ID_SIEMENS_MGA_G100_AGP   0x001E /* 30 */

Definition at line 111 of file matroxfb_base.h.

#define PCI_SS_ID_SIEMENS_MGA_G200_AGP   0x0032 /* 50 */

Definition at line 112 of file matroxfb_base.h.

#define PCI_SS_VENDOR_ID_MATROX   PCI_VENDOR_ID_MATROX

Definition at line 99 of file matroxfb_base.h.

#define PCI_SS_VENDOR_ID_SIEMENS_NIXDORF   0x110A

Definition at line 96 of file matroxfb_base.h.

#define WaitTillIdle ( )    do {} while (mga_inl(M_STATUS) & 0x10000)

Definition at line 699 of file matroxfb_base.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
M_SYSTEM_PLL 
M_PIXEL_PLL_A 
M_PIXEL_PLL_B 
M_PIXEL_PLL_C 
M_VIDEO_PLL 

Definition at line 225 of file matroxfb_base.h.

enum mga_chip
Enumerator:
MGA_2064 
MGA_2164 
MGA_1064 
MGA_1164 
MGA_G100 
MGA_G200 
MGA_G400 
MGA_G450 
MGA_G550 

Definition at line 333 of file matroxfb_base.h.

Function Documentation

int matroxfb_DAC_in ( const struct matrox_fb_info minfo,
int  reg 
)

Definition at line 99 of file matroxfb_misc.c.

void matroxfb_DAC_out ( const struct matrox_fb_info minfo,
int  reg,
int  val 
)

Definition at line 92 of file matroxfb_misc.c.

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.

void matroxfb_var2my ( struct fb_var_screeninfo fvsi,
struct my_timming mt 
)

Definition at line 106 of file matroxfb_misc.c.

int matroxfb_wait_for_sync ( struct matrox_fb_info minfo,
u_int32_t  crtc 
)

Definition at line 268 of file matroxfb_base.c.