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 void (*olut_set)(struct nv50_head *, struct nv50_head_atom *); 25 void (*olut_clr)(struct nv50_head *); 26 void (*core_calc)(struct nv50_head *, struct nv50_head_atom *); 27 void (*core_set)(struct nv50_head *, struct nv50_head_atom *); 28 void (*core_clr)(struct nv50_head *); 29 int (*curs_layout)(struct nv50_head *, struct nv50_wndw_atom *, 30 struct nv50_head_atom *); 31 int (*curs_format)(struct nv50_head *, struct nv50_wndw_atom *, 32 struct nv50_head_atom *); 33 void (*curs_set)(struct nv50_head *, struct nv50_head_atom *); 34 void (*curs_clr)(struct nv50_head *); 35 void (*base)(struct nv50_head *, struct nv50_head_atom *); 36 void (*ovly)(struct nv50_head *, struct nv50_head_atom *); 37 void (*dither)(struct nv50_head *, struct nv50_head_atom *); 38 void (*procamp)(struct nv50_head *, struct nv50_head_atom *); 39 void (*or)(struct nv50_head *, struct nv50_head_atom *); 40}; 41 42extern const struct nv50_head_func head507d; 43void head507d_view(struct nv50_head *, struct nv50_head_atom *); 44void head507d_mode(struct nv50_head *, struct nv50_head_atom *); 45void head507d_olut(struct nv50_head *, struct nv50_head_atom *); 46void head507d_core_calc(struct nv50_head *, struct nv50_head_atom *); 47void head507d_core_clr(struct nv50_head *); 48int head507d_curs_layout(struct nv50_head *, struct nv50_wndw_atom *, 49 struct nv50_head_atom *); 50int head507d_curs_format(struct nv50_head *, struct nv50_wndw_atom *, 51 struct nv50_head_atom *); 52void head507d_base(struct nv50_head *, struct nv50_head_atom *); 53void head507d_ovly(struct nv50_head *, struct nv50_head_atom *); 54void head507d_dither(struct nv50_head *, struct nv50_head_atom *); 55void head507d_procamp(struct nv50_head *, struct nv50_head_atom *); 56 57extern const struct nv50_head_func head827d; 58 59extern const struct nv50_head_func head907d; 60void head907d_view(struct nv50_head *, struct nv50_head_atom *); 61void head907d_mode(struct nv50_head *, struct nv50_head_atom *); 62void head907d_olut(struct nv50_head *, struct nv50_head_atom *); 63void head907d_olut_set(struct nv50_head *, struct nv50_head_atom *); 64void head907d_olut_clr(struct nv50_head *); 65void head907d_core_set(struct nv50_head *, struct nv50_head_atom *); 66void head907d_core_clr(struct nv50_head *); 67void head907d_curs_set(struct nv50_head *, struct nv50_head_atom *); 68void head907d_curs_clr(struct nv50_head *); 69void head907d_ovly(struct nv50_head *, struct nv50_head_atom *); 70void head907d_procamp(struct nv50_head *, struct nv50_head_atom *); 71void head907d_or(struct nv50_head *, struct nv50_head_atom *); 72 73extern const struct nv50_head_func head917d; 74int head917d_curs_layout(struct nv50_head *, struct nv50_wndw_atom *, 75 struct nv50_head_atom *); 76 77extern const struct nv50_head_func headc37d; 78#endif 79