Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
s3fb.c File Reference
#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/delay.h>
#include <linux/fb.h>
#include <linux/svga.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/console.h>
#include <video/vga.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>

Go to the source code of this file.

Data Structures

struct  s3fb_info
 

Macros

#define CHIP_UNKNOWN   0x00
 
#define CHIP_732_TRIO32   0x01
 
#define CHIP_764_TRIO64   0x02
 
#define CHIP_765_TRIO64VP   0x03
 
#define CHIP_767_TRIO64UVP   0x04
 
#define CHIP_775_TRIO64V2_DX   0x05
 
#define CHIP_785_TRIO64V2_GX   0x06
 
#define CHIP_551_PLATO_PX   0x07
 
#define CHIP_M65_AURORA64VP   0x08
 
#define CHIP_325_VIRGE   0x09
 
#define CHIP_988_VIRGE_VX   0x0A
 
#define CHIP_375_VIRGE_DX   0x0B
 
#define CHIP_385_VIRGE_GX   0x0C
 
#define CHIP_357_VIRGE_GX2   0x0D
 
#define CHIP_359_VIRGE_GX2P   0x0E
 
#define CHIP_360_TRIO3D_1X   0x10
 
#define CHIP_362_TRIO3D_2X   0x11
 
#define CHIP_368_TRIO3D_2X   0x12
 
#define CHIP_365_TRIO3D   0x13
 
#define CHIP_260_VIRGE_MX   0x14
 
#define CHIP_XXX_TRIO   0x80
 
#define CHIP_XXX_TRIO64V2_DXGX   0x81
 
#define CHIP_XXX_VIRGE_DXGX   0x82
 
#define CHIP_36X_TRIO3D_1X_2X   0x83
 
#define CHIP_UNDECIDED_FLAG   0x80
 
#define CHIP_MASK   0xFF
 
#define MMIO_OFFSET   0x1000000
 
#define MMIO_SIZE   0x10000
 

Functions

 MODULE_AUTHOR ("(c) 2006-2007 Ondrej Zajicek <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("fbdev driver for S3 Trio/Virge")
 
 module_param (mode_option, charp, 0444)
 
 MODULE_PARM_DESC (mode_option,"Default video mode ('640x480-8@60', etc)")
 
 module_param_named (mode, mode_option, charp, 0444)
 
 MODULE_PARM_DESC (mode,"Default video mode ('640x480-8@60', etc) (deprecated)")
 
 module_param (fasttext, int, 0644)
 
 MODULE_PARM_DESC (fasttext,"Enable S3 fast text mode (1=enable, 0=disable, default=1)")
 
 MODULE_DEVICE_TABLE (pci, s3_devices)
 
 module_init (s3fb_init)
 
 module_exit (s3fb_cleanup)
 

Macro Definition Documentation

#define CHIP_260_VIRGE_MX   0x14

Definition at line 108 of file s3fb.c.

#define CHIP_325_VIRGE   0x09

Definition at line 98 of file s3fb.c.

#define CHIP_357_VIRGE_GX2   0x0D

Definition at line 102 of file s3fb.c.

#define CHIP_359_VIRGE_GX2P   0x0E

Definition at line 103 of file s3fb.c.

#define CHIP_360_TRIO3D_1X   0x10

Definition at line 104 of file s3fb.c.

#define CHIP_362_TRIO3D_2X   0x11

Definition at line 105 of file s3fb.c.

#define CHIP_365_TRIO3D   0x13

Definition at line 107 of file s3fb.c.

#define CHIP_368_TRIO3D_2X   0x12

Definition at line 106 of file s3fb.c.

#define CHIP_36X_TRIO3D_1X_2X   0x83

Definition at line 113 of file s3fb.c.

#define CHIP_375_VIRGE_DX   0x0B

Definition at line 100 of file s3fb.c.

#define CHIP_385_VIRGE_GX   0x0C

Definition at line 101 of file s3fb.c.

#define CHIP_551_PLATO_PX   0x07

Definition at line 96 of file s3fb.c.

#define CHIP_732_TRIO32   0x01

Definition at line 90 of file s3fb.c.

#define CHIP_764_TRIO64   0x02

Definition at line 91 of file s3fb.c.

#define CHIP_765_TRIO64VP   0x03

Definition at line 92 of file s3fb.c.

#define CHIP_767_TRIO64UVP   0x04

Definition at line 93 of file s3fb.c.

#define CHIP_775_TRIO64V2_DX   0x05

Definition at line 94 of file s3fb.c.

#define CHIP_785_TRIO64V2_GX   0x06

Definition at line 95 of file s3fb.c.

#define CHIP_988_VIRGE_VX   0x0A

Definition at line 99 of file s3fb.c.

#define CHIP_M65_AURORA64VP   0x08

Definition at line 97 of file s3fb.c.

#define CHIP_MASK   0xFF

Definition at line 116 of file s3fb.c.

#define CHIP_UNDECIDED_FLAG   0x80

Definition at line 115 of file s3fb.c.

#define CHIP_UNKNOWN   0x00

Definition at line 89 of file s3fb.c.

#define CHIP_XXX_TRIO   0x80

Definition at line 110 of file s3fb.c.

#define CHIP_XXX_TRIO64V2_DXGX   0x81

Definition at line 111 of file s3fb.c.

#define CHIP_XXX_VIRGE_DXGX   0x82

Definition at line 112 of file s3fb.c.

#define MMIO_OFFSET   0x1000000

Definition at line 118 of file s3fb.c.

#define MMIO_SIZE   0x10000

Definition at line 119 of file s3fb.c.

Function Documentation

MODULE_AUTHOR ( "(c) 2006-2007 Ondrej Zajicek <[email protected]>"  )
MODULE_DESCRIPTION ( "fbdev driver for S3 Trio/Virge"  )
MODULE_DEVICE_TABLE ( pci  ,
s3_devices   
)
module_exit ( s3fb_cleanup  )
module_init ( s3fb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( mode_option  ,
charp  ,
0444   
)
module_param ( fasttext  ,
int  ,
0644   
)
module_param_named ( mode  ,
mode_option  ,
charp  ,
0444   
)
MODULE_PARM_DESC ( mode_option  ,
"Default video mode ('640x480-8@60', etc)"   
)
MODULE_PARM_DESC ( mode  ,
"Default video mode ('640x480-8@60', etc) (deprecated)"   
)
MODULE_PARM_DESC ( fasttext  ,
"Enable S3 fast text mode (1=enable, 0=disable, default=1)"   
)