1904e703cSBen Skeggs /*
2904e703cSBen Skeggs * Copyright 2017 Red Hat Inc.
3904e703cSBen Skeggs *
4904e703cSBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a
5904e703cSBen Skeggs * copy of this software and associated documentation files (the "Software"),
6904e703cSBen Skeggs * to deal in the Software without restriction, including without limitation
7904e703cSBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8904e703cSBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the
9904e703cSBen Skeggs * Software is furnished to do so, subject to the following conditions:
10904e703cSBen Skeggs *
11904e703cSBen Skeggs * The above copyright notice and this permission notice shall be included in
12904e703cSBen Skeggs * all copies or substantial portions of the Software.
13904e703cSBen Skeggs *
14904e703cSBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15904e703cSBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16904e703cSBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17904e703cSBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18904e703cSBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19904e703cSBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20904e703cSBen Skeggs * OTHER DEALINGS IN THE SOFTWARE.
21904e703cSBen Skeggs *
22904e703cSBen Skeggs * Authors: Ben Skeggs <bskeggs@redhat.com>
23904e703cSBen Skeggs */
24904e703cSBen Skeggs #include "gf100.h"
25904e703cSBen Skeggs #include "ram.h"
26904e703cSBen Skeggs
27904e703cSBen Skeggs static const struct nvkm_fb_func
28904e703cSBen Skeggs gf108_fb = {
29904e703cSBen Skeggs .dtor = gf100_fb_dtor,
30904e703cSBen Skeggs .oneinit = gf100_fb_oneinit,
31904e703cSBen Skeggs .init = gf100_fb_init,
32904e703cSBen Skeggs .init_page = gf100_fb_init_page,
33904e703cSBen Skeggs .intr = gf100_fb_intr,
34*86d8740dSKarol Herbst .sysmem.flush_page_init = gf100_fb_sysmem_flush_page_init,
35904e703cSBen Skeggs .ram_new = gf108_ram_new,
362854ab8dSBen Skeggs .default_bigpage = 17,
37904e703cSBen Skeggs };
38904e703cSBen Skeggs
39904e703cSBen Skeggs int
gf108_fb_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_fb ** pfb)40b7a9369aSBen Skeggs gf108_fb_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fb **pfb)
41904e703cSBen Skeggs {
42b7a9369aSBen Skeggs return gf100_fb_new_(&gf108_fb, device, type, inst, pfb);
43904e703cSBen Skeggs }
44