2015-01-14 13:24:57 +08:00
|
|
|
#ifndef __NVKM_DISP_H__
|
|
|
|
#define __NVKM_DISP_H__
|
2015-08-20 12:54:19 +08:00
|
|
|
#define nvkm_disp(p) container_of((p), struct nvkm_disp, engine)
|
2012-07-20 06:17:34 +08:00
|
|
|
#include <core/engine.h>
|
2013-01-31 07:23:34 +08:00
|
|
|
#include <core/event.h>
|
2012-07-20 06:17:34 +08:00
|
|
|
|
2015-01-14 13:24:57 +08:00
|
|
|
struct nvkm_disp {
|
2015-08-20 12:54:19 +08:00
|
|
|
const struct nvkm_disp_func *func;
|
2015-08-20 12:54:22 +08:00
|
|
|
struct nvkm_engine engine;
|
2015-08-20 12:54:19 +08:00
|
|
|
|
|
|
|
struct nvkm_oproxy *client;
|
2014-05-16 12:36:15 +08:00
|
|
|
|
|
|
|
struct list_head outp;
|
2015-08-20 12:54:15 +08:00
|
|
|
struct list_head conn;
|
2014-05-16 12:36:15 +08:00
|
|
|
|
2014-08-10 02:10:20 +08:00
|
|
|
struct nvkm_event hpd;
|
|
|
|
struct nvkm_event vblank;
|
2012-07-20 06:17:34 +08:00
|
|
|
|
2015-08-20 12:54:22 +08:00
|
|
|
struct {
|
|
|
|
int nr;
|
|
|
|
} head;
|
2015-08-20 12:54:19 +08:00
|
|
|
};
|
|
|
|
|
2015-08-20 12:54:22 +08:00
|
|
|
int nv04_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int nv50_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int g84_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int gt200_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int g94_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int gt215_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int gf119_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int gk104_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int gk110_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
|
|
|
int gm107_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
2016-02-11 06:35:32 +08:00
|
|
|
int gm200_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
2016-07-09 08:41:01 +08:00
|
|
|
int gp100_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
2016-11-16 13:03:07 +08:00
|
|
|
int gp102_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
|
2012-07-20 06:17:34 +08:00
|
|
|
#endif
|