Merge tag 'sh-for-4.8' of git://git.libc.org/linux-sh
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nvkm / engine / disp / rootnv50.h
CommitLineData
2a7909c0
BS
1#ifndef __NV50_DISP_ROOT_H__
2#define __NV50_DISP_ROOT_H__
0ce41e3c 3#define nv50_disp_root(p) container_of((p), struct nv50_disp_root, object)
2a7909c0
BS
4#include "nv50.h"
5#include "channv50.h"
6#include "dmacnv50.h"
2a7909c0
BS
7
8struct nv50_disp_root {
0ce41e3c
BS
9 const struct nv50_disp_root_func *func;
10 struct nv50_disp *disp;
11 struct nvkm_object object;
12
13 struct nvkm_gpuobj *instmem;
2a7909c0 14 struct nvkm_ramht *ramht;
2a7909c0
BS
15};
16
0ce41e3c
BS
17struct nv50_disp_root_func {
18 int (*init)(struct nv50_disp_root *);
19 void (*fini)(struct nv50_disp_root *);
20 const struct nv50_disp_dmac_oclass *dmac[3];
21 const struct nv50_disp_pioc_oclass *pioc[2];
22};
23
24int nv50_disp_root_new_(const struct nv50_disp_root_func *, struct nvkm_disp *,
25 const struct nvkm_oclass *, void *data, u32 size,
26 struct nvkm_object **);
27int nv50_disp_root_init(struct nv50_disp_root *);
28void nv50_disp_root_fini(struct nv50_disp_root *);
29
30int gf119_disp_root_init(struct nv50_disp_root *);
31void gf119_disp_root_fini(struct nv50_disp_root *);
32
33extern const struct nvkm_disp_oclass nv50_disp_root_oclass;
34extern const struct nvkm_disp_oclass g84_disp_root_oclass;
35extern const struct nvkm_disp_oclass g94_disp_root_oclass;
36extern const struct nvkm_disp_oclass gt200_disp_root_oclass;
37extern const struct nvkm_disp_oclass gt215_disp_root_oclass;
38extern const struct nvkm_disp_oclass gf119_disp_root_oclass;
39extern const struct nvkm_disp_oclass gk104_disp_root_oclass;
40extern const struct nvkm_disp_oclass gk110_disp_root_oclass;
41extern const struct nvkm_disp_oclass gm107_disp_root_oclass;
db1eb528 42extern const struct nvkm_disp_oclass gm200_disp_root_oclass;
f9d5cbb3 43extern const struct nvkm_disp_oclass gp100_disp_root_oclass;
fd47877f 44extern const struct nvkm_disp_oclass gp104_disp_root_oclass;
2a7909c0 45#endif
This page took 0.075891 seconds and 5 git commands to generate.