Commit 38a323b0 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms/nv50-: use NVIDIA's headers for core ntfy_init()

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
parent b11d8ca1
...@@ -63,7 +63,8 @@ core507d_ntfy_wait_done(struct nouveau_bo *bo, u32 offset, ...@@ -63,7 +63,8 @@ core507d_ntfy_wait_done(struct nouveau_bo *bo, u32 offset,
void void
core507d_ntfy_init(struct nouveau_bo *bo, u32 offset) core507d_ntfy_init(struct nouveau_bo *bo, u32 offset)
{ {
nouveau_bo_wr32(bo, offset / 4, 0x00000000); NVBO_WR32(bo, offset, NV_DISP_CORE_NOTIFIER_1, COMPLETION_0,
NVDEF(NV_DISP_CORE_NOTIFIER_1, COMPLETION_0, DONE, FALSE));
} }
int int
......
...@@ -85,10 +85,11 @@ corec37d_ntfy_wait_done(struct nouveau_bo *bo, u32 offset, ...@@ -85,10 +85,11 @@ corec37d_ntfy_wait_done(struct nouveau_bo *bo, u32 offset,
void void
corec37d_ntfy_init(struct nouveau_bo *bo, u32 offset) corec37d_ntfy_init(struct nouveau_bo *bo, u32 offset)
{ {
nouveau_bo_wr32(bo, offset / 4 + 0, 0x00000000); NVBO_WR32(bo, offset, NV_DISP_NOTIFIER, _0,
nouveau_bo_wr32(bo, offset / 4 + 1, 0x00000000); NVDEF(NV_DISP_NOTIFIER, _0, STATUS, NOT_BEGUN));
nouveau_bo_wr32(bo, offset / 4 + 2, 0x00000000); NVBO_WR32(bo, offset, NV_DISP_NOTIFIER, _1, 0);
nouveau_bo_wr32(bo, offset / 4 + 3, 0x00000000); NVBO_WR32(bo, offset, NV_DISP_NOTIFIER, _2, 0);
NVBO_WR32(bo, offset, NV_DISP_NOTIFIER, _3, 0);
} }
int corec37d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp) int corec37d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment