Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
sstfb.c File Reference
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fb.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <asm/io.h>
#include <linux/uaccess.h>
#include <video/sstfb.h>

Go to the source code of this file.

Macros

#define DEFAULT_VIDEO_MODE   "640x480@60"
 
#define IS_VOODOO2(par)   ((par)->type == ID_VOODOO2)
 
#define sst_dbg_print_read_reg(reg, val)   do {} while(0)
 
#define sst_dbg_print_write_reg(reg, val)   do {} while(0)
 
#define sst_read(reg)   __sst_read(par->mmio_vbase, reg)
 
#define sst_write(reg, val)   __sst_write(par->mmio_vbase, reg, val)
 
#define sst_set_bits(reg, val)   __sst_set_bits(par->mmio_vbase, reg, val)
 
#define sst_unset_bits(reg, val)   __sst_unset_bits(par->mmio_vbase, reg, val)
 
#define sst_dac_read(reg)   __sst_dac_read(par->mmio_vbase, reg)
 
#define sst_dac_write(reg, val)   __sst_dac_write(par->mmio_vbase, reg, val)
 
#define dac_i_read(reg)   __dac_i_read(par->mmio_vbase, reg)
 
#define dac_i_write(reg, val)   __dac_i_write(par->mmio_vbase, reg, val)
 
#define sst_wait_idle()   __sst_wait_idle(par->mmio_vbase)
 

Enumerations

enum  { ID_VOODOO1 = 0, ID_VOODOO2 = 1 }
 

Functions

 module_init (sstfb_init)
 
 module_exit (sstfb_exit)
 
 MODULE_AUTHOR ("(c) 2000,2002 Ghozlane Toumi <[email protected]>")
 
 MODULE_DESCRIPTION ("FBDev driver for 3dfx Voodoo Graphics and Voodoo2 based video boards")
 
 MODULE_LICENSE ("GPL")
 
 module_param (mem, int, 0)
 
 MODULE_PARM_DESC (mem,"Size of frame buffer memory in MB (1, 2, 4 MB, default=autodetect)")
 
 module_param (vgapass, bool, 0)
 
 MODULE_PARM_DESC (vgapass,"Enable VGA PassThrough mode (0 or 1) (default=0)")
 
 module_param (clipping, bool, 0)
 
 MODULE_PARM_DESC (clipping,"Enable clipping (slower, safer) (0 or 1) (default=1)")
 
 module_param (gfxclk, int, 0)
 
 MODULE_PARM_DESC (gfxclk,"Force graphic chip frequency in MHz. DANGEROUS. (default=auto)")
 
 module_param (slowpci, bool, 0)
 
 MODULE_PARM_DESC (slowpci,"Uses slow PCI settings (0 or 1) (default=0)")
 
 module_param (mode_option, charp, 0)
 
 MODULE_PARM_DESC (mode_option,"Initial video mode (default="DEFAULT_VIDEO_MODE")")
 

Macro Definition Documentation

#define dac_i_read (   reg)    __dac_i_read(par->mmio_vbase, reg)

Definition at line 178 of file sstfb.c.

#define dac_i_write (   reg,
  val 
)    __dac_i_write(par->mmio_vbase, reg, val)

Definition at line 179 of file sstfb.c.

#define DEFAULT_VIDEO_MODE   "640x480@60"

Definition at line 105 of file sstfb.c.

#define IS_VOODOO2 (   par)    ((par)->type == ID_VOODOO2)

Definition at line 114 of file sstfb.c.

#define sst_dac_read (   reg)    __sst_dac_read(par->mmio_vbase, reg)

Definition at line 176 of file sstfb.c.

#define sst_dac_write (   reg,
  val 
)    __sst_dac_write(par->mmio_vbase, reg, val)

Definition at line 177 of file sstfb.c.

#define sst_dbg_print_read_reg (   reg,
  val 
)    do {} while(0)

Definition at line 163 of file sstfb.c.

#define sst_dbg_print_write_reg (   reg,
  val 
)    do {} while(0)

Definition at line 164 of file sstfb.c.

#define sst_read (   reg)    __sst_read(par->mmio_vbase, reg)

Definition at line 172 of file sstfb.c.

#define sst_set_bits (   reg,
  val 
)    __sst_set_bits(par->mmio_vbase, reg, val)

Definition at line 174 of file sstfb.c.

#define sst_unset_bits (   reg,
  val 
)    __sst_unset_bits(par->mmio_vbase, reg, val)

Definition at line 175 of file sstfb.c.

#define sst_wait_idle ( )    __sst_wait_idle(par->mmio_vbase)

Definition at line 213 of file sstfb.c.

#define sst_write (   reg,
  val 
)    __sst_write(par->mmio_vbase, reg, val)

Definition at line 173 of file sstfb.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ID_VOODOO1 
ID_VOODOO2 

Definition at line 109 of file sstfb.c.

Function Documentation

MODULE_AUTHOR ( "(c)  2000,
2002 Ghozlane Toumi< gtoumi @laposte.net >"   
)
MODULE_DESCRIPTION ( "FBDev driver for 3dfx Voodoo Graphics and Voodoo2 based video boards"  )
module_exit ( sstfb_exit  )
module_init ( sstfb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( mem  ,
int  ,
 
)
module_param ( vgapass  ,
bool  ,
 
)
module_param ( clipping  ,
bool  ,
 
)
module_param ( gfxclk  ,
int  ,
 
)
module_param ( slowpci  ,
bool  ,
 
)
module_param ( mode_option  ,
charp  ,
 
)
MODULE_PARM_DESC ( mem  ,
"Size of frame buffer memory in MB (1, 2, 4 MB, default=autodetect)"   
)
MODULE_PARM_DESC ( vgapass  ,
"Enable VGA PassThrough mode (0 or 1) (default=0)"   
)
MODULE_PARM_DESC ( clipping  ,
"Enable clipping (slower, safer) (0 or 1) (default=1)"   
)
MODULE_PARM_DESC ( gfxclk  ,
"Force graphic chip frequency in MHz. DANGEROUS. (default=auto)"   
)
MODULE_PARM_DESC ( slowpci  ,
"Uses slow PCI settings (0 or 1) (default=0)"   
)
MODULE_PARM_DESC ( mode_option  ,
"Initial video mode (default="DEFAULT_VIDEO_MODE")"   
)