radeon_tv.h revision 209ff23f
1/* 2 * Integrated TV out support based on the GATOS code by 3 * Federico Ulivi <fulivi@lycos.com> 4 */ 5 6 7/* 8 * Limits of h/v positions (hPos & vPos) 9 */ 10#define MAX_H_POSITION 5 /* Range: [-5..5], negative is on the left, 0 is default, positive is on the right */ 11#define MAX_V_POSITION 5 /* Range: [-5..5], negative is up, 0 is default, positive is down */ 12 13/* 14 * Unit for hPos (in TV clock periods) 15 */ 16#define H_POS_UNIT 10 17 18/* 19 * Indexes in h. code timing table for horizontal line position adjustment 20 */ 21#define H_TABLE_POS1 6 22#define H_TABLE_POS2 8 23 24/* 25 * Limits of hor. size (hSize) 26 */ 27#define MAX_H_SIZE 5 /* Range: [-5..5], negative is smaller, positive is larger */ 28 29/* tv standard constants */ 30#define NTSC_TV_PLL_M 22 31#define NTSC_TV_PLL_N 175 32#define NTSC_TV_PLL_P 5 33#define NTSC_TV_CLOCK_T 233 34#define NTSC_TV_VFTOTAL 1 35#define NTSC_TV_LINES_PER_FRAME 525 36#define NTSC_TV_ZERO_H_SIZE 479166 37#define NTSC_TV_H_SIZE_UNIT 9478 38 39#define PAL_TV_PLL_M 113 40#define PAL_TV_PLL_N 668 41#define PAL_TV_PLL_P 3 42#define PAL_TV_CLOCK_T 188 43#define PAL_TV_VFTOTAL 3 44#define PAL_TV_LINES_PER_FRAME 625 45#define PAL_TV_ZERO_H_SIZE 473200 46#define PAL_TV_H_SIZE_UNIT 9360 47 48 49#define VERT_LEAD_IN_LINES 2 50#define FRAC_BITS 0xe 51#define FRAC_MASK 0x3fff 52