1639c308eSBen Skeggs /* 2639c308eSBen Skeggs * Copyright 2012 Red Hat Inc. 3639c308eSBen Skeggs * 4639c308eSBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a 5639c308eSBen Skeggs * copy of this software and associated documentation files (the "Software"), 6639c308eSBen Skeggs * to deal in the Software without restriction, including without limitation 7639c308eSBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8639c308eSBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the 9639c308eSBen Skeggs * Software is furnished to do so, subject to the following conditions: 10639c308eSBen Skeggs * 11639c308eSBen Skeggs * The above copyright notice and this permission notice shall be included in 12639c308eSBen Skeggs * all copies or substantial portions of the Software. 13639c308eSBen Skeggs * 14639c308eSBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15639c308eSBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16639c308eSBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17639c308eSBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18639c308eSBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19639c308eSBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20639c308eSBen Skeggs * OTHER DEALINGS IN THE SOFTWARE. 21639c308eSBen Skeggs * 22639c308eSBen Skeggs * Authors: Ben Skeggs 23639c308eSBen Skeggs */ 24639c308eSBen Skeggs #include "nv50.h" 25639c308eSBen Skeggs 26639c308eSBen Skeggs struct nvkm_oclass * 27639c308eSBen Skeggs g84_fb_oclass = &(struct nv50_fb_impl) { 28639c308eSBen Skeggs .base.base.handle = NV_SUBDEV(FB, 0x84), 29639c308eSBen Skeggs .base.base.ofuncs = &(struct nvkm_ofuncs) { 30639c308eSBen Skeggs .ctor = nv50_fb_ctor, 31639c308eSBen Skeggs .dtor = nv50_fb_dtor, 32639c308eSBen Skeggs .init = nv50_fb_init, 33639c308eSBen Skeggs .fini = _nvkm_fb_fini, 34639c308eSBen Skeggs }, 35639c308eSBen Skeggs .base.memtype = nv50_fb_memtype_valid, 36639c308eSBen Skeggs .base.ram = &nv50_ram_oclass, 37639c308eSBen Skeggs .trap = 0x001d07ff, 38639c308eSBen Skeggs }.base.base; 39