]>
Commit | Line | Data |
---|---|---|
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 | 6 | int nvkm_disp_ctor(const struct nvkm_disp_func *, struct nvkm_device *, |
a1c93078 | 7 | int index, struct nvkm_disp *); |
70aa8670 | 8 | int nvkm_disp_new_(const struct nvkm_disp_func *, struct nvkm_device *, |
a1c93078 | 9 | int index, struct nvkm_disp **); |
70aa8670 BS |
10 | void nvkm_disp_vblank(struct nvkm_disp *, int head); |
11 | ||
70aa8670 BS |
12 | struct 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 | 19 | int nvkm_disp_ntfy(struct nvkm_object *, u32, struct nvkm_event **); |
2a7909c0 | 20 | |
0ce41e3c BS |
21 | extern const struct nvkm_disp_oclass nv04_disp_root_oclass; |
22 | ||
23 | struct 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 |