Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
radeon_mode.h File Reference
#include <drm/drm_crtc.h>
#include <drm/drm_edid.h>
#include <drm/drm_dp_helper.h>
#include <drm/drm_fixed.h>
#include <drm/drm_crtc_helper.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>

Go to the source code of this file.

Data Structures

struct  radeon_i2c_bus_rec
 
struct  radeon_tmds_pll
 
struct  radeon_pll
 
struct  radeon_i2c_chan
 
struct  radeon_afmt
 
struct  radeon_mode_info
 
struct  radeon_tv_regs
 
struct  radeon_atom_ss
 
struct  radeon_crtc
 
struct  radeon_encoder_primary_dac
 
struct  radeon_encoder_lvds
 
struct  radeon_encoder_tv_dac
 
struct  radeon_encoder_int_tmds
 
struct  radeon_encoder_ext_tmds
 
struct  radeon_encoder_atom_dig
 
struct  radeon_encoder_atom_dac
 
struct  radeon_encoder
 
struct  radeon_connector_atom_dig
 
struct  radeon_gpio_rec
 
struct  radeon_hpd
 
struct  radeon_router
 
struct  radeon_connector
 
struct  radeon_framebuffer
 

Macros

#define to_radeon_crtc(x)   container_of(x, struct radeon_crtc, base)
 
#define to_radeon_connector(x)   container_of(x, struct radeon_connector, base)
 
#define to_radeon_encoder(x)   container_of(x, struct radeon_encoder, base)
 
#define to_radeon_framebuffer(x)   container_of(x, struct radeon_framebuffer, base)
 
#define RADEON_MAX_I2C_BUS   16
 
#define RADEON_MAX_BIOS_CONNECTOR   16
 
#define RADEON_PLL_USE_BIOS_DIVS   (1 << 0)
 
#define RADEON_PLL_NO_ODD_POST_DIV   (1 << 1)
 
#define RADEON_PLL_USE_REF_DIV   (1 << 2)
 
#define RADEON_PLL_LEGACY   (1 << 3)
 
#define RADEON_PLL_PREFER_LOW_REF_DIV   (1 << 4)
 
#define RADEON_PLL_PREFER_HIGH_REF_DIV   (1 << 5)
 
#define RADEON_PLL_PREFER_LOW_FB_DIV   (1 << 6)
 
#define RADEON_PLL_PREFER_HIGH_FB_DIV   (1 << 7)
 
#define RADEON_PLL_PREFER_LOW_POST_DIV   (1 << 8)
 
#define RADEON_PLL_PREFER_HIGH_POST_DIV   (1 << 9)
 
#define RADEON_PLL_USE_FRAC_FB_DIV   (1 << 10)
 
#define RADEON_PLL_PREFER_CLOSEST_LOWER   (1 << 11)
 
#define RADEON_PLL_USE_POST_DIV   (1 << 12)
 
#define RADEON_PLL_IS_LCD   (1 << 13)
 
#define RADEON_PLL_PREFER_MINM_OVER_MAXP   (1 << 14)
 
#define RADEON_MAX_BL_LEVEL   0xFF
 
#define MAX_H_CODE_TIMING_LEN   32
 
#define MAX_V_CODE_TIMING_LEN   32
 
#define ENCODER_MODE_IS_DP(em)
 

Enumerations

enum  radeon_rmx_type { RMX_OFF, RMX_FULL, RMX_CENTER, RMX_ASPECT }
 
enum  radeon_tv_std {
  TV_STD_NTSC, TV_STD_PAL, TV_STD_PAL_M, TV_STD_PAL_60,
  TV_STD_NTSC_J, TV_STD_SCART_PAL, TV_STD_SECAM, TV_STD_PAL_CN,
  TV_STD_PAL_N
}
 
enum  radeon_underscan_type { UNDERSCAN_OFF, UNDERSCAN_ON, UNDERSCAN_AUTO }
 
enum  radeon_hpd_id {
  RADEON_HPD_1 = 0, RADEON_HPD_2, RADEON_HPD_3, RADEON_HPD_4,
  RADEON_HPD_5, RADEON_HPD_6, RADEON_HPD_NONE = 0xff
}
 
enum  radeon_connector_table {
  CT_NONE = 0, CT_GENERIC, CT_IBOOK, CT_POWERBOOK_EXTERNAL,
  CT_POWERBOOK_INTERNAL, CT_POWERBOOK_VGA, CT_MINI_EXTERNAL, CT_MINI_INTERNAL,
  CT_IMAC_G5_ISIGHT, CT_EMAC, CT_RN50_POWER, CT_MAC_X800,
  CT_MAC_G5_9600, CT_SAM440EP
}
 
enum  radeon_dvo_chip { DVO_SIL164, DVO_SIL1178 }
 

Functions

enum radeon_tv_std radeon_combios_get_tv_info (struct radeon_device *rdev)
 
enum radeon_tv_std radeon_atombios_get_tv_info (struct radeon_device *rdev)
 
struct drm_connectorradeon_get_connector_for_encoder (struct drm_encoder *encoder)
 
struct drm_connectorradeon_get_connector_for_encoder_init (struct drm_encoder *encoder)
 
bool radeon_dig_monitor_is_duallink (struct drm_encoder *encoder, u32 pixel_clock)
 
u16 radeon_encoder_get_dp_bridge_encoder_id (struct drm_encoder *encoder)
 
u16 radeon_connector_encoder_get_dp_bridge_encoder_id (struct drm_connector *connector)
 
bool radeon_connector_encoder_is_hbr2 (struct drm_connector *connector)
 
bool radeon_connector_is_dp12_capable (struct drm_connector *connector)
 
int radeon_get_monitor_bpc (struct drm_connector *connector)
 
void radeon_connector_hotplug (struct drm_connector *connector)
 
int radeon_dp_mode_valid_helper (struct drm_connector *connector, struct drm_display_mode *mode)
 
void radeon_dp_set_link_config (struct drm_connector *connector, const struct drm_display_mode *mode)
 
void radeon_dp_link_train (struct drm_encoder *encoder, struct drm_connector *connector)
 
bool radeon_dp_needs_link_train (struct radeon_connector *radeon_connector)
 
u8 radeon_dp_getsinktype (struct radeon_connector *radeon_connector)
 
bool radeon_dp_getdpcd (struct radeon_connector *radeon_connector)
 
int radeon_dp_get_panel_mode (struct drm_encoder *encoder, struct drm_connector *connector)
 
void atombios_dig_encoder_setup (struct drm_encoder *encoder, int action, int panel_mode)
 
void radeon_atom_encoder_init (struct radeon_device *rdev)
 
void radeon_atom_disp_eng_pll_init (struct radeon_device *rdev)
 
void atombios_dig_transmitter_setup (struct drm_encoder *encoder, int action, uint8_t lane_num, uint8_t lane_set)
 
void radeon_atom_ext_encoder_setup_ddc (struct drm_encoder *encoder)
 
struct drm_encoderradeon_get_external_encoder (struct drm_encoder *encoder)
 
int radeon_dp_i2c_aux_ch (struct i2c_adapter *adapter, int mode, u8 write_byte, u8 *read_byte)
 
void radeon_i2c_init (struct radeon_device *rdev)
 
void radeon_i2c_fini (struct radeon_device *rdev)
 
void radeon_combios_i2c_init (struct radeon_device *rdev)
 
void radeon_atombios_i2c_init (struct radeon_device *rdev)
 
void radeon_i2c_add (struct radeon_device *rdev, struct radeon_i2c_bus_rec *rec, const char *name)
 
struct radeon_i2c_chanradeon_i2c_lookup (struct radeon_device *rdev, struct radeon_i2c_bus_rec *i2c_bus)
 
struct radeon_i2c_chanradeon_i2c_create_dp (struct drm_device *dev, struct radeon_i2c_bus_rec *rec, const char *name)
 
struct radeon_i2c_chanradeon_i2c_create (struct drm_device *dev, struct radeon_i2c_bus_rec *rec, const char *name)
 
void radeon_i2c_destroy (struct radeon_i2c_chan *i2c)
 
void radeon_i2c_get_byte (struct radeon_i2c_chan *i2c_bus, u8 slave_addr, u8 addr, u8 *val)
 
void radeon_i2c_put_byte (struct radeon_i2c_chan *i2c, u8 slave_addr, u8 addr, u8 val)
 
void radeon_router_select_ddc_port (struct radeon_connector *radeon_connector)
 
void radeon_router_select_cd_port (struct radeon_connector *radeon_connector)
 
bool radeon_ddc_probe (struct radeon_connector *radeon_connector)
 
int radeon_ddc_get_modes (struct radeon_connector *radeon_connector)
 
struct drm_encoderradeon_best_encoder (struct drm_connector *connector)
 
bool radeon_atombios_get_ppll_ss_info (struct radeon_device *rdev, struct radeon_atom_ss *ss, int id)
 
bool radeon_atombios_get_asic_ss_info (struct radeon_device *rdev, struct radeon_atom_ss *ss, int id, u32 clock)
 
void radeon_compute_pll_legacy (struct radeon_pll *pll, uint64_t freq, uint32_t *dot_clock_p, uint32_t *fb_div_p, uint32_t *frac_fb_div_p, uint32_t *ref_div_p, uint32_t *post_div_p)
 
void radeon_compute_pll_avivo (struct radeon_pll *pll, u32 freq, u32 *dot_clock_p, u32 *fb_div_p, u32 *frac_fb_div_p, u32 *ref_div_p, u32 *post_div_p)
 
void radeon_setup_encoder_clones (struct drm_device *dev)
 
struct drm_encoderradeon_encoder_legacy_lvds_add (struct drm_device *dev, int bios_index)
 
struct drm_encoderradeon_encoder_legacy_primary_dac_add (struct drm_device *dev, int bios_index, int with_tv)
 
struct drm_encoderradeon_encoder_legacy_tv_dac_add (struct drm_device *dev, int bios_index, int with_tv)
 
struct drm_encoderradeon_encoder_legacy_tmds_int_add (struct drm_device *dev, int bios_index)
 
struct drm_encoderradeon_encoder_legacy_tmds_ext_add (struct drm_device *dev, int bios_index)
 
void atombios_dvo_setup (struct drm_encoder *encoder, int action)
 
void atombios_digital_setup (struct drm_encoder *encoder, int action)
 
int atombios_get_encoder_mode (struct drm_encoder *encoder)
 
bool atombios_set_edp_panel_power (struct drm_connector *connector, int action)
 
void radeon_encoder_set_active_device (struct drm_encoder *encoder)
 
void radeon_crtc_load_lut (struct drm_crtc *crtc)
 
int atombios_crtc_set_base (struct drm_crtc *crtc, int x, int y, struct drm_framebuffer *old_fb)
 
int atombios_crtc_set_base_atomic (struct drm_crtc *crtc, struct drm_framebuffer *fb, int x, int y, enum mode_set_atomic state)
 
int atombios_crtc_mode_set (struct drm_crtc *crtc, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode, int x, int y, struct drm_framebuffer *old_fb)
 
void atombios_crtc_dpms (struct drm_crtc *crtc, int mode)
 
int radeon_crtc_set_base (struct drm_crtc *crtc, int x, int y, struct drm_framebuffer *old_fb)
 
int radeon_crtc_set_base_atomic (struct drm_crtc *crtc, struct drm_framebuffer *fb, int x, int y, enum mode_set_atomic state)
 
int radeon_crtc_do_set_base (struct drm_crtc *crtc, struct drm_framebuffer *fb, int x, int y, int atomic)
 
int radeon_crtc_cursor_set (struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width, uint32_t height)
 
int radeon_crtc_cursor_move (struct drm_crtc *crtc, int x, int y)
 
int radeon_get_crtc_scanoutpos (struct drm_device *dev, int crtc, int *vpos, int *hpos)
 
bool radeon_combios_check_hardcoded_edid (struct radeon_device *rdev)
 
struct edidradeon_bios_get_hardcoded_edid (struct radeon_device *rdev)
 
bool radeon_atom_get_clock_info (struct drm_device *dev)
 
bool radeon_combios_get_clock_info (struct drm_device *dev)
 
struct radeon_encoder_atom_digradeon_atombios_get_lvds_info (struct radeon_encoder *encoder)
 
bool radeon_atombios_get_tmds_info (struct radeon_encoder *encoder, struct radeon_encoder_int_tmds *tmds)
 
bool radeon_legacy_get_tmds_info_from_combios (struct radeon_encoder *encoder, struct radeon_encoder_int_tmds *tmds)
 
bool radeon_legacy_get_tmds_info_from_table (struct radeon_encoder *encoder, struct radeon_encoder_int_tmds *tmds)
 
bool radeon_legacy_get_ext_tmds_info_from_combios (struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds)
 
bool radeon_legacy_get_ext_tmds_info_from_table (struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds)
 
struct radeon_encoder_primary_dacradeon_atombios_get_primary_dac_info (struct radeon_encoder *encoder)
 
struct radeon_encoder_tv_dacradeon_atombios_get_tv_dac_info (struct radeon_encoder *encoder)
 
struct radeon_encoder_lvdsradeon_combios_get_lvds_info (struct radeon_encoder *encoder)
 
void radeon_combios_get_ext_tmds_info (struct radeon_encoder *encoder)
 
struct radeon_encoder_tv_dacradeon_combios_get_tv_dac_info (struct radeon_encoder *encoder)
 
struct radeon_encoder_primary_dacradeon_combios_get_primary_dac_info (struct radeon_encoder *encoder)
 
bool radeon_combios_external_tmds_setup (struct drm_encoder *encoder)
 
void radeon_external_tmds_setup (struct drm_encoder *encoder)
 
void radeon_combios_output_lock (struct drm_encoder *encoder, bool lock)
 
void radeon_combios_initialize_bios_scratch_regs (struct drm_device *dev)
 
void radeon_atom_output_lock (struct drm_encoder *encoder, bool lock)
 
void radeon_atom_initialize_bios_scratch_regs (struct drm_device *dev)
 
void radeon_save_bios_scratch_regs (struct radeon_device *rdev)
 
void radeon_restore_bios_scratch_regs (struct radeon_device *rdev)
 
void radeon_atombios_encoder_crtc_scratch_regs (struct drm_encoder *encoder, int crtc)
 
void radeon_atombios_encoder_dpms_scratch_regs (struct drm_encoder *encoder, bool on)
 
void radeon_combios_encoder_crtc_scratch_regs (struct drm_encoder *encoder, int crtc)
 
void radeon_combios_encoder_dpms_scratch_regs (struct drm_encoder *encoder, bool on)
 
void radeon_crtc_fb_gamma_set (struct drm_crtc *crtc, u16 red, u16 green, u16 blue, int regno)
 
void radeon_crtc_fb_gamma_get (struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, int regno)
 
int radeon_framebuffer_init (struct drm_device *dev, struct radeon_framebuffer *rfb, struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *obj)
 
int radeonfb_remove (struct drm_device *dev, struct drm_framebuffer *fb)
 
bool radeon_get_legacy_connector_info_from_bios (struct drm_device *dev)
 
bool radeon_get_legacy_connector_info_from_table (struct drm_device *dev)
 
void radeon_atombios_init_crtc (struct drm_device *dev, struct radeon_crtc *radeon_crtc)
 
void radeon_legacy_init_crtc (struct drm_device *dev, struct radeon_crtc *radeon_crtc)
 
void radeon_get_clock_info (struct drm_device *dev)
 
bool radeon_get_atom_connector_info_from_object_table (struct drm_device *dev)
 
bool radeon_get_atom_connector_info_from_supported_devices_table (struct drm_device *dev)
 
void radeon_enc_destroy (struct drm_encoder *encoder)
 
void radeon_copy_fb (struct drm_device *dev, struct drm_gem_object *dst_obj)
 
void radeon_combios_asic_init (struct drm_device *dev)
 
bool radeon_crtc_scaling_mode_fixup (struct drm_crtc *crtc, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)
 
void radeon_panel_mode_fixup (struct drm_encoder *encoder, struct drm_display_mode *adjusted_mode)
 
void atom_rv515_force_tv_scaler (struct radeon_device *rdev, struct radeon_crtc *radeon_crtc)
 
void radeon_legacy_tv_adjust_crtc_reg (struct drm_encoder *encoder, uint32_t *h_total_disp, uint32_t *h_sync_strt_wid, uint32_t *v_total_disp, uint32_t *v_sync_strt_wid)
 
void radeon_legacy_tv_adjust_pll1 (struct drm_encoder *encoder, uint32_t *htotal_cntl, uint32_t *ppll_ref_div, uint32_t *ppll_div_3, uint32_t *pixclks_cntl)
 
void radeon_legacy_tv_adjust_pll2 (struct drm_encoder *encoder, uint32_t *htotal2_cntl, uint32_t *p2pll_ref_div, uint32_t *p2pll_div_0, uint32_t *pixclks_cntl)
 
void radeon_legacy_tv_mode_set (struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)
 
int radeon_fbdev_init (struct radeon_device *rdev)
 
void radeon_fbdev_fini (struct radeon_device *rdev)
 
void radeon_fbdev_set_suspend (struct radeon_device *rdev, int state)
 
int radeon_fbdev_total_size (struct radeon_device *rdev)
 
bool radeon_fbdev_robj_is_fb (struct radeon_device *rdev, struct radeon_bo *robj)
 
void radeon_fb_output_poll_changed (struct radeon_device *rdev)
 
void radeon_crtc_handle_flip (struct radeon_device *rdev, int crtc_id)
 
int radeon_align_pitch (struct radeon_device *rdev, int width, int bpp, bool tiled)
 

Macro Definition Documentation

#define ENCODER_MODE_IS_DP (   em)
Value:

Definition at line 491 of file radeon_mode.h.

#define MAX_H_CODE_TIMING_LEN   32

Definition at line 271 of file radeon_mode.h.

#define MAX_V_CODE_TIMING_LEN   32

Definition at line 272 of file radeon_mode.h.

#define RADEON_MAX_BIOS_CONNECTOR   16

Definition at line 134 of file radeon_mode.h.

#define RADEON_MAX_BL_LEVEL   0xFF

Definition at line 260 of file radeon_mode.h.

#define RADEON_MAX_I2C_BUS   16

Definition at line 84 of file radeon_mode.h.

#define RADEON_PLL_IS_LCD   (1 << 13)

Definition at line 150 of file radeon_mode.h.

#define RADEON_PLL_LEGACY   (1 << 3)

Definition at line 140 of file radeon_mode.h.

#define RADEON_PLL_NO_ODD_POST_DIV   (1 << 1)

Definition at line 138 of file radeon_mode.h.

#define RADEON_PLL_PREFER_CLOSEST_LOWER   (1 << 11)

Definition at line 148 of file radeon_mode.h.

#define RADEON_PLL_PREFER_HIGH_FB_DIV   (1 << 7)

Definition at line 144 of file radeon_mode.h.

#define RADEON_PLL_PREFER_HIGH_POST_DIV   (1 << 9)

Definition at line 146 of file radeon_mode.h.

#define RADEON_PLL_PREFER_HIGH_REF_DIV   (1 << 5)

Definition at line 142 of file radeon_mode.h.

#define RADEON_PLL_PREFER_LOW_FB_DIV   (1 << 6)

Definition at line 143 of file radeon_mode.h.

#define RADEON_PLL_PREFER_LOW_POST_DIV   (1 << 8)

Definition at line 145 of file radeon_mode.h.

#define RADEON_PLL_PREFER_LOW_REF_DIV   (1 << 4)

Definition at line 141 of file radeon_mode.h.

#define RADEON_PLL_PREFER_MINM_OVER_MAXP   (1 << 14)

Definition at line 151 of file radeon_mode.h.

#define RADEON_PLL_USE_BIOS_DIVS   (1 << 0)

Definition at line 137 of file radeon_mode.h.

#define RADEON_PLL_USE_FRAC_FB_DIV   (1 << 10)

Definition at line 147 of file radeon_mode.h.

#define RADEON_PLL_USE_POST_DIV   (1 << 12)

Definition at line 149 of file radeon_mode.h.

#define RADEON_PLL_USE_REF_DIV   (1 << 2)

Definition at line 139 of file radeon_mode.h.

#define to_radeon_connector (   x)    container_of(x, struct radeon_connector, base)

Definition at line 45 of file radeon_mode.h.

#define to_radeon_crtc (   x)    container_of(x, struct radeon_crtc, base)

Definition at line 44 of file radeon_mode.h.

#define to_radeon_encoder (   x)    container_of(x, struct radeon_encoder, base)

Definition at line 46 of file radeon_mode.h.

#define to_radeon_framebuffer (   x)    container_of(x, struct radeon_framebuffer, base)

Definition at line 47 of file radeon_mode.h.

Enumeration Type Documentation

Enumerator:
CT_NONE 
CT_GENERIC 
CT_IBOOK 
CT_POWERBOOK_EXTERNAL 
CT_POWERBOOK_INTERNAL 
CT_POWERBOOK_VGA 
CT_MINI_EXTERNAL 
CT_MINI_INTERNAL 
CT_IMAC_G5_ISIGHT 
CT_EMAC 
CT_RN50_POWER 
CT_MAC_X800 
CT_MAC_G5_9600 
CT_SAM440EP 

Definition at line 198 of file radeon_mode.h.

Enumerator:
DVO_SIL164 
DVO_SIL1178 

Definition at line 215 of file radeon_mode.h.

Enumerator:
RADEON_HPD_1 
RADEON_HPD_2 
RADEON_HPD_3 
RADEON_HPD_4 
RADEON_HPD_5 
RADEON_HPD_6 
RADEON_HPD_NONE 

Definition at line 74 of file radeon_mode.h.

Enumerator:
RMX_OFF 
RMX_FULL 
RMX_CENTER 
RMX_ASPECT 

Definition at line 49 of file radeon_mode.h.

Enumerator:
TV_STD_NTSC 
TV_STD_PAL 
TV_STD_PAL_M 
TV_STD_PAL_60 
TV_STD_NTSC_J 
TV_STD_SCART_PAL 
TV_STD_SECAM 
TV_STD_PAL_CN 
TV_STD_PAL_N 

Definition at line 56 of file radeon_mode.h.

Enumerator:
UNDERSCAN_OFF 
UNDERSCAN_ON 
UNDERSCAN_AUTO 

Definition at line 68 of file radeon_mode.h.

Function Documentation

void atom_rv515_force_tv_scaler ( struct radeon_device rdev,
struct radeon_crtc radeon_crtc 
)

Definition at line 547 of file rv515.c.

void atombios_crtc_dpms ( struct drm_crtc crtc,
int  mode 
)

Definition at line 244 of file atombios_crtc.c.

int atombios_crtc_mode_set ( struct drm_crtc crtc,
struct drm_display_mode mode,
struct drm_display_mode adjusted_mode,
int  x,
int  y,
struct drm_framebuffer old_fb 
)

Definition at line 1739 of file atombios_crtc.c.

int atombios_crtc_set_base ( struct drm_crtc crtc,
int  x,
int  y,
struct drm_framebuffer old_fb 
)

Definition at line 1431 of file atombios_crtc.c.

int atombios_crtc_set_base_atomic ( struct drm_crtc crtc,
struct drm_framebuffer fb,
int  x,
int  y,
enum mode_set_atomic  state 
)

Definition at line 1445 of file atombios_crtc.c.

void atombios_dig_encoder_setup ( struct drm_encoder encoder,
int  action,
int  panel_mode 
)

Definition at line 797 of file atombios_encoders.c.

void atombios_dig_transmitter_setup ( struct drm_encoder encoder,
int  action,
uint8_t  lane_num,
uint8_t  lane_set 
)

Definition at line 948 of file atombios_encoders.c.

void atombios_digital_setup ( struct drm_encoder encoder,
int  action 
)

Definition at line 555 of file atombios_encoders.c.

void atombios_dvo_setup ( struct drm_encoder encoder,
int  action 
)

Definition at line 490 of file atombios_encoders.c.

int atombios_get_encoder_mode ( struct drm_encoder encoder)

Definition at line 668 of file atombios_encoders.c.

bool atombios_set_edp_panel_power ( struct drm_connector connector,
int  action 
)

Definition at line 1311 of file atombios_encoders.c.

int radeon_align_pitch ( struct radeon_device rdev,
int  width,
int  bpp,
bool  tiled 
)

Definition at line 66 of file radeon_fb.c.

void radeon_atom_disp_eng_pll_init ( struct radeon_device rdev)

Definition at line 1719 of file atombios_crtc.c.

void radeon_atom_encoder_init ( struct radeon_device rdev)

Definition at line 2071 of file atombios_encoders.c.

void radeon_atom_ext_encoder_setup_ddc ( struct drm_encoder encoder)

Definition at line 2301 of file atombios_encoders.c.

bool radeon_atom_get_clock_info ( struct drm_device dev)

Definition at line 1119 of file radeon_atombios.c.

void radeon_atom_initialize_bios_scratch_regs ( struct drm_device dev)

Definition at line 2793 of file radeon_atombios.c.

void radeon_atom_output_lock ( struct drm_encoder encoder,
bool  lock 
)

Definition at line 2850 of file radeon_atombios.c.

void radeon_atombios_encoder_crtc_scratch_regs ( struct drm_encoder encoder,
int  crtc 
)

Definition at line 3063 of file radeon_atombios.c.

void radeon_atombios_encoder_dpms_scratch_regs ( struct drm_encoder encoder,
bool  on 
)

Definition at line 3118 of file radeon_atombios.c.

bool radeon_atombios_get_asic_ss_info ( struct radeon_device rdev,
struct radeon_atom_ss ss,
int  id,
u32  clock 
)

Definition at line 1458 of file radeon_atombios.c.

struct radeon_encoder_atom_dig* radeon_atombios_get_lvds_info ( struct radeon_encoder encoder)
read

Definition at line 1536 of file radeon_atombios.c.

bool radeon_atombios_get_ppll_ss_info ( struct radeon_device rdev,
struct radeon_atom_ss ss,
int  id 
)

Definition at line 1356 of file radeon_atombios.c.

struct radeon_encoder_primary_dac* radeon_atombios_get_primary_dac_info ( struct radeon_encoder encoder)
read

Definition at line 1676 of file radeon_atombios.c.

bool radeon_atombios_get_tmds_info ( struct radeon_encoder encoder,
struct radeon_encoder_int_tmds tmds 
)

Definition at line 1307 of file radeon_atombios.c.

struct radeon_encoder_tv_dac* radeon_atombios_get_tv_dac_info ( struct radeon_encoder encoder)
read

Definition at line 1860 of file radeon_atombios.c.

enum radeon_tv_std radeon_atombios_get_tv_info ( struct radeon_device rdev)

Definition at line 1802 of file radeon_atombios.c.

void radeon_atombios_i2c_init ( struct radeon_device rdev)

Definition at line 185 of file radeon_atombios.c.

void radeon_atombios_init_crtc ( struct drm_device dev,
struct radeon_crtc radeon_crtc 
)

Definition at line 1893 of file atombios_crtc.c.

struct drm_encoder* radeon_best_encoder ( struct drm_connector connector)
read

Definition at line 1067 of file radeon_i2c.c.

struct edid* radeon_bios_get_hardcoded_edid ( struct radeon_device rdev)
read

Definition at line 478 of file radeon_combios.c.

void radeon_combios_asic_init ( struct drm_device dev)

Definition at line 3322 of file radeon_combios.c.

bool radeon_combios_check_hardcoded_edid ( struct radeon_device rdev)

Definition at line 449 of file radeon_combios.c.

void radeon_combios_encoder_crtc_scratch_regs ( struct drm_encoder encoder,
int  crtc 
)

Definition at line 3543 of file radeon_combios.c.

void radeon_combios_encoder_dpms_scratch_regs ( struct drm_encoder encoder,
bool  on 
)

Definition at line 3578 of file radeon_combios.c.

bool radeon_combios_external_tmds_setup ( struct drm_encoder encoder)

Definition at line 2879 of file radeon_combios.c.

bool radeon_combios_get_clock_info ( struct drm_device dev)

Definition at line 809 of file radeon_combios.c.

void radeon_combios_get_ext_tmds_info ( struct radeon_encoder encoder)
struct radeon_encoder_lvds* radeon_combios_get_lvds_info ( struct radeon_encoder encoder)
read

Definition at line 1234 of file radeon_combios.c.

struct radeon_encoder_primary_dac* radeon_combios_get_primary_dac_info ( struct radeon_encoder encoder)
read

Definition at line 938 of file radeon_combios.c.

struct radeon_encoder_tv_dac* radeon_combios_get_tv_dac_info ( struct radeon_encoder encoder)
read

Definition at line 1074 of file radeon_combios.c.

enum radeon_tv_std radeon_combios_get_tv_info ( struct radeon_device rdev)

Definition at line 980 of file radeon_combios.c.

void radeon_combios_i2c_init ( struct radeon_device rdev)

Definition at line 750 of file radeon_combios.c.

void radeon_combios_initialize_bios_scratch_regs ( struct drm_device dev)

Definition at line 3399 of file radeon_combios.c.

void radeon_combios_output_lock ( struct drm_encoder encoder,
bool  lock 
)

Definition at line 3423 of file radeon_combios.c.

void radeon_compute_pll_avivo ( struct radeon_pll pll,
u32  freq,
u32 dot_clock_p,
u32 fb_div_p,
u32 frac_fb_div_p,
u32 ref_div_p,
u32 post_div_p 
)

Definition at line 797 of file radeon_display.c.

void radeon_compute_pll_legacy ( struct radeon_pll pll,
uint64_t  freq,
uint32_t dot_clock_p,
uint32_t fb_div_p,
uint32_t frac_fb_div_p,
uint32_t ref_div_p,
uint32_t post_div_p 
)

Definition at line 865 of file radeon_display.c.

u16 radeon_connector_encoder_get_dp_bridge_encoder_id ( struct drm_connector connector)

Definition at line 1287 of file radeon_connectors.c.

bool radeon_connector_encoder_is_hbr2 ( struct drm_connector connector)

Definition at line 1317 of file radeon_connectors.c.

void radeon_connector_hotplug ( struct drm_connector connector)

Definition at line 43 of file radeon_connectors.c.

bool radeon_connector_is_dp12_capable ( struct drm_connector connector)

Definition at line 1342 of file radeon_connectors.c.

void radeon_copy_fb ( struct drm_device dev,
struct drm_gem_object *  dst_obj 
)
int radeon_crtc_cursor_move ( struct drm_crtc crtc,
int  x,
int  y 
)

Definition at line 219 of file radeon_cursor.c.

int radeon_crtc_cursor_set ( struct drm_crtc crtc,
struct drm_file *  file_priv,
uint32_t  handle,
uint32_t  width,
uint32_t  height 
)

Definition at line 149 of file radeon_cursor.c.

int radeon_crtc_do_set_base ( struct drm_crtc crtc,
struct drm_framebuffer fb,
int  x,
int  y,
int  atomic 
)

Definition at line 367 of file radeon_legacy_crtc.c.

void radeon_crtc_fb_gamma_get ( struct drm_crtc crtc,
u16 red,
u16 green,
u16 blue,
int  regno 
)

Gets the color ramps on behalf of fbcon

Definition at line 213 of file radeon_display.c.

void radeon_crtc_fb_gamma_set ( struct drm_crtc crtc,
u16  red,
u16  green,
u16  blue,
int  regno 
)

Sets the color ramps on behalf of fbcon

Definition at line 202 of file radeon_display.c.

void radeon_crtc_handle_flip ( struct radeon_device rdev,
int  crtc_id 
)

Definition at line 270 of file radeon_display.c.

void radeon_crtc_load_lut ( struct drm_crtc crtc)

Definition at line 183 of file radeon_display.c.

bool radeon_crtc_scaling_mode_fixup ( struct drm_crtc crtc,
const struct drm_display_mode mode,
struct drm_display_mode adjusted_mode 
)

Definition at line 1416 of file radeon_display.c.

int radeon_crtc_set_base ( struct drm_crtc crtc,
int  x,
int  y,
struct drm_framebuffer old_fb 
)

Definition at line 354 of file radeon_legacy_crtc.c.

int radeon_crtc_set_base_atomic ( struct drm_crtc crtc,
struct drm_framebuffer fb,
int  x,
int  y,
enum mode_set_atomic  state 
)

Definition at line 360 of file radeon_legacy_crtc.c.

int radeon_ddc_get_modes ( struct radeon_connector radeon_connector)

Definition at line 688 of file radeon_display.c.

bool radeon_ddc_probe ( struct radeon_connector radeon_connector)

radeon_ddc_probe

Definition at line 42 of file radeon_i2c.c.

bool radeon_dig_monitor_is_duallink ( struct drm_encoder encoder,
u32  pixel_clock 
)

Definition at line 324 of file radeon_encoders.c.

int radeon_dp_get_panel_mode ( struct drm_encoder encoder,
struct drm_connector connector 
)

Definition at line 573 of file atombios_dp.c.

bool radeon_dp_getdpcd ( struct radeon_connector radeon_connector)

Definition at line 551 of file atombios_dp.c.

u8 radeon_dp_getsinktype ( struct radeon_connector radeon_connector)

Definition at line 524 of file atombios_dp.c.

int radeon_dp_i2c_aux_ch ( struct i2c_adapter adapter,
int  mode,
u8  write_byte,
u8 read_byte 
)

Definition at line 199 of file atombios_dp.c.

void radeon_dp_link_train ( struct drm_encoder encoder,
struct drm_connector connector 
)

Definition at line 929 of file atombios_dp.c.

int radeon_dp_mode_valid_helper ( struct drm_connector connector,
struct drm_display_mode mode 
)

Definition at line 625 of file atombios_dp.c.

bool radeon_dp_needs_link_train ( struct radeon_connector radeon_connector)

Definition at line 660 of file atombios_dp.c.

void radeon_dp_set_link_config ( struct drm_connector connector,
const struct drm_display_mode mode 
)

Definition at line 606 of file atombios_dp.c.

void radeon_enc_destroy ( struct drm_encoder encoder)

Definition at line 2490 of file atombios_encoders.c.

u16 radeon_encoder_get_dp_bridge_encoder_id ( struct drm_encoder encoder)

Definition at line 259 of file radeon_encoders.c.

struct drm_encoder* radeon_encoder_legacy_lvds_add ( struct drm_device dev,
int  bios_index 
)
read
struct drm_encoder* radeon_encoder_legacy_primary_dac_add ( struct drm_device dev,
int  bios_index,
int  with_tv 
)
read
struct drm_encoder* radeon_encoder_legacy_tmds_ext_add ( struct drm_device dev,
int  bios_index 
)
read
struct drm_encoder* radeon_encoder_legacy_tmds_int_add ( struct drm_device dev,
int  bios_index 
)
read
struct drm_encoder* radeon_encoder_legacy_tv_dac_add ( struct drm_device dev,
int  bios_index,
int  with_tv 
)
read
void radeon_encoder_set_active_device ( struct drm_encoder encoder)

Definition at line 189 of file radeon_encoders.c.

void radeon_external_tmds_setup ( struct drm_encoder encoder)

Definition at line 2832 of file radeon_combios.c.

void radeon_fb_output_poll_changed ( struct radeon_device rdev)

Definition at line 318 of file radeon_fb.c.

void radeon_fbdev_fini ( struct radeon_device rdev)

Definition at line 384 of file radeon_fb.c.

int radeon_fbdev_init ( struct radeon_device rdev)

Definition at line 353 of file radeon_fb.c.

bool radeon_fbdev_robj_is_fb ( struct radeon_device rdev,
struct radeon_bo robj 
)

Definition at line 409 of file radeon_fb.c.

void radeon_fbdev_set_suspend ( struct radeon_device rdev,
int  state 
)

Definition at line 394 of file radeon_fb.c.

int radeon_fbdev_total_size ( struct radeon_device rdev)

Definition at line 399 of file radeon_fb.c.

int radeon_framebuffer_init ( struct drm_device dev,
struct radeon_framebuffer rfb,
struct drm_mode_fb_cmd2 mode_cmd,
struct drm_gem_object *  obj 
)

Definition at line 1076 of file radeon_display.c.

bool radeon_get_atom_connector_info_from_object_table ( struct drm_device dev)

Definition at line 531 of file radeon_atombios.c.

bool radeon_get_atom_connector_info_from_supported_devices_table ( struct drm_device dev)

Definition at line 907 of file radeon_atombios.c.

void radeon_get_clock_info ( struct drm_device dev)

Definition at line 175 of file radeon_clocks.c.

struct drm_connector* radeon_get_connector_for_encoder ( struct drm_encoder encoder)
read

Definition at line 207 of file radeon_encoders.c.

struct drm_connector* radeon_get_connector_for_encoder_init ( struct drm_encoder encoder)
read

Definition at line 223 of file radeon_encoders.c.

int radeon_get_crtc_scanoutpos ( struct drm_device dev,
int  crtc,
int vpos,
int hpos 
)

Definition at line 1531 of file radeon_display.c.

struct drm_encoder* radeon_get_external_encoder ( struct drm_encoder encoder)
read

Definition at line 238 of file radeon_encoders.c.

bool radeon_get_legacy_connector_info_from_bios ( struct drm_device dev)

Definition at line 2312 of file radeon_combios.c.

bool radeon_get_legacy_connector_info_from_table ( struct drm_device dev)

Definition at line 1511 of file radeon_combios.c.

int radeon_get_monitor_bpc ( struct drm_connector connector)

Definition at line 103 of file radeon_connectors.c.

void radeon_i2c_add ( struct radeon_device rdev,
struct radeon_i2c_bus_rec rec,
const char name 
)

Definition at line 1037 of file radeon_i2c.c.

struct radeon_i2c_chan* radeon_i2c_create ( struct drm_device dev,
struct radeon_i2c_bus_rec rec,
const char name 
)
read

Definition at line 895 of file radeon_i2c.c.

struct radeon_i2c_chan* radeon_i2c_create_dp ( struct drm_device dev,
struct radeon_i2c_bus_rec rec,
const char name 
)
read

Definition at line 971 of file radeon_i2c.c.

void radeon_i2c_destroy ( struct radeon_i2c_chan i2c)

Definition at line 1006 of file radeon_i2c.c.

void radeon_i2c_fini ( struct radeon_device rdev)

Definition at line 1024 of file radeon_i2c.c.

void radeon_i2c_get_byte ( struct radeon_i2c_chan i2c_bus,
u8  slave_addr,
u8  addr,
u8 val 
)

Definition at line 1072 of file radeon_i2c.c.

void radeon_i2c_init ( struct radeon_device rdev)

Definition at line 1015 of file radeon_i2c.c.

struct radeon_i2c_chan* radeon_i2c_lookup ( struct radeon_device rdev,
struct radeon_i2c_bus_rec i2c_bus 
)
read

Definition at line 1053 of file radeon_i2c.c.

void radeon_i2c_put_byte ( struct radeon_i2c_chan i2c,
u8  slave_addr,
u8  addr,
u8  val 
)

Definition at line 1106 of file radeon_i2c.c.

bool radeon_legacy_get_ext_tmds_info_from_combios ( struct radeon_encoder encoder,
struct radeon_encoder_ext_tmds tmds 
)

Definition at line 1467 of file radeon_combios.c.

bool radeon_legacy_get_ext_tmds_info_from_table ( struct radeon_encoder encoder,
struct radeon_encoder_ext_tmds tmds 
)

Definition at line 1443 of file radeon_combios.c.

bool radeon_legacy_get_tmds_info_from_combios ( struct radeon_encoder encoder,
struct radeon_encoder_int_tmds tmds 
)

Definition at line 1390 of file radeon_combios.c.

bool radeon_legacy_get_tmds_info_from_table ( struct radeon_encoder encoder,
struct radeon_encoder_int_tmds tmds 
)

Definition at line 1374 of file radeon_combios.c.

void radeon_legacy_init_crtc ( struct drm_device dev,
struct radeon_crtc radeon_crtc 
)

Definition at line 1075 of file radeon_legacy_crtc.c.

void radeon_legacy_tv_adjust_crtc_reg ( struct drm_encoder encoder,
uint32_t h_total_disp,
uint32_t h_sync_strt_wid,
uint32_t v_total_disp,
uint32_t v_sync_strt_wid 
)

Definition at line 837 of file radeon_legacy_tv.c.

void radeon_legacy_tv_adjust_pll1 ( struct drm_encoder encoder,
uint32_t htotal_cntl,
uint32_t ppll_ref_div,
uint32_t ppll_div_3,
uint32_t pixclks_cntl 
)

Definition at line 884 of file radeon_legacy_tv.c.

void radeon_legacy_tv_adjust_pll2 ( struct drm_encoder encoder,
uint32_t htotal2_cntl,
uint32_t p2pll_ref_div,
uint32_t p2pll_div_0,
uint32_t pixclks_cntl 
)

Definition at line 904 of file radeon_legacy_tv.c.

void radeon_legacy_tv_mode_set ( struct drm_encoder encoder,
struct drm_display_mode mode,
struct drm_display_mode adjusted_mode 
)

Definition at line 531 of file radeon_legacy_tv.c.

void radeon_panel_mode_fixup ( struct drm_encoder encoder,
struct drm_display_mode adjusted_mode 
)

Definition at line 277 of file radeon_encoders.c.

void radeon_restore_bios_scratch_regs ( struct radeon_device rdev)

Definition at line 2836 of file radeon_atombios.c.

void radeon_router_select_cd_port ( struct radeon_connector radeon_connector)

Definition at line 1156 of file radeon_i2c.c.

void radeon_router_select_ddc_port ( struct radeon_connector radeon_connector)

Definition at line 1128 of file radeon_i2c.c.

void radeon_save_bios_scratch_regs ( struct radeon_device rdev)

Definition at line 2822 of file radeon_atombios.c.

void radeon_setup_encoder_clones ( struct drm_device dev)

Definition at line 76 of file radeon_encoders.c.

int radeonfb_remove ( struct drm_device dev,
struct drm_framebuffer fb 
)