drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw ntfy_set()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
parent
0ecaefc144
commit
d4793bc39f
@ -153,9 +153,11 @@ base507c_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
|
||||
if ((ret = PUSH_WAIT(push, 3)))
|
||||
return ret;
|
||||
|
||||
PUSH_NVSQ(push, NV507C, 0x00a0, asyw->ntfy.awaken << 30 |
|
||||
asyw->ntfy.offset,
|
||||
0x00a4, asyw->ntfy.handle);
|
||||
PUSH_MTHD(push, NV507C, SET_NOTIFIER_CONTROL,
|
||||
NVVAL(NV507C, SET_NOTIFIER_CONTROL, MODE, asyw->ntfy.awaken) |
|
||||
NVVAL(NV507C, SET_NOTIFIER_CONTROL, OFFSET, asyw->ntfy.offset >> 2),
|
||||
|
||||
SET_CONTEXT_DMA_NOTIFIER, asyw->ntfy.handle);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -182,9 +182,11 @@ wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
|
||||
if ((ret = PUSH_WAIT(push, 3)))
|
||||
return ret;
|
||||
|
||||
PUSH_NVSQ(push, NVC37E, 0x021c, asyw->ntfy.handle,
|
||||
0x0220, asyw->ntfy.offset |
|
||||
asyw->ntfy.awaken);
|
||||
PUSH_MTHD(push, NVC37E, SET_CONTEXT_DMA_NOTIFIER, asyw->ntfy.handle,
|
||||
|
||||
SET_NOTIFIER_CONTROL,
|
||||
NVVAL(NVC37E, SET_NOTIFIER_CONTROL, MODE, asyw->ntfy.awaken) |
|
||||
NVVAL(NVC37E, SET_NOTIFIER_CONTROL, OFFSET, asyw->ntfy.offset >> 4));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user