#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.
|
#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) |
|
|
| 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")") |
|
#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 DEFAULT_VIDEO_MODE "640x480@60" |
#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 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_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_wait_idle |
( |
| ) |
__sst_wait_idle(par->mmio_vbase) |
#define sst_write |
( |
|
reg, |
|
|
|
val |
|
) |
| __sst_write(par->mmio_vbase, reg, val) |
- Enumerator:
-
Definition at line 109 of file sstfb.c.
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_param |
( |
mem |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
vgapass |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
clipping |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
gfxclk |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
slowpci |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
mode_option |
, |
|
|
charp |
, |
|
|
0 |
|
|
) |
| |
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")" |
|
|
) |
| |