1*19fef52dSBen Skeggs /* 2*19fef52dSBen Skeggs * Copyright 2012 Red Hat Inc. 3*19fef52dSBen Skeggs * 4*19fef52dSBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a 5*19fef52dSBen Skeggs * copy of this software and associated documentation files (the "Software"), 6*19fef52dSBen Skeggs * to deal in the Software without restriction, including without limitation 7*19fef52dSBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8*19fef52dSBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the 9*19fef52dSBen Skeggs * Software is furnished to do so, subject to the following conditions: 10*19fef52dSBen Skeggs * 11*19fef52dSBen Skeggs * The above copyright notice and this permission notice shall be included in 12*19fef52dSBen Skeggs * all copies or substantial portions of the Software. 13*19fef52dSBen Skeggs * 14*19fef52dSBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15*19fef52dSBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16*19fef52dSBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17*19fef52dSBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18*19fef52dSBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19*19fef52dSBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20*19fef52dSBen Skeggs * OTHER DEALINGS IN THE SOFTWARE. 21*19fef52dSBen Skeggs * 22*19fef52dSBen Skeggs * Authors: Ben Skeggs 23*19fef52dSBen Skeggs */ 24*19fef52dSBen Skeggs #include "priv.h" 25*19fef52dSBen Skeggs #include "user.h" 26*19fef52dSBen Skeggs 27*19fef52dSBen Skeggs struct nvkm_oclass * 28*19fef52dSBen Skeggs nv50_dmaeng_oclass = &(struct nvkm_dma_impl) { 29*19fef52dSBen Skeggs .base.handle = NV_ENGINE(DMAOBJ, 0x50), 30*19fef52dSBen Skeggs .base.ofuncs = &(struct nvkm_ofuncs) { 31*19fef52dSBen Skeggs .ctor = _nvkm_dma_ctor, 32*19fef52dSBen Skeggs .dtor = _nvkm_dma_dtor, 33*19fef52dSBen Skeggs .init = _nvkm_dma_init, 34*19fef52dSBen Skeggs .fini = _nvkm_dma_fini, 35*19fef52dSBen Skeggs }, 36*19fef52dSBen Skeggs .sclass = nv50_dmaeng_sclass, 37*19fef52dSBen Skeggs .bind = nv50_dmaobj_bind, 38*19fef52dSBen Skeggs }.base; 39