xref: /linux/drivers/gpu/drm/nouveau/dispnv50/ovly.h (revision 0a4693e80dc9a57f2133439e58a697f2d7730c4d)
11590700dSBen Skeggs #ifndef __NV50_KMS_OVLY_H__
21590700dSBen Skeggs #define __NV50_KMS_OVLY_H__
31590700dSBen Skeggs #include "wndw.h"
41590700dSBen Skeggs 
51590700dSBen Skeggs int ovly507e_new(struct nouveau_drm *, int, s32, struct nv50_wndw **);
653e0a3e7SBen Skeggs int ovly507e_new_(const struct nv50_wndw_func *, const u32 *format,
753e0a3e7SBen Skeggs 		  struct nouveau_drm *, int head, s32 oclass,
853e0a3e7SBen Skeggs 		  u32 interlock_data, struct nv50_wndw **);
92ce7f386SBen Skeggs int ovly507e_acquire(struct nv50_wndw *, struct nv50_wndw_atom *,
102ce7f386SBen Skeggs 		     struct nv50_head_atom *);
112ce7f386SBen Skeggs void ovly507e_release(struct nv50_wndw *, struct nv50_wndw_atom *,
122ce7f386SBen Skeggs 		      struct nv50_head_atom *);
13*0a4693e8SBen Skeggs int ovly507e_scale_set(struct nv50_wndw *, struct nv50_wndw_atom *);
142ce7f386SBen Skeggs void ovly507e_update(struct nv50_wndw *, u32 *);
1553e0a3e7SBen Skeggs 
1653e0a3e7SBen Skeggs extern const u32 ovly827e_format[];
172ce7f386SBen Skeggs void ovly827e_ntfy_reset(struct nouveau_bo *, u32);
182ce7f386SBen Skeggs int ovly827e_ntfy_wait_begun(struct nouveau_bo *, u32, struct nvif_device *);
192ce7f386SBen Skeggs 
202ce7f386SBen Skeggs extern const struct nv50_wndw_func ovly907e;
2153e0a3e7SBen Skeggs 
2253e0a3e7SBen Skeggs int ovly827e_new(struct nouveau_drm *, int, s32, struct nv50_wndw **);
2353e0a3e7SBen Skeggs int ovly907e_new(struct nouveau_drm *, int, s32, struct nv50_wndw **);
242ce7f386SBen Skeggs int ovly917e_new(struct nouveau_drm *, int, s32, struct nv50_wndw **);
251590700dSBen Skeggs 
261590700dSBen Skeggs int nv50_ovly_new(struct nouveau_drm *, int head, struct nv50_wndw **);
271590700dSBen Skeggs #endif
28