141ba806fSBen Skeggs /* 241ba806fSBen Skeggs * Copyright 2021 Red Hat Inc. 341ba806fSBen Skeggs * 441ba806fSBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a 541ba806fSBen Skeggs * copy of this software and associated documentation files (the "Software"), 641ba806fSBen Skeggs * to deal in the Software without restriction, including without limitation 741ba806fSBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense, 841ba806fSBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the 941ba806fSBen Skeggs * Software is furnished to do so, subject to the following conditions: 1041ba806fSBen Skeggs * 1141ba806fSBen Skeggs * The above copyright notice and this permission notice shall be included in 1241ba806fSBen Skeggs * all copies or substantial portions of the Software. 1341ba806fSBen Skeggs * 1441ba806fSBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1541ba806fSBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1641ba806fSBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1741ba806fSBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 1841ba806fSBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1941ba806fSBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2041ba806fSBen Skeggs * OTHER DEALINGS IN THE SOFTWARE. 2141ba806fSBen Skeggs */ 2241ba806fSBen Skeggs #include "gf100.h" 2341ba806fSBen Skeggs #include "ram.h" 2441ba806fSBen Skeggs 2541ba806fSBen Skeggs static const struct nvkm_fb_func 2641ba806fSBen Skeggs ga100_fb = { 2741ba806fSBen Skeggs .dtor = gf100_fb_dtor, 2841ba806fSBen Skeggs .oneinit = gf100_fb_oneinit, 29*5728d064SBen Skeggs .init = gm200_fb_init, 3041ba806fSBen Skeggs .init_page = gv100_fb_init_page, 3141ba806fSBen Skeggs .init_unkn = gp100_fb_init_unkn, 32*5728d064SBen Skeggs .sysmem.flush_page_init = gf100_fb_sysmem_flush_page_init, 3341ba806fSBen Skeggs .ram_new = gp100_ram_new, 3441ba806fSBen Skeggs .default_bigpage = 16, 3541ba806fSBen Skeggs }; 3641ba806fSBen Skeggs 3741ba806fSBen Skeggs int 38b7a9369aSBen Skeggs ga100_fb_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fb **pfb) 3941ba806fSBen Skeggs { 40b7a9369aSBen Skeggs return gp102_fb_new_(&ga100_fb, device, type, inst, pfb); 4141ba806fSBen Skeggs } 42