xref: /linux/drivers/gpu/drm/nouveau/dispnv50/ovly917e.c (revision 976e3645923bdd2fe7893aae33fd7a21098bfb28)
12ce7f386SBen Skeggs /*
22ce7f386SBen Skeggs  * Copyright 2018 Red Hat Inc.
32ce7f386SBen Skeggs  *
42ce7f386SBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
52ce7f386SBen Skeggs  * copy of this software and associated documentation files (the "Software"),
62ce7f386SBen Skeggs  * to deal in the Software without restriction, including without limitation
72ce7f386SBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
82ce7f386SBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
92ce7f386SBen Skeggs  * Software is furnished to do so, subject to the following conditions:
102ce7f386SBen Skeggs  *
112ce7f386SBen Skeggs  * The above copyright notice and this permission notice shall be included in
122ce7f386SBen Skeggs  * all copies or substantial portions of the Software.
132ce7f386SBen Skeggs  *
142ce7f386SBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
152ce7f386SBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
162ce7f386SBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
172ce7f386SBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
182ce7f386SBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
192ce7f386SBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
202ce7f386SBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
212ce7f386SBen Skeggs  */
222ce7f386SBen Skeggs #include "ovly.h"
232ce7f386SBen Skeggs 
242ce7f386SBen Skeggs static const u32
252ce7f386SBen Skeggs ovly917e_format[] = {
262ce7f386SBen Skeggs 	DRM_FORMAT_YUYV,
272ce7f386SBen Skeggs 	DRM_FORMAT_UYVY,
282ce7f386SBen Skeggs 	DRM_FORMAT_XRGB8888,
292ce7f386SBen Skeggs 	DRM_FORMAT_XRGB1555,
302ce7f386SBen Skeggs 	DRM_FORMAT_XBGR2101010,
312ce7f386SBen Skeggs 	DRM_FORMAT_XRGB2101010,
32*38a72243SIlia Mirkin 	DRM_FORMAT_XBGR16161616F,
332ce7f386SBen Skeggs 	0
342ce7f386SBen Skeggs };
352ce7f386SBen Skeggs 
362ce7f386SBen Skeggs int
ovly917e_new(struct nouveau_drm * drm,int head,s32 oclass,struct nv50_wndw ** pwndw)372ce7f386SBen Skeggs ovly917e_new(struct nouveau_drm *drm, int head, s32 oclass,
382ce7f386SBen Skeggs 	     struct nv50_wndw **pwndw)
392ce7f386SBen Skeggs {
402ce7f386SBen Skeggs 	return ovly507e_new_(&ovly907e, ovly917e_format, drm, head, oclass,
412ce7f386SBen Skeggs 			     0x00000004 << (head * 4), pwndw);
422ce7f386SBen Skeggs }
43