Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nvidia.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/slab.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/console.h>
#include <linux/backlight.h>
#include "nv_local.h"
#include "nv_type.h"
#include "nv_proto.h"
#include "nv_dma.h"

Go to the source code of this file.

Macros

#define NVTRACE   if (0) printk
 
#define NVTRACE_ENTER(...)   NVTRACE("%s START\n", __func__)
 
#define NVTRACE_LEAVE(...)   NVTRACE("%s END\n", __func__)
 
#define assert(expr)
 
#define PFX   "nvidiafb: "
 
#define MAX_CURS   32
 
#define save_vga_x86(x)   do {} while (0)
 
#define restore_vga_x86(x)   do {} while (0)
 
#define nvidiafb_suspend   NULL
 
#define nvidiafb_resume   NULL
 

Functions

 MODULE_DEVICE_TABLE (pci, nvidiafb_pci_tbl)
 
 module_init (nvidiafb_init)
 
 module_exit (nvidiafb_exit)
 
 module_param (flatpanel, int, 0)
 
 MODULE_PARM_DESC (flatpanel,"Enables experimental flat panel support for some chipsets. ""(0=disabled, 1=enabled, -1=autodetect) (default=-1)")
 
 module_param (fpdither, int, 0)
 
 MODULE_PARM_DESC (fpdither,"Enables dithering of flat panel for 6 bits panels. ""(0=disabled, 1=enabled, -1=autodetect) (default=-1)")
 
 module_param (hwcur, int, 0)
 
 MODULE_PARM_DESC (hwcur,"Enables hardware cursor implementation. (0 or 1=enabled) ""(default=0)")
 
 module_param (noaccel, int, 0)
 
 MODULE_PARM_DESC (noaccel,"Disables hardware acceleration. (0 or 1=disable) ""(default=0)")
 
 module_param (noscale, int, 0)
 
 MODULE_PARM_DESC (noscale,"Disables screen scaleing. (0 or 1=disable) ""(default=0, do scaling)")
 
 module_param (paneltweak, int, 0)
 
 MODULE_PARM_DESC (paneltweak,"Tweak display settings for flatpanels. ""(default=0, no tweaks)")
 
 module_param (forceCRTC, int, 0)
 
 MODULE_PARM_DESC (forceCRTC,"Forces usage of a particular CRTC in case autodetection ""fails. (0 or 1) (default=autodetect)")
 
 module_param (vram, int, 0)
 
 MODULE_PARM_DESC (vram,"amount of framebuffer memory to remap in MiB""(default=0 - remap entire memory)")
 
 module_param (mode_option, charp, 0)
 
 MODULE_PARM_DESC (mode_option,"Specify initial video mode")
 
 module_param (bpp, int, 0)
 
 MODULE_PARM_DESC (bpp,"pixel width in bits""(default=8)")
 
 module_param (reverse_i2c, int, 0)
 
 MODULE_PARM_DESC (reverse_i2c,"reverse port assignment of the i2c bus")
 
 MODULE_AUTHOR ("Antonino Daplas")
 
 MODULE_DESCRIPTION ("Framebuffer driver for nVidia graphics chipset")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define assert (   expr)

Definition at line 57 of file nvidia.c.

#define MAX_CURS   32

Definition at line 63 of file nvidia.c.

#define nvidiafb_resume   NULL

Definition at line 1105 of file nvidia.c.

#define nvidiafb_suspend   NULL

Definition at line 1104 of file nvidia.c.

#define NVTRACE   if (0) printk

Definition at line 43 of file nvidia.c.

#define NVTRACE_ENTER (   ...)    NVTRACE("%s START\n", __func__)

Definition at line 46 of file nvidia.c.

#define NVTRACE_LEAVE (   ...)    NVTRACE("%s END\n", __func__)

Definition at line 47 of file nvidia.c.

#define PFX   "nvidiafb: "

Definition at line 60 of file nvidia.c.

#define restore_vga_x86 (   x)    do {} while (0)

Definition at line 1000 of file nvidia.c.

#define save_vga_x86 (   x)    do {} while (0)

Definition at line 999 of file nvidia.c.

Function Documentation

MODULE_AUTHOR ( "Antonino Daplas"  )
MODULE_DESCRIPTION ( "Framebuffer driver for nVidia graphics chipset )
MODULE_DEVICE_TABLE ( pci  ,
nvidiafb_pci_tbl   
)
module_exit ( nvidiafb_exit  )
module_init ( nvidiafb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( flatpanel  ,
int  ,
 
)
module_param ( fpdither  ,
int  ,
 
)
module_param ( hwcur  ,
int  ,
 
)
module_param ( noaccel  ,
int  ,
 
)
module_param ( noscale  ,
int  ,
 
)
module_param ( paneltweak  ,
int  ,
 
)
module_param ( forceCRTC  ,
int  ,
 
)
module_param ( vram  ,
int  ,
 
)
module_param ( mode_option  ,
charp  ,
 
)
module_param ( bpp  ,
int  ,
 
)
module_param ( reverse_i2c  ,
int  ,
 
)
MODULE_PARM_DESC ( flatpanel  ,
"Enables experimental flat panel support for some chipsets. ""(0=disabled, 1=enabled, -1=autodetect) (default=-1)"   
)
MODULE_PARM_DESC ( fpdither  ,
"Enables dithering of flat panel for 6 bits panels. ""(0=disabled, 1=enabled, -1=autodetect) (default=-1)"   
)
MODULE_PARM_DESC ( hwcur  ,
"Enables hardware cursor implementation. (0 or 1=enabled) ""(default=0)"   
)
MODULE_PARM_DESC ( noaccel  ,
"Disables hardware acceleration. (0 or 1=disable) ""(default=0)"   
)
MODULE_PARM_DESC ( noscale  ,
"Disables screen scaleing. (0 or 1=disable) ""(default=0, do scaling)"   
)
MODULE_PARM_DESC ( paneltweak  ,
"Tweak display settings for flatpanels. ""(default=0, no tweaks)"   
)
MODULE_PARM_DESC ( forceCRTC  ,
"Forces usage of a particular CRTC in case autodetection ""fails. (0 or 1) (default=autodetect)"   
)
MODULE_PARM_DESC ( vram  ,
"amount of framebuffer memory to remap in MiB""(default=0 - remap entire memory)"   
)
MODULE_PARM_DESC ( mode_option  ,
"Specify initial video mode  
)
MODULE_PARM_DESC ( bpp  ,
"pixel width in bits""(default=8)"   
)
MODULE_PARM_DESC ( reverse_i2c  ,
"reverse port assignment of the i2c bus  
)