1*677dec6eSriastradh /*	$NetBSD: nouveau_nvkm_engine_dma_nv50.c,v 1.3 2021/12/18 23:45:35 riastradh Exp $	*/
2d350ecf5Sriastradh 
3d350ecf5Sriastradh /*
4d350ecf5Sriastradh  * Copyright 2012 Red Hat Inc.
5d350ecf5Sriastradh  *
6d350ecf5Sriastradh  * Permission is hereby granted, free of charge, to any person obtaining a
7d350ecf5Sriastradh  * copy of this software and associated documentation files (the "Software"),
8d350ecf5Sriastradh  * to deal in the Software without restriction, including without limitation
9d350ecf5Sriastradh  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10d350ecf5Sriastradh  * and/or sell copies of the Software, and to permit persons to whom the
11d350ecf5Sriastradh  * Software is furnished to do so, subject to the following conditions:
12d350ecf5Sriastradh  *
13d350ecf5Sriastradh  * The above copyright notice and this permission notice shall be included in
14d350ecf5Sriastradh  * all copies or substantial portions of the Software.
15d350ecf5Sriastradh  *
16d350ecf5Sriastradh  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17d350ecf5Sriastradh  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18d350ecf5Sriastradh  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19d350ecf5Sriastradh  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20d350ecf5Sriastradh  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21d350ecf5Sriastradh  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22d350ecf5Sriastradh  * OTHER DEALINGS IN THE SOFTWARE.
23d350ecf5Sriastradh  *
24d350ecf5Sriastradh  * Authors: Ben Skeggs
25d350ecf5Sriastradh  */
26d350ecf5Sriastradh #include <sys/cdefs.h>
27*677dec6eSriastradh __KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_dma_nv50.c,v 1.3 2021/12/18 23:45:35 riastradh Exp $");
28d350ecf5Sriastradh 
29d350ecf5Sriastradh #include "priv.h"
30d350ecf5Sriastradh #include "user.h"
31d350ecf5Sriastradh 
32d350ecf5Sriastradh static const struct nvkm_dma_func
33d350ecf5Sriastradh nv50_dma = {
34d350ecf5Sriastradh 	.class_new = nv50_dmaobj_new,
35d350ecf5Sriastradh };
36d350ecf5Sriastradh 
37d350ecf5Sriastradh int
nv50_dma_new(struct nvkm_device * device,int index,struct nvkm_dma ** pdma)38d350ecf5Sriastradh nv50_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
39d350ecf5Sriastradh {
40d350ecf5Sriastradh 	return nvkm_dma_new_(&nv50_dma, device, index, pdma);
41d350ecf5Sriastradh }
42