#ifndef __NV17_TV_H__
#define __NV17_TV_H__
struct nv17_tv_state { … };
enum nv17_tv_norm{ … };
struct nv17_tv_encoder { … };
#define to_tv_enc(x) …
extern const char * const nv17_tv_norm_names[NUM_TV_NORMS];
extern struct nv17_tv_norm_params { … } nv17_tv_norms[NUM_TV_NORMS];
#define get_tv_norm(enc) …
extern const struct drm_display_mode nv17_tv_modes[];
static inline int interpolate(int y0, int y1, int y2, int x)
{ … }
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);
static inline void nv_write_ptv(struct drm_device *dev, uint32_t reg,
uint32_t val)
{ … }
static inline uint32_t nv_read_ptv(struct drm_device *dev, uint32_t reg)
{ … }
static inline void nv_write_tv_enc(struct drm_device *dev, uint8_t reg,
uint8_t val)
{ … }
static inline uint8_t nv_read_tv_enc(struct drm_device *dev, uint8_t reg)
{ … }
#define nv_load_ptv(dev, state, reg) …
#define nv_save_ptv(dev, state, reg) …
#define nv_load_tv_enc(dev, state, reg) …
#endif