187c33f4eSBen Skeggs /*
287c33f4eSBen Skeggs * Copyright 2012 Red Hat Inc.
387c33f4eSBen Skeggs *
487c33f4eSBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a
587c33f4eSBen Skeggs * copy of this software and associated documentation files (the "Software"),
687c33f4eSBen Skeggs * to deal in the Software without restriction, including without limitation
787c33f4eSBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense,
887c33f4eSBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the
987c33f4eSBen Skeggs * Software is furnished to do so, subject to the following conditions:
1087c33f4eSBen Skeggs *
1187c33f4eSBen Skeggs * The above copyright notice and this permission notice shall be included in
1287c33f4eSBen Skeggs * all copies or substantial portions of the Software.
1387c33f4eSBen Skeggs *
1487c33f4eSBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1587c33f4eSBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1687c33f4eSBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1787c33f4eSBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1887c33f4eSBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1987c33f4eSBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2087c33f4eSBen Skeggs * OTHER DEALINGS IN THE SOFTWARE.
2187c33f4eSBen Skeggs *
2287c33f4eSBen Skeggs * Authors: Ben Skeggs, Maarten Lankhorst, Ilia Mirkin
2387c33f4eSBen Skeggs */
2453e60da4SBen Skeggs #include "priv.h"
2587c33f4eSBen Skeggs
269d498e0fSBen Skeggs #include <nvif/class.h>
2787c33f4eSBen Skeggs
2853e60da4SBen Skeggs void
g98_msvld_init(struct nvkm_falcon * msvld)2953e60da4SBen Skeggs g98_msvld_init(struct nvkm_falcon *msvld)
3087c33f4eSBen Skeggs {
31f2d85ad1SBen Skeggs struct nvkm_device *device = msvld->engine.subdev.device;
32f2d85ad1SBen Skeggs nvkm_wr32(device, 0x084010, 0x0000ffd2);
33f2d85ad1SBen Skeggs nvkm_wr32(device, 0x08401c, 0x0000fff2);
3487c33f4eSBen Skeggs }
3587c33f4eSBen Skeggs
36a83d8872SBen Skeggs static const struct nvkm_falcon_func
3753e60da4SBen Skeggs g98_msvld = {
3853e60da4SBen Skeggs .init = g98_msvld_init,
399d498e0fSBen Skeggs .sclass = {
409d498e0fSBen Skeggs { -1, -1, G98_MSVLD },
419d498e0fSBen Skeggs {}
429d498e0fSBen Skeggs }
43a83d8872SBen Skeggs };
44a83d8872SBen Skeggs
4553e60da4SBen Skeggs int
g98_msvld_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_engine ** pengine)46*b15147bdSBen Skeggs g98_msvld_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
4753e60da4SBen Skeggs struct nvkm_engine **pengine)
4887c33f4eSBen Skeggs {
49*b15147bdSBen Skeggs return nvkm_msvld_new_(&g98_msvld, device, type, inst, pengine);
5087c33f4eSBen Skeggs }
51