xref: /linux/drivers/gpu/drm/nouveau/nvkm/engine/dma/gf119.c (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
1bd70563fSBen Skeggs /*
2bd70563fSBen Skeggs  * Copyright 2012 Red Hat Inc.
3bd70563fSBen Skeggs  *
4bd70563fSBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
5bd70563fSBen Skeggs  * copy of this software and associated documentation files (the "Software"),
6bd70563fSBen Skeggs  * to deal in the Software without restriction, including without limitation
7bd70563fSBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8bd70563fSBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
9bd70563fSBen Skeggs  * Software is furnished to do so, subject to the following conditions:
10bd70563fSBen Skeggs  *
11bd70563fSBen Skeggs  * The above copyright notice and this permission notice shall be included in
12bd70563fSBen Skeggs  * all copies or substantial portions of the Software.
13bd70563fSBen Skeggs  *
14bd70563fSBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15bd70563fSBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16bd70563fSBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17bd70563fSBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18bd70563fSBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19bd70563fSBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20bd70563fSBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
21bd70563fSBen Skeggs  *
22bd70563fSBen Skeggs  * Authors: Ben Skeggs
23bd70563fSBen Skeggs  */
24bd70563fSBen Skeggs #include "priv.h"
25bd70563fSBen Skeggs #include "user.h"
26bd70563fSBen Skeggs 
27bd70563fSBen Skeggs static const struct nvkm_dma_func
28bd70563fSBen Skeggs gf119_dma = {
29bd70563fSBen Skeggs 	.class_new = gf119_dmaobj_new,
30bd70563fSBen Skeggs };
31bd70563fSBen Skeggs 
32bd70563fSBen Skeggs int
gf119_dma_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_dma ** pdma)33*09f409d7SBen Skeggs gf119_dma_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
34*09f409d7SBen Skeggs 	      struct nvkm_dma **pdma)
35bd70563fSBen Skeggs {
36*09f409d7SBen Skeggs 	return nvkm_dma_new_(&gf119_dma, device, type, inst, pdma);
37bd70563fSBen Skeggs }
38