diff options
Diffstat (limited to 'nvkm/engine/disp/base.c')
-rw-r--r-- | nvkm/engine/disp/base.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nvkm/engine/disp/base.c b/nvkm/engine/disp/base.c index d1df0ce99..22d55f6cd 100644 --- a/nvkm/engine/disp/base.c +++ b/nvkm/engine/disp/base.c @@ -24,6 +24,7 @@ #include <core/os.h> #include <nvif/unpack.h> +#include <nvif/class.h> #include <nvif/event.h> #include "priv.h" @@ -93,6 +94,24 @@ nouveau_disp_hpd_func = { }; int +nouveau_disp_ntfy(struct nouveau_object *object, u32 type, + struct nvkm_event **event) +{ + struct nouveau_disp *disp = (void *)object->engine; + switch (type) { + case NV04_DISP_NTFY_VBLANK: + *event = &disp->vblank; + return 0; + case NV04_DISP_NTFY_CONN: + *event = &disp->hpd; + return 0; + default: + break; + } + return -EINVAL; +} + +int _nouveau_disp_fini(struct nouveau_object *object, bool suspend) { struct nouveau_disp *disp = (void *)object; |