Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions | Variables
radeon_combios.c File Reference
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "atom.h"

Go to the source code of this file.

Enumerations

enum  radeon_combios_table_offset {
  COMBIOS_ASIC_INIT_1_TABLE, COMBIOS_BIOS_SUPPORT_TABLE, COMBIOS_DAC_PROGRAMMING_TABLE, COMBIOS_MAX_COLOR_DEPTH_TABLE,
  COMBIOS_CRTC_INFO_TABLE, COMBIOS_PLL_INFO_TABLE, COMBIOS_TV_INFO_TABLE, COMBIOS_DFP_INFO_TABLE,
  COMBIOS_HW_CONFIG_INFO_TABLE, COMBIOS_MULTIMEDIA_INFO_TABLE, COMBIOS_TV_STD_PATCH_TABLE, COMBIOS_LCD_INFO_TABLE,
  COMBIOS_MOBILE_INFO_TABLE, COMBIOS_PLL_INIT_TABLE, COMBIOS_MEM_CONFIG_TABLE, COMBIOS_SAVE_MASK_TABLE,
  COMBIOS_HARDCODED_EDID_TABLE, COMBIOS_ASIC_INIT_2_TABLE, COMBIOS_CONNECTOR_INFO_TABLE, COMBIOS_DYN_CLK_1_TABLE,
  COMBIOS_RESERVED_MEM_TABLE, COMBIOS_EXT_TMDS_INFO_TABLE, COMBIOS_MEM_CLK_INFO_TABLE, COMBIOS_EXT_DAC_INFO_TABLE,
  COMBIOS_MISC_INFO_TABLE, COMBIOS_CRT_INFO_TABLE, COMBIOS_INTEGRATED_SYSTEM_INFO_TABLE, COMBIOS_COMPONENT_VIDEO_INFO_TABLE,
  COMBIOS_FAN_SPEED_INFO_TABLE, COMBIOS_OVERDRIVE_INFO_TABLE, COMBIOS_OEM_INFO_TABLE, COMBIOS_DYN_CLK_2_TABLE,
  COMBIOS_POWER_CONNECTOR_INFO_TABLE, COMBIOS_I2C_INFO_TABLE, COMBIOS_ASIC_INIT_3_TABLE, COMBIOS_ASIC_INIT_4_TABLE,
  COMBIOS_DETECTED_MEM_TABLE, COMBIOS_ASIC_INIT_5_TABLE, COMBIOS_RAM_RESET_TABLE, COMBIOS_POWERPLAY_INFO_TABLE,
  COMBIOS_GPIO_INFO_TABLE, COMBIOS_LCD_DDC_INFO_TABLE, COMBIOS_TMDS_POWER_TABLE, COMBIOS_TMDS_POWER_ON_TABLE,
  COMBIOS_TMDS_POWER_OFF_TABLE
}
 
enum  radeon_combios_ddc {
  DDC_NONE_DETECTED, DDC_MONID, DDC_DVI, DDC_VGA,
  DDC_CRT2, DDC_LCD, DDC_GPIO
}
 
enum  radeon_combios_connector {
  CONNECTOR_NONE_LEGACY, CONNECTOR_PROPRIETARY_LEGACY, CONNECTOR_CRT_LEGACY, CONNECTOR_DVI_I_LEGACY,
  CONNECTOR_DVI_D_LEGACY, CONNECTOR_CTV_LEGACY, CONNECTOR_STV_LEGACY, CONNECTOR_UNSUPPORTED_LEGACY
}
 

Functions

uint32_t radeon_get_encoder_enum (struct drm_device *dev, uint32_t supported_device, uint8_t dac)
 
void radeon_link_encoder_connector (struct drm_device *dev)
 
void radeon_add_legacy_connector (struct drm_device *dev, uint32_t connector_id, uint32_t supported_device, int connector_type, struct radeon_i2c_bus_rec *i2c_bus, uint16_t connector_object_id, struct radeon_hpd *hpd)
 
void radeon_add_legacy_encoder (struct drm_device *dev, uint32_t encoder_enum, uint32_t supported_device)
 
bool radeon_combios_check_hardcoded_edid (struct radeon_device *rdev)
 
struct edidradeon_bios_get_hardcoded_edid (struct radeon_device *rdev)
 
void radeon_combios_i2c_init (struct radeon_device *rdev)
 
bool radeon_combios_get_clock_info (struct drm_device *dev)
 
bool radeon_combios_sideport_present (struct radeon_device *rdev)
 
struct radeon_encoder_primary_dacradeon_combios_get_primary_dac_info (struct radeon_encoder *encoder)
 
enum radeon_tv_std radeon_combios_get_tv_info (struct radeon_device *rdev)
 
struct radeon_encoder_tv_dacradeon_combios_get_tv_dac_info (struct radeon_encoder *encoder)
 
struct radeon_encoder_lvdsradeon_combios_get_lvds_info (struct radeon_encoder *encoder)
 
bool radeon_legacy_get_tmds_info_from_table (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_ext_tmds_info_from_table (struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds)
 
bool radeon_legacy_get_ext_tmds_info_from_combios (struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds)
 
bool radeon_get_legacy_connector_info_from_table (struct drm_device *dev)
 
bool radeon_get_legacy_connector_info_from_bios (struct drm_device *dev)
 
void radeon_combios_get_power_modes (struct radeon_device *rdev)
 
void radeon_external_tmds_setup (struct drm_encoder *encoder)
 
bool radeon_combios_external_tmds_setup (struct drm_encoder *encoder)
 
void radeon_combios_asic_init (struct drm_device *dev)
 
void radeon_combios_initialize_bios_scratch_regs (struct drm_device *dev)
 
void radeon_combios_output_lock (struct drm_encoder *encoder, bool lock)
 
void radeon_combios_connected_scratch_regs (struct drm_connector *connector, struct drm_encoder *encoder, bool connected)
 
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)
 

Variables

const int legacy_connector_convert []
 

Enumeration Type Documentation

Enumerator:
CONNECTOR_NONE_LEGACY 
CONNECTOR_PROPRIETARY_LEGACY 
CONNECTOR_CRT_LEGACY 
CONNECTOR_DVI_I_LEGACY 
CONNECTOR_DVI_D_LEGACY 
CONNECTOR_CTV_LEGACY 
CONNECTOR_STV_LEGACY 
CONNECTOR_UNSUPPORTED_LEGACY 

Definition at line 124 of file radeon_combios.c.

Enumerator:
DDC_NONE_DETECTED 
DDC_MONID 
DDC_DVI 
DDC_VGA 
DDC_CRT2 
DDC_LCD 
DDC_GPIO 

Definition at line 114 of file radeon_combios.c.

Enumerator:
COMBIOS_ASIC_INIT_1_TABLE 
COMBIOS_BIOS_SUPPORT_TABLE 
COMBIOS_DAC_PROGRAMMING_TABLE 
COMBIOS_MAX_COLOR_DEPTH_TABLE 
COMBIOS_CRTC_INFO_TABLE 
COMBIOS_PLL_INFO_TABLE 
COMBIOS_TV_INFO_TABLE 
COMBIOS_DFP_INFO_TABLE 
COMBIOS_HW_CONFIG_INFO_TABLE 
COMBIOS_MULTIMEDIA_INFO_TABLE 
COMBIOS_TV_STD_PATCH_TABLE 
COMBIOS_LCD_INFO_TABLE 
COMBIOS_MOBILE_INFO_TABLE 
COMBIOS_PLL_INIT_TABLE 
COMBIOS_MEM_CONFIG_TABLE 
COMBIOS_SAVE_MASK_TABLE 
COMBIOS_HARDCODED_EDID_TABLE 
COMBIOS_ASIC_INIT_2_TABLE 
COMBIOS_CONNECTOR_INFO_TABLE 
COMBIOS_DYN_CLK_1_TABLE 
COMBIOS_RESERVED_MEM_TABLE 
COMBIOS_EXT_TMDS_INFO_TABLE 
COMBIOS_MEM_CLK_INFO_TABLE 
COMBIOS_EXT_DAC_INFO_TABLE 
COMBIOS_MISC_INFO_TABLE 
COMBIOS_CRT_INFO_TABLE 
COMBIOS_INTEGRATED_SYSTEM_INFO_TABLE 
COMBIOS_COMPONENT_VIDEO_INFO_TABLE 
COMBIOS_FAN_SPEED_INFO_TABLE 
COMBIOS_OVERDRIVE_INFO_TABLE 
COMBIOS_OEM_INFO_TABLE 
COMBIOS_DYN_CLK_2_TABLE 
COMBIOS_POWER_CONNECTOR_INFO_TABLE 
COMBIOS_I2C_INFO_TABLE 
COMBIOS_ASIC_INIT_3_TABLE 
COMBIOS_ASIC_INIT_4_TABLE 
COMBIOS_DETECTED_MEM_TABLE 
COMBIOS_ASIC_INIT_5_TABLE 
COMBIOS_RAM_RESET_TABLE 
COMBIOS_POWERPLAY_INFO_TABLE 
COMBIOS_GPIO_INFO_TABLE 
COMBIOS_LCD_DDC_INFO_TABLE 
COMBIOS_TMDS_POWER_TABLE 
COMBIOS_TMDS_POWER_ON_TABLE 
COMBIOS_TMDS_POWER_OFF_TABLE 

Definition at line 64 of file radeon_combios.c.

Function Documentation

void radeon_add_legacy_connector ( struct drm_device dev,
uint32_t  connector_id,
uint32_t  supported_device,
int  connector_type,
struct radeon_i2c_bus_rec i2c_bus,
uint16_t  connector_object_id,
struct radeon_hpd hpd 
)

Definition at line 1872 of file radeon_connectors.c.

void radeon_add_legacy_encoder ( struct drm_device dev,
uint32_t  encoder_enum,
uint32_t  supported_device 
)

Definition at line 1729 of file radeon_legacy_encoders.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_connected_scratch_regs ( struct drm_connector connector,
struct drm_encoder encoder,
bool  connected 
)

Definition at line 3440 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.

struct radeon_encoder_lvds* radeon_combios_get_lvds_info ( struct radeon_encoder encoder)
read

Definition at line 1234 of file radeon_combios.c.

void radeon_combios_get_power_modes ( struct radeon_device rdev)

Definition at line 2635 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.

bool radeon_combios_sideport_present ( struct radeon_device rdev)

Definition at line 892 of file radeon_combios.c.

void radeon_external_tmds_setup ( struct drm_encoder encoder)

Definition at line 2832 of file radeon_combios.c.

uint32_t radeon_get_encoder_enum ( struct drm_device dev,
uint32_t  supported_device,
uint8_t  dac 
)

Definition at line 86 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.

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_link_encoder_connector ( struct drm_device dev)

Definition at line 162 of file radeon_encoders.c.

Variable Documentation

const int legacy_connector_convert[]