Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
radeonfb.h File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/fb.h>
#include <asm/io.h>
#include <video/radeon.h>

Go to the source code of this file.

Data Structures

struct  pll_info
 
struct  radeon_regs
 
struct  panel_info
 
struct  radeonfb_info
 

Macros

#define IS_RV100_VARIANT(rinfo)
 
#define IS_R300_VARIANT(rinfo)
 
#define PRIMARY_MONITOR(rinfo)   (rinfo->mon1_type)
 
#define INREG8(addr)   readb((rinfo->mmio_base)+addr)
 
#define OUTREG8(addr, val)   writeb(val, (rinfo->mmio_base)+addr)
 
#define INREG16(addr)   readw((rinfo->mmio_base)+addr)
 
#define OUTREG16(addr, val)   writew(val, (rinfo->mmio_base)+addr)
 
#define INREG(addr)   readl((rinfo->mmio_base)+addr)
 
#define OUTREG(addr, val)   writel(val, (rinfo->mmio_base)+addr)
 
#define OUTREGP(addr, val, mask)   _OUTREGP(rinfo, addr, val,mask)
 
#define INPLL(addr)   __INPLL(rinfo, addr)
 
#define OUTPLL(index, val)   __OUTPLL(rinfo, index, val)
 
#define OUTPLLP(index, val, mask)   __OUTPLLP(rinfo, index, val, mask)
 
#define BIOS_IN8(v)   (readb(rinfo->bios_seg + (v)))
 
#define BIOS_IN16(v)
 
#define BIOS_IN32(v)
 
#define radeon_engine_idle()   _radeon_engine_idle(rinfo)
 
#define radeon_fifo_wait(entries)   _radeon_fifo_wait(rinfo,entries)
 
#define radeon_msleep(ms)   _radeon_msleep(rinfo,ms)
 

Typedefs

typedef void(* reinit_function_ptr )(struct radeonfb_info *rinfo)
 

Enumerations

enum  radeon_family {
  CHIP_R100 = 0, CHIP_RV100, CHIP_RS100, CHIP_RV200,
  CHIP_RS200, CHIP_R200, CHIP_RV250, CHIP_RS300,
  CHIP_RV280, CHIP_R300, CHIP_R350, CHIP_RV350,
  CHIP_RV380, CHIP_R420, CHIP_R423, CHIP_RV410,
  CHIP_RS400, CHIP_RS480, CHIP_RS600, CHIP_RS690,
  CHIP_RS740, CHIP_RV515, CHIP_R520, CHIP_RV530,
  CHIP_RV560, CHIP_RV570, CHIP_R580, CHIP_R600,
  CHIP_RV610, CHIP_RV630, CHIP_RV670, CHIP_RV620,
  CHIP_RV635, CHIP_RS780, CHIP_RS880, CHIP_RV770,
  CHIP_RV730, CHIP_RV710, CHIP_RV740, CHIP_CEDAR,
  CHIP_REDWOOD, CHIP_JUNIPER, CHIP_CYPRESS, CHIP_HEMLOCK,
  CHIP_PALM, CHIP_SUMO, CHIP_SUMO2, CHIP_BARTS,
  CHIP_TURKS, CHIP_CAICOS, CHIP_CAYMAN, CHIP_ARUBA,
  CHIP_TAHITI, CHIP_PITCAIRN, CHIP_VERDE, CHIP_LAST,
  CHIP_FAMILY_UNKNOW, CHIP_FAMILY_LEGACY, CHIP_FAMILY_RADEON, CHIP_FAMILY_RV100,
  CHIP_FAMILY_RS100, CHIP_FAMILY_RV200, CHIP_FAMILY_RS200, CHIP_FAMILY_R200,
  CHIP_FAMILY_RV250, CHIP_FAMILY_RS300, CHIP_FAMILY_RV280, CHIP_FAMILY_R300,
  CHIP_FAMILY_R350, CHIP_FAMILY_RV350, CHIP_FAMILY_RV380, CHIP_FAMILY_R420,
  CHIP_FAMILY_RC410, CHIP_FAMILY_RS400, CHIP_FAMILY_RS480, CHIP_FAMILY_LAST
}
 
enum  radeon_chip_flags {
  RADEON_FAMILY_MASK = 0x0000ffffUL, RADEON_FLAGS_MASK = 0xffff0000UL, RADEON_IS_MOBILITY = 0x00010000UL, RADEON_IS_IGP = 0x00020000UL,
  RADEON_SINGLE_CRTC = 0x00040000UL, RADEON_IS_AGP = 0x00080000UL, RADEON_HAS_HIERZ = 0x00100000UL, RADEON_IS_PCIE = 0x00200000UL,
  RADEON_NEW_MEMMAP = 0x00400000UL, RADEON_IS_PCI = 0x00800000UL, RADEON_IS_IGPGART = 0x01000000UL, CHIP_FAMILY_MASK = 0x0000ffffUL,
  CHIP_FLAGS_MASK = 0xffff0000UL, CHIP_IS_MOBILITY = 0x00010000UL, CHIP_IS_IGP = 0x00020000UL, CHIP_HAS_CRTC2 = 0x00040000UL
}
 
enum  radeon_errata { CHIP_ERRATA_R300_CG = 0x00000001, CHIP_ERRATA_PLL_DUMMYREADS = 0x00000002, CHIP_ERRATA_PLL_DELAY = 0x00000004 }
 
enum  radeon_montype {
  MT_NONE = 0, MT_CRT, MT_LCD, MT_DFP,
  MT_CTV, MT_STV
}
 
enum  ddc_type {
  ddc_none, ddc_monid, ddc_dvi, ddc_vga,
  ddc_crt2
}
 
enum  conn_type {
  conn_none, conn_proprietary, conn_crt, conn_DVI_I,
  conn_DVI_D
}
 
enum  radeon_pm_mode { radeon_pm_none = 0, radeon_pm_d2 = 0x00000001, radeon_pm_off = 0x00000002 }
 

Functions

void radeon_create_i2c_busses (struct radeonfb_info *rinfo)
 
void radeon_delete_i2c_busses (struct radeonfb_info *rinfo)
 
int radeon_probe_i2c_connector (struct radeonfb_info *rinfo, int conn, u8 **out_edid)
 
int radeonfb_pci_suspend (struct pci_dev *pdev, pm_message_t state)
 
int radeonfb_pci_resume (struct pci_dev *pdev)
 
void radeonfb_pm_init (struct radeonfb_info *rinfo, int dynclk, int ignore_devlist, int force_sleep)
 
void radeonfb_pm_exit (struct radeonfb_info *rinfo)
 
void radeon_probe_screens (struct radeonfb_info *rinfo, const char *monitor_layout, int ignore_edid)
 
void radeon_check_modes (struct radeonfb_info *rinfo, const char *mode_option)
 
int radeon_match_mode (struct radeonfb_info *rinfo, struct fb_var_screeninfo *dest, const struct fb_var_screeninfo *src)
 
void radeonfb_fillrect (struct fb_info *info, const struct fb_fillrect *region)
 
void radeonfb_copyarea (struct fb_info *info, const struct fb_copyarea *area)
 
void radeonfb_imageblit (struct fb_info *p, const struct fb_image *image)
 
int radeonfb_sync (struct fb_info *info)
 
void radeonfb_engine_init (struct radeonfb_info *rinfo)
 
void radeonfb_engine_reset (struct radeonfb_info *rinfo)
 
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 reg_only)
 

Macro Definition Documentation

#define BIOS_IN16 (   v)
Value:
(readb(rinfo->bios_seg + (v)) | \
(readb(rinfo->bios_seg + (v) + 1) << 8))

Definition at line 494 of file radeonfb.h.

#define BIOS_IN32 (   v)
Value:
(readb(rinfo->bios_seg + (v)) | \
(readb(rinfo->bios_seg + (v) + 1) << 8) | \
(readb(rinfo->bios_seg + (v) + 2) << 16) | \
(readb(rinfo->bios_seg + (v) + 3) << 24))

Definition at line 496 of file radeonfb.h.

#define BIOS_IN8 (   v)    (readb(rinfo->bios_seg + (v)))

Definition at line 493 of file radeonfb.h.

#define INPLL (   addr)    __INPLL(rinfo, addr)

Definition at line 488 of file radeonfb.h.

#define INREG (   addr)    readl((rinfo->mmio_base)+addr)

Definition at line 393 of file radeonfb.h.

#define INREG16 (   addr)    readw((rinfo->mmio_base)+addr)

Definition at line 391 of file radeonfb.h.

#define INREG8 (   addr)    readb((rinfo->mmio_base)+addr)

Definition at line 389 of file radeonfb.h.

#define IS_R300_VARIANT (   rinfo)
Value:
(((rinfo)->family == CHIP_FAMILY_R300) || \
((rinfo)->family == CHIP_FAMILY_RV350) || \
((rinfo)->family == CHIP_FAMILY_R350) || \
((rinfo)->family == CHIP_FAMILY_RV380) || \
((rinfo)->family == CHIP_FAMILY_R420) || \
((rinfo)->family == CHIP_FAMILY_RC410) || \
((rinfo)->family == CHIP_FAMILY_RS480))

Definition at line 70 of file radeonfb.h.

#define IS_RV100_VARIANT (   rinfo)
Value:
(((rinfo)->family == CHIP_FAMILY_RV100) || \
((rinfo)->family == CHIP_FAMILY_RV200) || \
((rinfo)->family == CHIP_FAMILY_RS100) || \
((rinfo)->family == CHIP_FAMILY_RS200) || \
((rinfo)->family == CHIP_FAMILY_RV250) || \
((rinfo)->family == CHIP_FAMILY_RV280) || \
((rinfo)->family == CHIP_FAMILY_RS300))

Definition at line 61 of file radeonfb.h.

#define OUTPLL (   index,
  val 
)    __OUTPLL(rinfo, index, val)

Definition at line 489 of file radeonfb.h.

#define OUTPLLP (   index,
  val,
  mask 
)    __OUTPLLP(rinfo, index, val, mask)

Definition at line 490 of file radeonfb.h.

#define OUTREG (   addr,
  val 
)    writel(val, (rinfo->mmio_base)+addr)

Definition at line 394 of file radeonfb.h.

#define OUTREG16 (   addr,
  val 
)    writew(val, (rinfo->mmio_base)+addr)

Definition at line 392 of file radeonfb.h.

#define OUTREG8 (   addr,
  val 
)    writeb(val, (rinfo->mmio_base)+addr)

Definition at line 390 of file radeonfb.h.

#define OUTREGP (   addr,
  val,
  mask 
)    _OUTREGP(rinfo, addr, val,mask)

Definition at line 410 of file radeonfb.h.

#define PRIMARY_MONITOR (   rinfo)    (rinfo->mon1_type)

Definition at line 367 of file radeonfb.h.

#define radeon_engine_idle ( )    _radeon_engine_idle(rinfo)

Definition at line 589 of file radeonfb.h.

#define radeon_fifo_wait (   entries)    _radeon_fifo_wait(rinfo,entries)

Definition at line 590 of file radeonfb.h.

#define radeon_msleep (   ms)    _radeon_msleep(rinfo,ms)

Definition at line 591 of file radeonfb.h.

Typedef Documentation

typedef void(* reinit_function_ptr)(struct radeonfb_info *rinfo)

Definition at line 285 of file radeonfb.h.

Enumeration Type Documentation

enum u8 conn_type
Enumerator:
conn_none 
conn_proprietary 
conn_crt 
conn_DVI_I 
conn_DVI_D 

Definition at line 125 of file radeonfb.h.

enum ddc_type
Enumerator:
ddc_none 
ddc_monid 
ddc_dvi 
ddc_vga 
ddc_crt2 

Definition at line 114 of file radeonfb.h.

Enumerator:
RADEON_FAMILY_MASK 
RADEON_FLAGS_MASK 
RADEON_IS_MOBILITY 
RADEON_IS_IGP 
RADEON_SINGLE_CRTC 
RADEON_IS_AGP 
RADEON_HAS_HIERZ 
RADEON_IS_PCIE 
RADEON_NEW_MEMMAP 
RADEON_IS_PCI 
RADEON_IS_IGPGART 
CHIP_FAMILY_MASK 
CHIP_FLAGS_MASK 
CHIP_IS_MOBILITY 
CHIP_IS_IGP 
CHIP_HAS_CRTC2 

Definition at line 81 of file radeonfb.h.

Enumerator:
CHIP_ERRATA_R300_CG 
CHIP_ERRATA_PLL_DUMMYREADS 
CHIP_ERRATA_PLL_DELAY 

Definition at line 92 of file radeonfb.h.

Enumerator:
CHIP_R100 
CHIP_RV100 
CHIP_RS100 
CHIP_RV200 
CHIP_RS200 
CHIP_R200 
CHIP_RV250 
CHIP_RS300 
CHIP_RV280 
CHIP_R300 
CHIP_R350 
CHIP_RV350 
CHIP_RV380 
CHIP_R420 
CHIP_R423 
CHIP_RV410 
CHIP_RS400 
CHIP_RS480 
CHIP_RS600 
CHIP_RS690 
CHIP_RS740 
CHIP_RV515 
CHIP_R520 
CHIP_RV530 
CHIP_RV560 
CHIP_RV570 
CHIP_R580 
CHIP_R600 
CHIP_RV610 
CHIP_RV630 
CHIP_RV670 
CHIP_RV620 
CHIP_RV635 
CHIP_RS780 
CHIP_RS880 
CHIP_RV770 
CHIP_RV730 
CHIP_RV710 
CHIP_RV740 
CHIP_CEDAR 
CHIP_REDWOOD 
CHIP_JUNIPER 
CHIP_CYPRESS 
CHIP_HEMLOCK 
CHIP_PALM 
CHIP_SUMO 
CHIP_SUMO2 
CHIP_BARTS 
CHIP_TURKS 
CHIP_CAICOS 
CHIP_CAYMAN 
CHIP_ARUBA 
CHIP_TAHITI 
CHIP_PITCAIRN 
CHIP_VERDE 
CHIP_LAST 
CHIP_FAMILY_UNKNOW 
CHIP_FAMILY_LEGACY 
CHIP_FAMILY_RADEON 
CHIP_FAMILY_RV100 
CHIP_FAMILY_RS100 
CHIP_FAMILY_RV200 
CHIP_FAMILY_RS200 
CHIP_FAMILY_R200 
CHIP_FAMILY_RV250 
CHIP_FAMILY_RS300 
CHIP_FAMILY_RV280 
CHIP_FAMILY_R300 
CHIP_FAMILY_R350 
CHIP_FAMILY_RV350 
CHIP_FAMILY_RV380 
CHIP_FAMILY_R420 
CHIP_FAMILY_RC410 
CHIP_FAMILY_RS400 
CHIP_FAMILY_RS480 
CHIP_FAMILY_LAST 

Definition at line 37 of file radeonfb.h.

Enumerator:
MT_NONE 
MT_CRT 
MT_LCD 
MT_DFP 
MT_CTV 
MT_STV 

Definition at line 102 of file radeonfb.h.

Enumerator:
radeon_pm_none 
radeon_pm_d2 
radeon_pm_off 

Definition at line 279 of file radeonfb.h.

Function Documentation

void radeon_check_modes ( struct radeonfb_info rinfo,
const char mode_option 
)

Definition at line 756 of file radeon_monitor.c.

void radeon_create_i2c_busses ( struct radeonfb_info rinfo)

Definition at line 99 of file radeon_i2c.c.

void radeon_delete_i2c_busses ( struct radeonfb_info rinfo)

Definition at line 121 of file radeon_i2c.c.

int radeon_match_mode ( struct radeonfb_info rinfo,
struct fb_var_screeninfo dest,
const struct fb_var_screeninfo src 
)

Definition at line 974 of file radeon_monitor.c.

int radeon_probe_i2c_connector ( struct radeonfb_info rinfo,
int  conn,
u8 **  out_edid 
)

Definition at line 140 of file radeon_i2c.c.

void radeon_probe_screens ( struct radeonfb_info rinfo,
const char monitor_layout,
int  ignore_edid 
)

Definition at line 436 of file radeon_monitor.c.

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  reg_only 
)

Definition at line 1353 of file radeon_base.c.

void radeonfb_copyarea ( struct fb_info info,
const struct fb_copyarea area 
)

Definition at line 134 of file radeon_accel.c.

void radeonfb_engine_init ( struct radeonfb_info rinfo)

Definition at line 257 of file radeon_accel.c.

void radeonfb_engine_reset ( struct radeonfb_info rinfo)

Definition at line 193 of file radeon_accel.c.

void radeonfb_fillrect ( struct fb_info info,
const struct fb_fillrect region 
)

Definition at line 67 of file radeon_accel.c.

void radeonfb_imageblit ( struct fb_info p,
const struct fb_image image 
)

Definition at line 171 of file radeon_accel.c.

int radeonfb_pci_resume ( struct pci_dev pdev)
int radeonfb_pci_suspend ( struct pci_dev pdev,
pm_message_t  state 
)
void radeonfb_pm_exit ( struct radeonfb_info rinfo)

Definition at line 2898 of file radeon_pm.c.

void radeonfb_pm_init ( struct radeonfb_info rinfo,
int  dynclk,
int  ignore_devlist,
int  force_sleep 
)

Definition at line 2805 of file radeon_pm.c.

int radeonfb_sync ( struct fb_info info)

Definition at line 182 of file radeon_accel.c.