111695Sache/* $NetBSD: nouveau_nvkm_engine_dma_gf119.c,v 1.3 2021/12/18 23:45:35 riastradh Exp $ */ 211695Sache 311695Sache/* 411695Sache * Copyright 2012 Red Hat Inc. 511695Sache * 611695Sache * Permission is hereby granted, free of charge, to any person obtaining a 711695Sache * copy of this software and associated documentation files (the "Software"), 811695Sache * to deal in the Software without restriction, including without limitation 911695Sache * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1011695Sache * and/or sell copies of the Software, and to permit persons to whom the 1111695Sache * Software is furnished to do so, subject to the following conditions: 1211695Sache * 1311695Sache * The above copyright notice and this permission notice shall be included in 1411695Sache * all copies or substantial portions of the Software. 1511695Sache * 1611695Sache * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1711695Sache * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1811695Sache * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1911695Sache * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 2011695Sache * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2111695Sache * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2211695Sache * OTHER DEALINGS IN THE SOFTWARE. 2311695Sache * 2411695Sache * Authors: Ben Skeggs 2511695Sache */ 2611695Sache#include <sys/cdefs.h> 2711695Sache__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_dma_gf119.c,v 1.3 2021/12/18 23:45:35 riastradh Exp $"); 2811695Sache 2911695Sache#include "priv.h" 3011695Sache#include "user.h" 3111695Sache 3211695Sachestatic const struct nvkm_dma_func 3311695Sachegf119_dma = { 3411695Sache .class_new = gf119_dmaobj_new, 3511695Sache}; 3611695Sache 3792986Sobrienint 3892986Sobriengf119_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma) 3992986Sobrien{ 403050Sache return nvkm_dma_new_(&gf119_dma, device, index, pdma); 413050Sache} 423050Sache