2019-06-20 00:13:43 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2014-02-20 11:33:34 +00:00
|
|
|
#ifndef __NVKM_DISP_PRIV_H__
|
|
|
|
#define __NVKM_DISP_PRIV_H__
|
|
|
|
#include <engine/disp.h>
|
2015-08-20 04:54:15 +00:00
|
|
|
#include "outp.h"
|
|
|
|
|
2015-08-20 04:54:22 +00:00
|
|
|
int nvkm_disp_ctor(const struct nvkm_disp_func *, struct nvkm_device *,
|
2017-05-19 13:59:34 +00:00
|
|
|
int index, struct nvkm_disp *);
|
2015-08-20 04:54:22 +00:00
|
|
|
int nvkm_disp_new_(const struct nvkm_disp_func *, struct nvkm_device *,
|
2017-05-19 13:59:34 +00:00
|
|
|
int index, struct nvkm_disp **);
|
2015-08-20 04:54:22 +00:00
|
|
|
void nvkm_disp_vblank(struct nvkm_disp *, int head);
|
|
|
|
|
|
|
|
struct nvkm_disp_func {
|
|
|
|
void *(*dtor)(struct nvkm_disp *);
|
2018-05-08 10:39:46 +00:00
|
|
|
int (*oneinit)(struct nvkm_disp *);
|
2018-05-08 10:39:46 +00:00
|
|
|
int (*init)(struct nvkm_disp *);
|
|
|
|
void (*fini)(struct nvkm_disp *);
|
2015-08-20 04:54:22 +00:00
|
|
|
void (*intr)(struct nvkm_disp *);
|
|
|
|
|
|
|
|
const struct nvkm_disp_oclass *(*root)(struct nvkm_disp *);
|
2014-02-20 11:33:34 +00:00
|
|
|
};
|
|
|
|
|
2015-01-14 05:24:57 +00:00
|
|
|
int nvkm_disp_ntfy(struct nvkm_object *, u32, struct nvkm_event **);
|
2015-08-20 04:54:19 +00:00
|
|
|
|
2015-08-20 04:54:19 +00:00
|
|
|
extern const struct nvkm_disp_oclass nv04_disp_root_oclass;
|
|
|
|
|
|
|
|
struct nvkm_disp_oclass {
|
|
|
|
int (*ctor)(struct nvkm_disp *, const struct nvkm_oclass *,
|
|
|
|
void *data, u32 size, struct nvkm_object **);
|
|
|
|
struct nvkm_sclass base;
|
|
|
|
};
|
2014-02-20 11:33:34 +00:00
|
|
|
#endif
|