xref: /linux/drivers/gpu/drm/nouveau/nvkm/engine/dma/nv50.c (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
119fef52dSBen Skeggs /*
219fef52dSBen Skeggs  * Copyright 2012 Red Hat Inc.
319fef52dSBen Skeggs  *
419fef52dSBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
519fef52dSBen Skeggs  * copy of this software and associated documentation files (the "Software"),
619fef52dSBen Skeggs  * to deal in the Software without restriction, including without limitation
719fef52dSBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
819fef52dSBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
919fef52dSBen Skeggs  * Software is furnished to do so, subject to the following conditions:
1019fef52dSBen Skeggs  *
1119fef52dSBen Skeggs  * The above copyright notice and this permission notice shall be included in
1219fef52dSBen Skeggs  * all copies or substantial portions of the Software.
1319fef52dSBen Skeggs  *
1419fef52dSBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1519fef52dSBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1619fef52dSBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1719fef52dSBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1819fef52dSBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1919fef52dSBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2019fef52dSBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
2119fef52dSBen Skeggs  *
2219fef52dSBen Skeggs  * Authors: Ben Skeggs
2319fef52dSBen Skeggs  */
2419fef52dSBen Skeggs #include "priv.h"
2519fef52dSBen Skeggs #include "user.h"
2619fef52dSBen Skeggs 
27bd70563fSBen Skeggs static const struct nvkm_dma_func
28bd70563fSBen Skeggs nv50_dma = {
290710cc31SBen Skeggs 	.class_new = nv50_dmaobj_new,
30bd70563fSBen Skeggs };
31bd70563fSBen Skeggs 
32bd70563fSBen Skeggs int
nv50_dma_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_dma ** pdma)3309f409d7SBen Skeggs nv50_dma_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
3409f409d7SBen Skeggs 	     struct nvkm_dma **pdma)
35bd70563fSBen Skeggs {
3609f409d7SBen Skeggs 	return nvkm_dma_new_(&nv50_dma, device, type, inst, pdma);
37bd70563fSBen Skeggs }
38