linux/drivers/gpu/drm/nouveau/dispnv50/head.h
<<
>>
Prefs
   1#ifndef __NV50_KMS_HEAD_H__
   2#define __NV50_KMS_HEAD_H__
   3#define nv50_head(c) container_of((c), struct nv50_head, base.base)
   4#include "disp.h"
   5#include "atom.h"
   6#include "lut.h"
   7
   8#include "nouveau_crtc.h"
   9
  10struct nv50_head {
  11        const struct nv50_head_func *func;
  12        struct nouveau_crtc base;
  13        struct nv50_lut olut;
  14};
  15
  16int nv50_head_create(struct drm_device *, int index);
  17void nv50_head_flush_set(struct nv50_head *, struct nv50_head_atom *);
  18void nv50_head_flush_clr(struct nv50_head *, struct nv50_head_atom *, bool y);
  19
  20struct nv50_head_func {
  21        void (*view)(struct nv50_head *, struct nv50_head_atom *);
  22        void (*mode)(struct nv50_head *, struct nv50_head_atom *);
  23        void (*olut)(struct nv50_head *, struct nv50_head_atom *);
  24        bool olut_identity;
  25        void (*olut_set)(struct nv50_head *, struct nv50_head_atom *);
  26        void (*olut_clr)(struct nv50_head *);
  27        void (*core_calc)(struct nv50_head *, struct nv50_head_atom *);
  28        void (*core_set)(struct nv50_head *, struct nv50_head_atom *);
  29        void (*core_clr)(struct nv50_head *);
  30        int (*curs_layout)(struct nv50_head *, struct nv50_wndw_atom *,
  31                           struct nv50_head_atom *);
  32        int (*curs_format)(struct nv50_head *, struct nv50_wndw_atom *,
  33                           struct nv50_head_atom *);
  34        void (*curs_set)(struct nv50_head *, struct nv50_head_atom *);
  35        void (*curs_clr)(struct nv50_head *);
  36        void (*base)(struct nv50_head *, struct nv50_head_atom *);
  37        void (*ovly)(struct nv50_head *, struct nv50_head_atom *);
  38        void (*dither)(struct nv50_head *, struct nv50_head_atom *);
  39        void (*procamp)(struct nv50_head *, struct nv50_head_atom *);
  40        void (*or)(struct nv50_head *, struct nv50_head_atom *);
  41};
  42
  43extern const struct nv50_head_func head507d;
  44void head507d_view(struct nv50_head *, struct nv50_head_atom *);
  45void head507d_mode(struct nv50_head *, struct nv50_head_atom *);
  46void head507d_olut(struct nv50_head *, struct nv50_head_atom *);
  47void head507d_core_calc(struct nv50_head *, struct nv50_head_atom *);
  48void head507d_core_clr(struct nv50_head *);
  49int head507d_curs_layout(struct nv50_head *, struct nv50_wndw_atom *,
  50                         struct nv50_head_atom *);
  51int head507d_curs_format(struct nv50_head *, struct nv50_wndw_atom *,
  52                         struct nv50_head_atom *);
  53void head507d_base(struct nv50_head *, struct nv50_head_atom *);
  54void head507d_ovly(struct nv50_head *, struct nv50_head_atom *);
  55void head507d_dither(struct nv50_head *, struct nv50_head_atom *);
  56void head507d_procamp(struct nv50_head *, struct nv50_head_atom *);
  57
  58extern const struct nv50_head_func head827d;
  59
  60extern const struct nv50_head_func head907d;
  61void head907d_view(struct nv50_head *, struct nv50_head_atom *);
  62void head907d_mode(struct nv50_head *, struct nv50_head_atom *);
  63void head907d_olut(struct nv50_head *, struct nv50_head_atom *);
  64void head907d_olut_set(struct nv50_head *, struct nv50_head_atom *);
  65void head907d_olut_clr(struct nv50_head *);
  66void head907d_core_set(struct nv50_head *, struct nv50_head_atom *);
  67void head907d_core_clr(struct nv50_head *);
  68void head907d_curs_set(struct nv50_head *, struct nv50_head_atom *);
  69void head907d_curs_clr(struct nv50_head *);
  70void head907d_ovly(struct nv50_head *, struct nv50_head_atom *);
  71void head907d_procamp(struct nv50_head *, struct nv50_head_atom *);
  72void head907d_or(struct nv50_head *, struct nv50_head_atom *);
  73
  74extern const struct nv50_head_func head917d;
  75int head917d_curs_layout(struct nv50_head *, struct nv50_wndw_atom *,
  76                         struct nv50_head_atom *);
  77
  78extern const struct nv50_head_func headc37d;
  79void headc37d_view(struct nv50_head *, struct nv50_head_atom *);
  80void headc37d_core_set(struct nv50_head *, struct nv50_head_atom *);
  81void headc37d_core_clr(struct nv50_head *);
  82int headc37d_curs_format(struct nv50_head *, struct nv50_wndw_atom *,
  83                         struct nv50_head_atom *);
  84void headc37d_curs_set(struct nv50_head *, struct nv50_head_atom *);
  85void headc37d_curs_clr(struct nv50_head *);
  86void headc37d_dither(struct nv50_head *, struct nv50_head_atom *);
  87
  88extern const struct nv50_head_func headc57d;
  89#endif
  90