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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -63,7 +63,8 @@ core507d_ntfy_wait_done(struct nouveau_bo *bo, u32 offset,
void
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
+5 −4
Original line number Diff line number Diff line
@@ -85,10 +85,11 @@ corec37d_ntfy_wait_done(struct nouveau_bo *bo, u32 offset,
void
corec37d_ntfy_init(struct nouveau_bo *bo, u32 offset)
{
	nouveau_bo_wr32(bo, offset / 4 + 0, 0x00000000);
	nouveau_bo_wr32(bo, offset / 4 + 1, 0x00000000);
	nouveau_bo_wr32(bo, offset / 4 + 2, 0x00000000);
	nouveau_bo_wr32(bo, offset / 4 + 3, 0x00000000);
	NVBO_WR32(bo, offset, NV_DISP_NOTIFIER, _0,
			NVDEF(NV_DISP_NOTIFIER, _0, STATUS, NOT_BEGUN));
	NVBO_WR32(bo, offset, NV_DISP_NOTIFIER, _1, 0);
	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)