License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / drivers / gpu / drm / nouveau / nvkm / subdev / fb / nv50.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
9ca3037e
BS
2#ifndef __NVKM_FB_NV50_H__
3#define __NVKM_FB_NV50_H__
03c8952f 4#define nv50_fb(p) container_of((p), struct nv50_fb, base)
9ca3037e
BS
5#include "priv.h"
6
b1e4553c 7struct nv50_fb {
03c8952f 8 const struct nv50_fb_func *func;
639c308e 9 struct nvkm_fb base;
9ca3037e
BS
10 struct page *r100c08_page;
11 dma_addr_t r100c08;
12};
13
03c8952f
BS
14struct nv50_fb_func {
15 int (*ram_new)(struct nvkm_fb *, struct nvkm_ram **);
9ca3037e
BS
16 u32 trap;
17};
18
03c8952f
BS
19int nv50_fb_new_(const struct nv50_fb_func *, struct nvkm_device *, int index,
20 struct nvkm_fb **pfb);
20cdeaf9 21extern int nv50_fb_memtype[0x80];
9ca3037e 22#endif