xref: /openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/dma/gv100.c (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
16fb566b9SBen Skeggs /*
26fb566b9SBen Skeggs  * Copyright 2018 Red Hat Inc.
36fb566b9SBen Skeggs  *
46fb566b9SBen Skeggs  * Permission is hereby granted, free of charge, to any person obtaining a
56fb566b9SBen Skeggs  * copy of this software and associated documentation files (the "Software"),
66fb566b9SBen Skeggs  * to deal in the Software without restriction, including without limitation
76fb566b9SBen Skeggs  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
86fb566b9SBen Skeggs  * and/or sell copies of the Software, and to permit persons to whom the
96fb566b9SBen Skeggs  * Software is furnished to do so, subject to the following conditions:
106fb566b9SBen Skeggs  *
116fb566b9SBen Skeggs  * The above copyright notice and this permission notice shall be included in
126fb566b9SBen Skeggs  * all copies or substantial portions of the Software.
136fb566b9SBen Skeggs  *
146fb566b9SBen Skeggs  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
156fb566b9SBen Skeggs  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
166fb566b9SBen Skeggs  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
176fb566b9SBen Skeggs  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
186fb566b9SBen Skeggs  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
196fb566b9SBen Skeggs  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
206fb566b9SBen Skeggs  * OTHER DEALINGS IN THE SOFTWARE.
216fb566b9SBen Skeggs  */
226fb566b9SBen Skeggs #include "priv.h"
236fb566b9SBen Skeggs #include "user.h"
246fb566b9SBen Skeggs 
256fb566b9SBen Skeggs static const struct nvkm_dma_func
266fb566b9SBen Skeggs gv100_dma = {
276fb566b9SBen Skeggs 	.class_new = gv100_dmaobj_new,
286fb566b9SBen Skeggs };
296fb566b9SBen Skeggs 
306fb566b9SBen Skeggs int
gv100_dma_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_dma ** pdma)31*09f409d7SBen Skeggs gv100_dma_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
32*09f409d7SBen Skeggs 	      struct nvkm_dma **pdma)
336fb566b9SBen Skeggs {
34*09f409d7SBen Skeggs 	return nvkm_dma_new_(&gv100_dma, device, type, inst, pdma);
356fb566b9SBen Skeggs }
36