xref: /linux/drivers/gpu/drm/nouveau/nvkm/engine/dma/nv04.c (revision 0710cc31482ae3711367c42e61580126c50c8ec0)
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 
2719fef52dSBen Skeggs struct nvkm_oclass *
2819fef52dSBen Skeggs nv04_dmaeng_oclass = &(struct nvkm_dma_impl) {
2919fef52dSBen Skeggs 	.base.handle = NV_ENGINE(DMAOBJ, 0x04),
3019fef52dSBen Skeggs 	.base.ofuncs = &(struct nvkm_ofuncs) {
3119fef52dSBen Skeggs 		.ctor = _nvkm_dma_ctor,
3219fef52dSBen Skeggs 		.dtor = _nvkm_dma_dtor,
3319fef52dSBen Skeggs 		.init = _nvkm_dma_init,
3419fef52dSBen Skeggs 		.fini = _nvkm_dma_fini,
3519fef52dSBen Skeggs 	},
36*0710cc31SBen Skeggs 	.class_new = nv04_dmaobj_new,
3719fef52dSBen Skeggs }.base;
38