Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
radeon_base.c File Reference
#include "radeonfb.h"
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/time.h>
#include <linux/fb.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/device.h>
#include <asm/io.h>
#include <linux/uaccess.h>
#include <video/radeon.h>
#include <linux/radeonfb.h>
#include "../edid.h"
#include "ati_ids.h"

Go to the source code of this file.

Data Structures

struct  reg_val
 

Macros

#define RADEON_VERSION   "0.2.0"
 
#define MAX_MAPPED_VRAM   (2048*2048*4)
 
#define MIN_MAPPED_VRAM   (1024*768*1)
 
#define CHIP_DEF(id, family, flags)   { PCI_VENDOR_ID_ATI, id, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (flags) | (CHIP_FAMILY_##family) }
 

Functions

 MODULE_DEVICE_TABLE (pci, radeonfb_pci_table)
 
int radeon_screen_blank (struct radeonfb_info *rinfo, int blank, int mode_switch)
 
void radeon_write_mode (struct radeonfb_info *rinfo, struct radeon_regs *mode, int regs_only)
 
 module_init (radeonfb_init)
 
 module_exit (radeonfb_exit)
 
 MODULE_AUTHOR ("Ani Joshi")
 
 MODULE_DESCRIPTION ("framebuffer driver for ATI Radeon chipset")
 
 MODULE_LICENSE ("GPL")
 
 module_param (noaccel, bool, 0)
 
 module_param (default_dynclk, int, 0)
 
 MODULE_PARM_DESC (default_dynclk,"int: -2=enable on mobility only,-1=do not change,0=off,1=on")
 
 MODULE_PARM_DESC (noaccel,"bool: disable acceleration")
 
 module_param (nomodeset, bool, 0)
 
 MODULE_PARM_DESC (nomodeset,"bool: disable actual setting of video mode")
 
 module_param (mirror, bool, 0)
 
 MODULE_PARM_DESC (mirror,"bool: mirror the display to both monitors")
 
 module_param (force_dfp, bool, 0)
 
 MODULE_PARM_DESC (force_dfp,"bool: force display to dfp")
 
 module_param (ignore_edid, bool, 0)
 
 MODULE_PARM_DESC (ignore_edid,"bool: Ignore EDID data when doing DDC probe")
 
 module_param (monitor_layout, charp, 0)
 
 MODULE_PARM_DESC (monitor_layout,"Specify monitor mapping (like XFree86)")
 
 module_param (force_measure_pll, bool, 0)
 
 MODULE_PARM_DESC (force_measure_pll,"Force measurement of PLL (debug)")
 
 module_param (panel_yres, int, 0)
 
 MODULE_PARM_DESC (panel_yres,"int: set panel yres")
 
 module_param (mode_option, charp, 0)
 
 MODULE_PARM_DESC (mode_option,"Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\" ")
 

Macro Definition Documentation

#define CHIP_DEF (   id,
  family,
  flags 
)    { PCI_VENDOR_ID_ATI, id, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (flags) | (CHIP_FAMILY_##family) }

Definition at line 101 of file radeon_base.c.

#define MAX_MAPPED_VRAM   (2048*2048*4)

Definition at line 98 of file radeon_base.c.

#define MIN_MAPPED_VRAM   (1024*768*1)

Definition at line 99 of file radeon_base.c.

#define RADEON_VERSION   "0.2.0"

Definition at line 53 of file radeon_base.c.

Function Documentation

MODULE_AUTHOR ( "Ani Joshi"  )
MODULE_DESCRIPTION ( "framebuffer driver for ATI Radeon chipset )
MODULE_DEVICE_TABLE ( pci  ,
radeonfb_pci_table   
)
module_exit ( radeonfb_exit  )
module_init ( radeonfb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( noaccel  ,
bool  ,
 
)
module_param ( default_dynclk  ,
int  ,
 
)
module_param ( nomodeset  ,
bool  ,
 
)
module_param ( mirror  ,
bool  ,
 
)
module_param ( force_dfp  ,
bool  ,
 
)
module_param ( ignore_edid  ,
bool  ,
 
)
module_param ( monitor_layout  ,
charp  ,
 
)
module_param ( force_measure_pll  ,
bool  ,
 
)
module_param ( panel_yres  ,
int  ,
 
)
module_param ( mode_option  ,
charp  ,
 
)
MODULE_PARM_DESC ( default_dynclk  ,
"int: -  2 = enable on mobility only,
1 = do not change,
= off 
)
MODULE_PARM_DESC ( noaccel  ,
"bool: disable acceleration"   
)
MODULE_PARM_DESC ( nomodeset  ,
"bool: disable actual setting of video mode  
)
MODULE_PARM_DESC ( mirror  ,
"bool: mirror the display to both monitors"   
)
MODULE_PARM_DESC ( force_dfp  ,
"bool: force display to dfp"   
)
MODULE_PARM_DESC ( ignore_edid  ,
"bool: Ignore EDID data when doing DDC probe"   
)
MODULE_PARM_DESC ( monitor_layout  ,
"Specify monitor mapping (like XFree86)"   
)
MODULE_PARM_DESC ( force_measure_pll  ,
"Force measurement of PLL (debug)"   
)
MODULE_PARM_DESC ( panel_yres  ,
"int: set panel yres"   
)
MODULE_PARM_DESC ( mode_option  ,
"Specify resolution as \"<xres>x<yres>\" "  [-< bpp >][@< refresh >] 
)
int radeon_screen_blank ( struct radeonfb_info rinfo,
int  blank,
int  mode_switch 
)

Definition at line 934 of file radeon_base.c.

void radeon_write_mode ( struct radeonfb_info rinfo,
struct radeon_regs mode,
int  regs_only 
)

Definition at line 1353 of file radeon_base.c.