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

Go to the source code of this file.

Data Structures

struct  radeon_tv_mode_constants
 

Macros

#define MAX_H_POSITION   5 /* Range: [-5..5], negative is on the left, 0 is default, positive is on the right */
 
#define MAX_V_POSITION   5 /* Range: [-5..5], negative is up, 0 is default, positive is down */
 
#define H_POS_UNIT   10
 
#define H_TABLE_POS1   6
 
#define H_TABLE_POS2   8
 
#define MAX_H_SIZE   5 /* Range: [-5..5], negative is smaller, positive is larger */
 
#define NTSC_TV_CLOCK_T   233
 
#define NTSC_TV_VFTOTAL   1
 
#define NTSC_TV_LINES_PER_FRAME   525
 
#define NTSC_TV_ZERO_H_SIZE   479166
 
#define NTSC_TV_H_SIZE_UNIT   9478
 
#define PAL_TV_CLOCK_T   188
 
#define PAL_TV_VFTOTAL   3
 
#define PAL_TV_LINES_PER_FRAME   625
 
#define PAL_TV_ZERO_H_SIZE   473200
 
#define PAL_TV_H_SIZE_UNIT   9360
 
#define NTSC_TV_PLL_M_27   22
 
#define NTSC_TV_PLL_N_27   175
 
#define NTSC_TV_PLL_P_27   5
 
#define PAL_TV_PLL_M_27   113
 
#define PAL_TV_PLL_N_27   668
 
#define PAL_TV_PLL_P_27   3
 
#define NTSC_TV_PLL_M_14   33
 
#define NTSC_TV_PLL_N_14   693
 
#define NTSC_TV_PLL_P_14   7
 
#define PAL_TV_PLL_M_14   19
 
#define PAL_TV_PLL_N_14   353
 
#define PAL_TV_PLL_P_14   5
 
#define VERT_LEAD_IN_LINES   2
 
#define FRAC_BITS   0xe
 
#define FRAC_MASK   0x3fff
 
#define N_AVAILABLE_MODES   ARRAY_SIZE(available_tv_modes)
 

Functions

void radeon_legacy_tv_mode_set (struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)
 
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)
 

Macro Definition Documentation

#define FRAC_BITS   0xe

Definition at line 65 of file radeon_legacy_tv.c.

#define FRAC_MASK   0x3fff

Definition at line 66 of file radeon_legacy_tv.c.

#define H_POS_UNIT   10

Definition at line 20 of file radeon_legacy_tv.c.

#define H_TABLE_POS1   6

Definition at line 25 of file radeon_legacy_tv.c.

#define H_TABLE_POS2   8

Definition at line 26 of file radeon_legacy_tv.c.

#define MAX_H_POSITION   5 /* Range: [-5..5], negative is on the left, 0 is default, positive is on the right */

Definition at line 14 of file radeon_legacy_tv.c.

#define MAX_H_SIZE   5 /* Range: [-5..5], negative is smaller, positive is larger */

Definition at line 31 of file radeon_legacy_tv.c.

#define MAX_V_POSITION   5 /* Range: [-5..5], negative is up, 0 is default, positive is down */

Definition at line 15 of file radeon_legacy_tv.c.

#define N_AVAILABLE_MODES   ARRAY_SIZE(available_tv_modes)

Definition at line 232 of file radeon_legacy_tv.c.

#define NTSC_TV_CLOCK_T   233

Definition at line 34 of file radeon_legacy_tv.c.

#define NTSC_TV_H_SIZE_UNIT   9478

Definition at line 38 of file radeon_legacy_tv.c.

#define NTSC_TV_LINES_PER_FRAME   525

Definition at line 36 of file radeon_legacy_tv.c.

#define NTSC_TV_PLL_M_14   33

Definition at line 56 of file radeon_legacy_tv.c.

#define NTSC_TV_PLL_M_27   22

Definition at line 47 of file radeon_legacy_tv.c.

#define NTSC_TV_PLL_N_14   693

Definition at line 57 of file radeon_legacy_tv.c.

#define NTSC_TV_PLL_N_27   175

Definition at line 48 of file radeon_legacy_tv.c.

#define NTSC_TV_PLL_P_14   7

Definition at line 58 of file radeon_legacy_tv.c.

#define NTSC_TV_PLL_P_27   5

Definition at line 49 of file radeon_legacy_tv.c.

#define NTSC_TV_VFTOTAL   1

Definition at line 35 of file radeon_legacy_tv.c.

#define NTSC_TV_ZERO_H_SIZE   479166

Definition at line 37 of file radeon_legacy_tv.c.

#define PAL_TV_CLOCK_T   188

Definition at line 40 of file radeon_legacy_tv.c.

#define PAL_TV_H_SIZE_UNIT   9360

Definition at line 44 of file radeon_legacy_tv.c.

#define PAL_TV_LINES_PER_FRAME   625

Definition at line 42 of file radeon_legacy_tv.c.

#define PAL_TV_PLL_M_14   19

Definition at line 60 of file radeon_legacy_tv.c.

#define PAL_TV_PLL_M_27   113

Definition at line 51 of file radeon_legacy_tv.c.

#define PAL_TV_PLL_N_14   353

Definition at line 61 of file radeon_legacy_tv.c.

#define PAL_TV_PLL_N_27   668

Definition at line 52 of file radeon_legacy_tv.c.

#define PAL_TV_PLL_P_14   5

Definition at line 62 of file radeon_legacy_tv.c.

#define PAL_TV_PLL_P_27   3

Definition at line 53 of file radeon_legacy_tv.c.

#define PAL_TV_VFTOTAL   3

Definition at line 41 of file radeon_legacy_tv.c.

#define PAL_TV_ZERO_H_SIZE   473200

Definition at line 43 of file radeon_legacy_tv.c.

#define VERT_LEAD_IN_LINES   2

Definition at line 64 of file radeon_legacy_tv.c.

Function Documentation

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.