Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
nv17_tv_modes.c File Reference
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "nouveau_drm.h"
#include "nouveau_encoder.h"
#include "nouveau_crtc.h"
#include "nouveau_hw.h"
#include "nv17_tv.h"

Go to the source code of this file.

Data Structures

struct  filter_params
 

Macros

#define calc_overscan(o)   interpolate(0x100, 0xe1, 0xc1, o)
 
#define id1   (1LL << 8)
 
#define id2   (1LL << 16)
 
#define id3   (1LL << 24)
 
#define id4   (1LL << 32)
 
#define id5   (1LL << 48)
 

Functions

void nv17_tv_state_save (struct drm_device *dev, struct nv17_tv_state *state)
 
void nv17_tv_state_load (struct drm_device *dev, struct nv17_tv_state *state)
 
void nv17_tv_update_properties (struct drm_encoder *encoder)
 
void nv17_tv_update_rescaler (struct drm_encoder *encoder)
 
void nv17_ctv_update_rescaler (struct drm_encoder *encoder)
 

Variables

charnv17_tv_norm_names [NUM_TV_NORMS]
 
struct nv17_tv_norm_params nv17_tv_norms [NUM_TV_NORMS]
 
struct drm_display_mode nv17_tv_modes []
 

Macro Definition Documentation

#define calc_overscan (   o)    interpolate(0x100, 0xe1, 0xc1, o)

Definition at line 249 of file nv17_tv_modes.c.

#define id1   (1LL << 8)

Definition at line 251 of file nv17_tv_modes.c.

#define id2   (1LL << 16)

Definition at line 252 of file nv17_tv_modes.c.

#define id3   (1LL << 24)

Definition at line 253 of file nv17_tv_modes.c.

#define id4   (1LL << 32)

Definition at line 254 of file nv17_tv_modes.c.

#define id5   (1LL << 48)

Definition at line 255 of file nv17_tv_modes.c.

Function Documentation

void nv17_ctv_update_rescaler ( struct drm_encoder encoder)

Definition at line 543 of file nv17_tv_modes.c.

void nv17_tv_state_load ( struct drm_device dev,
struct nv17_tv_state state 
)

Definition at line 408 of file nv17_tv_modes.c.

void nv17_tv_state_save ( struct drm_device dev,
struct nv17_tv_state state 
)

Definition at line 381 of file nv17_tv_modes.c.

void nv17_tv_update_properties ( struct drm_encoder encoder)

Definition at line 472 of file nv17_tv_modes.c.

void nv17_tv_update_rescaler ( struct drm_encoder encoder)

Definition at line 527 of file nv17_tv_modes.c.

Variable Documentation

struct drm_display_mode nv17_tv_modes[]
Initial value:
= {
{ DRM_MODE("320x200", DRM_MODE_TYPE_DRIVER, 0,
320, 344, 392, 560, 0, 200, 200, 202, 220, 0,
{ DRM_MODE("320x240", DRM_MODE_TYPE_DRIVER, 0,
320, 344, 392, 560, 0, 240, 240, 246, 263, 0,
{ DRM_MODE("400x300", DRM_MODE_TYPE_DRIVER, 0,
400, 432, 496, 640, 0, 300, 300, 303, 314, 0,
{ DRM_MODE("640x480", DRM_MODE_TYPE_DRIVER, 0,
640, 672, 768, 880, 0, 480, 480, 492, 525, 0,
{ DRM_MODE("720x480", DRM_MODE_TYPE_DRIVER, 0,
720, 752, 872, 960, 0, 480, 480, 493, 525, 0,
{ DRM_MODE("720x576", DRM_MODE_TYPE_DRIVER, 0,
720, 776, 856, 960, 0, 576, 576, 588, 597, 0,
{ DRM_MODE("800x600", DRM_MODE_TYPE_DRIVER, 0,
800, 840, 920, 1040, 0, 600, 600, 604, 618, 0,
{ DRM_MODE("1024x768", DRM_MODE_TYPE_DRIVER, 0,
1024, 1064, 1200, 1344, 0, 768, 768, 777, 806, 0,
{}
}

Definition at line 441 of file nv17_tv_modes.c.

char* nv17_tv_norm_names[NUM_TV_NORMS]
Initial value:
= {
[TV_NORM_PAL] = "PAL",
[TV_NORM_PAL_M] = "PAL-M",
[TV_NORM_PAL_N] = "PAL-N",
[TV_NORM_PAL_NC] = "PAL-Nc",
[TV_NORM_NTSC_M] = "NTSC-M",
[TV_NORM_NTSC_J] = "NTSC-J",
[TV_NORM_HD480I] = "hd480i",
[TV_NORM_HD480P] = "hd480p",
[TV_NORM_HD576I] = "hd576i",
[TV_NORM_HD576P] = "hd576p",
[TV_NORM_HD720P] = "hd720p",
[TV_NORM_HD1080I] = "hd1080i"
}

Definition at line 35 of file nv17_tv_modes.c.

Definition at line 52 of file nv17_tv_modes.c.