1229970Sadrian/* 2229970Sadrian * Copyright 2012 Red Hat Inc. 3229970Sadrian * 4229970Sadrian * Permission is hereby granted, free of charge, to any person obtaining a 5229970Sadrian * copy of this software and associated documentation files (the "Software"), 6229970Sadrian * to deal in the Software without restriction, including without limitation 7229970Sadrian * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8229970Sadrian * and/or sell copies of the Software, and to permit persons to whom the 9229970Sadrian * Software is furnished to do so, subject to the following conditions: 10229970Sadrian * 11229970Sadrian * The above copyright notice and this permission notice shall be included in 12229970Sadrian * all copies or substantial portions of the Software. 13229970Sadrian * 14229970Sadrian * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15229970Sadrian * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16229970Sadrian * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17229970Sadrian * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18229970Sadrian * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19229970Sadrian * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20229970Sadrian * OTHER DEALINGS IN THE SOFTWARE. 21229970Sadrian * 22229970Sadrian * Authors: Ben Skeggs, Maarten Lankhorst, Ilia Mirkin 23229970Sadrian */ 24229970Sadrian#include "priv.h" 25229970Sadrian 26229970Sadrian#include <nvif/class.h> 27229970Sadrian 28229970Sadrianvoid 29229970Sadriang98_msvld_init(struct nvkm_falcon *msvld) 30229970Sadrian{ 31229970Sadrian struct nvkm_device *device = msvld->engine.subdev.device; 32229970Sadrian nvkm_wr32(device, 0x084010, 0x0000ffd2); 33229970Sadrian nvkm_wr32(device, 0x08401c, 0x0000fff2); 34229970Sadrian} 35229970Sadrian 36229970Sadrianstatic const struct nvkm_falcon_func 37229970Sadriang98_msvld = { 38229970Sadrian .init = g98_msvld_init, 39229970Sadrian .sclass = { 40229970Sadrian { -1, -1, G98_MSVLD }, 41229970Sadrian {} 42229970Sadrian } 43229970Sadrian}; 44229970Sadrian 45229970Sadrianint 46229970Sadriang98_msvld_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, 47229970Sadrian struct nvkm_engine **pengine) 48229970Sadrian{ 49229970Sadrian return nvkm_msvld_new_(&g98_msvld, device, type, inst, pengine); 50229970Sadrian} 51229970Sadrian