Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
atyfb_base.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/delay.h>
#include <linux/console.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/wait.h>
#include <linux/backlight.h>
#include <linux/reboot.h>
#include <linux/dmi.h>
#include <asm/io.h>
#include <linux/uaccess.h>
#include <video/mach64.h>
#include "atyfb.h"
#include "ati_ids.h"

Go to the source code of this file.

Data Structures

struct  pci_mmap_map
 

Macros

#define GUI_RESERVE   (1 * PAGE_SIZE)
 
#define FAIL(msg)
 
#define FAIL_MAX(msg, x, _max_)
 
#define DPRINTK(fmt, args...)
 
#define PRINTKI(fmt, args...)   printk(KERN_INFO "atyfb: " fmt, ## args)
 
#define PRINTKE(fmt, args...)   printk(KERN_ERR "atyfb: " fmt, ## args)
 
#define ATI_CHIP_88800GX   (M64F_GX)
 
#define ATI_CHIP_88800CX   (M64F_GX)
 
#define ATI_CHIP_264CT   (M64F_CT | M64F_INTEGRATED | M64F_CT_BUS | M64F_MAGIC_FIFO)
 
#define ATI_CHIP_264ET   (M64F_CT | M64F_INTEGRATED | M64F_CT_BUS | M64F_MAGIC_FIFO)
 
#define ATI_CHIP_264VT   (M64F_VT | M64F_INTEGRATED | M64F_VT_BUS | M64F_MAGIC_FIFO)
 
#define ATI_CHIP_264GT   (M64F_GT | M64F_INTEGRATED | M64F_MAGIC_FIFO | M64F_EXTRA_BRIGHT)
 
#define ATI_CHIP_264VTB   (M64F_VT | M64F_INTEGRATED | M64F_VT_BUS | M64F_GTB_DSP)
 
#define ATI_CHIP_264VT3   (M64F_VT | M64F_INTEGRATED | M64F_VT_BUS | M64F_GTB_DSP | M64F_SDRAM_MAGIC_PLL)
 
#define ATI_CHIP_264VT4   (M64F_VT | M64F_INTEGRATED | M64F_GTB_DSP)
 
#define ATI_CHIP_264LT   (M64F_GT | M64F_INTEGRATED | M64F_GTB_DSP)
 
#define ATI_MODERN_SET   (M64F_GT | M64F_INTEGRATED | M64F_GTB_DSP | M64F_EXTRA_BRIGHT)
 
#define ATI_CHIP_264GTB   (ATI_MODERN_SET | M64F_SDRAM_MAGIC_PLL)
 
#define ATI_CHIP_264LTG   (ATI_MODERN_SET | M64F_SDRAM_MAGIC_PLL)
 
#define ATI_CHIP_264GT2C   (ATI_MODERN_SET | M64F_SDRAM_MAGIC_PLL | M64F_HW_TRIPLE)
 
#define ATI_CHIP_264GTPRO   (ATI_MODERN_SET | M64F_SDRAM_MAGIC_PLL | M64F_HW_TRIPLE | M64F_FIFO_32 | M64F_RESET_3D)
 
#define ATI_CHIP_264LTPRO   (ATI_MODERN_SET | M64F_HW_TRIPLE | M64F_FIFO_32 | M64F_RESET_3D)
 
#define ATI_CHIP_264XL   (ATI_MODERN_SET | M64F_HW_TRIPLE | M64F_FIFO_32 | M64F_RESET_3D | M64F_XL_DLL | M64F_MFB_FORCE_4 | M64F_XL_MEM)
 
#define ATI_CHIP_MOBILITY   (ATI_MODERN_SET | M64F_HW_TRIPLE | M64F_FIFO_32 | M64F_RESET_3D | M64F_XL_DLL | M64F_MFB_FORCE_4 | M64F_XL_MEM | M64F_MOBIL_BUS)
 

Functions

 module_init (atyfb_init)
 
 module_exit (atyfb_exit)
 
 MODULE_DESCRIPTION ("FBDev driver for ATI Mach64 cards")
 
 MODULE_LICENSE ("GPL")
 
 module_param (noaccel, bool, 0)
 
 MODULE_PARM_DESC (noaccel,"bool: disable acceleration")
 
 module_param (vram, int, 0)
 
 MODULE_PARM_DESC (vram,"int: override size of video ram")
 
 module_param (pll, int, 0)
 
 MODULE_PARM_DESC (pll,"int: override video clock")
 
 module_param (mclk, int, 0)
 
 MODULE_PARM_DESC (mclk,"int: override memory clock")
 
 module_param (xclk, int, 0)
 
 MODULE_PARM_DESC (xclk,"int: override accelerated engine clock")
 
 module_param (comp_sync, int, 0)
 
 MODULE_PARM_DESC (comp_sync,"Set composite sync signal to low (0) or high (1)")
 
 module_param (mode, charp, 0)
 
 MODULE_PARM_DESC (mode,"Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\" ")
 

Macro Definition Documentation

#define ATI_CHIP_264CT   (M64F_CT | M64F_INTEGRATED | M64F_CT_BUS | M64F_MAGIC_FIFO)

Definition at line 342 of file atyfb_base.c.

#define ATI_CHIP_264ET   (M64F_CT | M64F_INTEGRATED | M64F_CT_BUS | M64F_MAGIC_FIFO)

Definition at line 343 of file atyfb_base.c.

#define ATI_CHIP_264GT   (M64F_GT | M64F_INTEGRATED | M64F_MAGIC_FIFO | M64F_EXTRA_BRIGHT)

Definition at line 346 of file atyfb_base.c.

#define ATI_CHIP_264GT2C   (ATI_MODERN_SET | M64F_SDRAM_MAGIC_PLL | M64F_HW_TRIPLE)

Definition at line 362 of file atyfb_base.c.

#define ATI_CHIP_264GTB   (ATI_MODERN_SET | M64F_SDRAM_MAGIC_PLL)

Definition at line 358 of file atyfb_base.c.

Definition at line 363 of file atyfb_base.c.

#define ATI_CHIP_264LT   (M64F_GT | M64F_INTEGRATED | M64F_GTB_DSP)

Definition at line 353 of file atyfb_base.c.

#define ATI_CHIP_264LTG   (ATI_MODERN_SET | M64F_SDRAM_MAGIC_PLL)

Definition at line 360 of file atyfb_base.c.

#define ATI_CHIP_264LTPRO   (ATI_MODERN_SET | M64F_HW_TRIPLE | M64F_FIFO_32 | M64F_RESET_3D)

Definition at line 364 of file atyfb_base.c.

#define ATI_CHIP_264VT   (M64F_VT | M64F_INTEGRATED | M64F_VT_BUS | M64F_MAGIC_FIFO)

Definition at line 345 of file atyfb_base.c.

#define ATI_CHIP_264VT3   (M64F_VT | M64F_INTEGRATED | M64F_VT_BUS | M64F_GTB_DSP | M64F_SDRAM_MAGIC_PLL)

Definition at line 349 of file atyfb_base.c.

#define ATI_CHIP_264VT4   (M64F_VT | M64F_INTEGRATED | M64F_GTB_DSP)

Definition at line 350 of file atyfb_base.c.

#define ATI_CHIP_264VTB   (M64F_VT | M64F_INTEGRATED | M64F_VT_BUS | M64F_GTB_DSP)

Definition at line 348 of file atyfb_base.c.

Definition at line 366 of file atyfb_base.c.

#define ATI_CHIP_88800CX   (M64F_GX)

Definition at line 340 of file atyfb_base.c.

#define ATI_CHIP_88800GX   (M64F_GX)

Definition at line 339 of file atyfb_base.c.

Definition at line 367 of file atyfb_base.c.

#define ATI_MODERN_SET   (M64F_GT | M64F_INTEGRATED | M64F_GTB_DSP | M64F_EXTRA_BRIGHT)

Definition at line 356 of file atyfb_base.c.

#define DPRINTK (   fmt,
  args... 
)

Definition at line 131 of file atyfb_base.c.

#define FAIL (   msg)
Value:
do { \
if (!(var->activate & FB_ACTIVATE_TEST)) \
printk(KERN_CRIT "atyfb: " msg "\n"); \
return -EINVAL; \
} while (0)

Definition at line 116 of file atyfb_base.c.

#define FAIL_MAX (   msg,
  x,
  _max_ 
)
Value:
do { \
if (x > _max_) { \
if (!(var->activate & FB_ACTIVATE_TEST)) \
printk(KERN_CRIT "atyfb: " msg " %x(%x)\n", x, _max_); \
return -EINVAL; \
} \
} while (0)

Definition at line 121 of file atyfb_base.c.

#define GUI_RESERVE   (1 * PAGE_SIZE)

Definition at line 113 of file atyfb_base.c.

#define PRINTKE (   fmt,
  args... 
)    printk(KERN_ERR "atyfb: " fmt, ## args)

Definition at line 135 of file atyfb_base.c.

#define PRINTKI (   fmt,
  args... 
)    printk(KERN_INFO "atyfb: " fmt, ## args)

Definition at line 134 of file atyfb_base.c.

Function Documentation

MODULE_DESCRIPTION ( "FBDev driver for ATI Mach64 cards )
module_exit ( atyfb_exit  )
module_init ( atyfb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( noaccel  ,
bool  ,
 
)
module_param ( vram  ,
int  ,
 
)
module_param ( pll  ,
int  ,
 
)
module_param ( mclk  ,
int  ,
 
)
module_param ( xclk  ,
int  ,
 
)
module_param ( comp_sync  ,
int  ,
 
)
module_param ( mode  ,
charp  ,
 
)
MODULE_PARM_DESC ( noaccel  ,
"bool: disable acceleration"   
)
MODULE_PARM_DESC ( vram  ,
"int: override size of video ram"   
)
MODULE_PARM_DESC ( pll  ,
"int: override video clock  
)
MODULE_PARM_DESC ( mclk  ,
"int: override memory clock  
)
MODULE_PARM_DESC ( xclk  ,
"int: override accelerated engine clock  
)
MODULE_PARM_DESC ( comp_sync  ,
"Set composite sync signal to low (0) or high (1)"   
)
MODULE_PARM_DESC ( mode  ,
"Specify resolution as \"<xres>x<yres>\" "  [-< bpp >][@< refresh >] 
)

Variable Documentation

int ecp_max

Definition at line 372 of file atyfb_base.c.

Definition at line 373 of file atyfb_base.c.

const char* name

Definition at line 371 of file atyfb_base.c.

u16 pci_id

Definition at line 370 of file atyfb_base.c.