Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
intelfbdrv.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/ioport.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/screen_info.h>
#include <asm/io.h>
#include "intelfb.h"
#include "intelfbhw.h"
#include "../edid.h"

Go to the source code of this file.

Macros

#define INTELFB_CLASS_MASK   ~0 << 8
 
#define OPT_EQUAL(opt, name)   (!strncmp(opt, name, strlen(name)))
 
#define OPT_INTVAL(opt, name)   simple_strtoul(opt + strlen(name) + 1, NULL, 0)
 
#define OPT_STRVAL(opt, name)   (opt + strlen(name))
 
#define set_mtrr(x)   WRN_MSG("MTRR is disabled in the kernel\n")
 
#define unset_mtrr(x)   do { } while (0)
 
#define bailout(dinfo)
 

Functions

 MODULE_AUTHOR ("David Dawes <[email protected]>, ""Sylvain Meyer <[email protected]>")
 
 MODULE_DESCRIPTION ("Framebuffer driver for Intel(R) "SUPPORTED_CHIPSETS" chipsets")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_DEVICE_TABLE (pci, intelfb_pci_table)
 
 module_param (accel, bool, S_IRUGO)
 
 MODULE_PARM_DESC (accel,"Enable hardware acceleration")
 
 module_param (vram, int, S_IRUGO)
 
 MODULE_PARM_DESC (vram,"System RAM to allocate to framebuffer in MiB")
 
 module_param (voffset, int, S_IRUGO)
 
 MODULE_PARM_DESC (voffset,"Offset of framebuffer in MiB")
 
 module_param (hwcursor, bool, S_IRUGO)
 
 MODULE_PARM_DESC (hwcursor,"Enable HW cursor")
 
 module_param (mtrr, bool, S_IRUGO)
 
 MODULE_PARM_DESC (mtrr,"Enable MTRR support")
 
 module_param (fixed, bool, S_IRUGO)
 
 MODULE_PARM_DESC (fixed,"Disable mode switching")
 
 module_param (noinit, bool, 0)
 
 MODULE_PARM_DESC (noinit,"Don't initialise graphics mode when loading")
 
 module_param (noregister, bool, 0)
 
 MODULE_PARM_DESC (noregister,"Don't register, just probe and exit (debug)")
 
 module_param (probeonly, bool, 0)
 
 MODULE_PARM_DESC (probeonly,"Do a minimal probe (debug)")
 
 module_param (idonly, bool, 0)
 
 MODULE_PARM_DESC (idonly,"Just identify without doing anything else (debug)")
 
 module_param (bailearly, int, 0)
 
 MODULE_PARM_DESC (bailearly,"Bail out early, depending on value (debug)")
 
 module_param (mode, charp, S_IRUGO)
 
 MODULE_PARM_DESC (mode,"Initial video mode \"<xres>x<yres>[-<depth>][@<refresh>]\"")
 
 module_init (intelfb_init)
 
 module_exit (intelfb_exit)
 
int __inline__ intelfb_var_to_depth (const struct fb_var_screeninfo *var)
 

Macro Definition Documentation

#define bailout (   dinfo)
Value:
do { \
DBG_MSG("bailout\n"); \
cleanup(dinfo); \
INF_MSG("Not going to register framebuffer, exiting...\n"); \
return -ENODEV; \
} while (0)

Definition at line 492 of file intelfbdrv.c.

#define INTELFB_CLASS_MASK   ~0 << 8

Definition at line 175 of file intelfbdrv.c.

#define OPT_EQUAL (   opt,
  name 
)    (!strncmp(opt, name, strlen(name)))

Definition at line 273 of file intelfbdrv.c.

#define OPT_INTVAL (   opt,
  name 
)    simple_strtoul(opt + strlen(name) + 1, NULL, 0)

Definition at line 274 of file intelfbdrv.c.

#define OPT_STRVAL (   opt,
  name 
)    (opt + strlen(name))

Definition at line 275 of file intelfbdrv.c.

#define set_mtrr (   x)    WRN_MSG("MTRR is disabled in the kernel\n")

Definition at line 435 of file intelfbdrv.c.

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

Definition at line 437 of file intelfbdrv.c.

Function Documentation

int __inline__ intelfb_var_to_depth ( const struct fb_var_screeninfo var)

Definition at line 943 of file intelfbdrv.c.

MODULE_AUTHOR ( "David Dawes <[email protected] ,
""Sylvain Meyer< sylvain.meyer @worldonline.fr >"   
)
MODULE_DESCRIPTION ( "Framebuffer driver for Intel(R) "SUPPORTED_CHIPSETS" chipsets"  )
MODULE_DEVICE_TABLE ( pci  ,
intelfb_pci_table   
)
module_exit ( intelfb_exit  )
module_init ( intelfb_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_param ( accel  ,
bool  ,
S_IRUGO   
)
module_param ( vram  ,
int  ,
S_IRUGO   
)
module_param ( voffset  ,
int  ,
S_IRUGO   
)
module_param ( hwcursor  ,
bool  ,
S_IRUGO   
)
module_param ( mtrr  ,
bool  ,
S_IRUGO   
)
module_param ( fixed  ,
bool  ,
S_IRUGO   
)
module_param ( noinit  ,
bool  ,
 
)
module_param ( noregister  ,
bool  ,
 
)
module_param ( probeonly  ,
bool  ,
 
)
module_param ( idonly  ,
bool  ,
 
)
module_param ( bailearly  ,
int  ,
 
)
module_param ( mode  ,
charp  ,
S_IRUGO   
)
MODULE_PARM_DESC ( accel  ,
"Enable hardware acceleration"   
)
MODULE_PARM_DESC ( vram  ,
"System RAM to allocate to framebuffer in MiB  
)
MODULE_PARM_DESC ( voffset  ,
"Offset of framebuffer in MiB  
)
MODULE_PARM_DESC ( hwcursor  ,
"Enable HW cursor"   
)
MODULE_PARM_DESC ( mtrr  ,
"Enable MTRR support  
)
MODULE_PARM_DESC ( fixed  ,
"Disable mode switching"   
)
MODULE_PARM_DESC ( noinit  ,
"Don't initialise graphics mode when loading"   
)
MODULE_PARM_DESC ( noregister  ,
"Don't  register,
just probe and exit(debug)"   
)
MODULE_PARM_DESC ( probeonly  ,
"Do a minimal probe (debug)"   
)
MODULE_PARM_DESC ( idonly  ,
"Just identify without doing anything else (debug)"   
)
MODULE_PARM_DESC ( bailearly  ,
"Bail out  early,
depending on value(debug)"   
)
MODULE_PARM_DESC ( mode  ,
"Initial video mode \"<xres>x<yres>\""  [-< depth >][@< refresh >] 
)