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

Go to the source code of this file.

Macros

#define MAX_TOLERANCE   10
 

Functions

void radeon_crtc_load_lut (struct drm_crtc *crtc)
 
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)
 
void radeon_crtc_handle_flip (struct radeon_device *rdev, int crtc_id)
 
int radeon_ddc_get_modes (struct radeon_connector *radeon_connector)
 
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_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)
 
int radeon_framebuffer_init (struct drm_device *dev, struct radeon_framebuffer *rfb, struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object *obj)
 
void radeon_update_display_priority (struct radeon_device *rdev)
 
int radeon_modeset_init (struct radeon_device *rdev)
 
void radeon_modeset_fini (struct radeon_device *rdev)
 
bool radeon_crtc_scaling_mode_fixup (struct drm_crtc *crtc, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)
 
int radeon_get_crtc_scanoutpos (struct drm_device *dev, int crtc, int *vpos, int *hpos)
 

Macro Definition Documentation

#define MAX_TOLERANCE   10

Definition at line 795 of file radeon_display.c.

Function Documentation

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.

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_ddc_get_modes ( struct radeon_connector radeon_connector)

Definition at line 688 of file radeon_display.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.

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

Definition at line 1531 of file radeon_display.c.

void radeon_modeset_fini ( struct radeon_device rdev)

Definition at line 1387 of file radeon_display.c.

int radeon_modeset_init ( struct radeon_device rdev)

Definition at line 1315 of file radeon_display.c.

void radeon_update_display_priority ( struct radeon_device rdev)

Definition at line 1208 of file radeon_display.c.