]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/gpu/drm/nouveau/nvkm/engine/disp/priv.h
UBUNTU: Ubuntu-4.13.0-45.50
[mirror_ubuntu-artful-kernel.git] / drivers / gpu / drm / nouveau / nvkm / engine / disp / priv.h
CommitLineData
a8f8b489
BS
1#ifndef __NVKM_DISP_PRIV_H__
2#define __NVKM_DISP_PRIV_H__
a8f8b489 3#include <engine/disp.h>
f2c906fc 4#include "outp.h"
f2c906fc 5
70aa8670 6int nvkm_disp_ctor(const struct nvkm_disp_func *, struct nvkm_device *,
a1c93078 7 int index, struct nvkm_disp *);
70aa8670 8int nvkm_disp_new_(const struct nvkm_disp_func *, struct nvkm_device *,
a1c93078 9 int index, struct nvkm_disp **);
70aa8670
BS
10void nvkm_disp_vblank(struct nvkm_disp *, int head);
11
70aa8670
BS
12struct nvkm_disp_func {
13 void *(*dtor)(struct nvkm_disp *);
14 void (*intr)(struct nvkm_disp *);
15
16 const struct nvkm_disp_oclass *(*root)(struct nvkm_disp *);
a8f8b489
BS
17};
18
878da15a 19int nvkm_disp_ntfy(struct nvkm_object *, u32, struct nvkm_event **);
2a7909c0 20
0ce41e3c
BS
21extern const struct nvkm_disp_oclass nv04_disp_root_oclass;
22
23struct nvkm_disp_oclass {
24 int (*ctor)(struct nvkm_disp *, const struct nvkm_oclass *,
25 void *data, u32 size, struct nvkm_object **);
26 struct nvkm_sclass base;
27};
a8f8b489 28#endif