xref: /linux/drivers/gpu/drm/nouveau/nvkm/engine/dma/nv50.c (revision bd70563f015a5204c62a52a87a35c32377940187)
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 
27*bd70563fSBen Skeggs static const struct nvkm_dma_func
28*bd70563fSBen Skeggs nv50_dma = {
290710cc31SBen Skeggs 	.class_new = nv50_dmaobj_new,
30*bd70563fSBen Skeggs };
31*bd70563fSBen Skeggs 
32*bd70563fSBen Skeggs int
33*bd70563fSBen Skeggs nv50_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
34*bd70563fSBen Skeggs {
35*bd70563fSBen Skeggs 	return nvkm_dma_new_(&nv50_dma, device, index, pdma);
36*bd70563fSBen Skeggs }
37