]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[mirror_ubuntu-bionic-kernel.git] / drivers / gpu / drm / nouveau / nvkm / subdev / fb / nv50.h
CommitLineData
9ca3037e
BS
1#ifndef __NVKM_FB_NV50_H__
2#define __NVKM_FB_NV50_H__
03c8952f 3#define nv50_fb(p) container_of((p), struct nv50_fb, base)
9ca3037e
BS
4#include "priv.h"
5
b1e4553c 6struct nv50_fb {
03c8952f 7 const struct nv50_fb_func *func;
639c308e 8 struct nvkm_fb base;
9ca3037e
BS
9 struct page *r100c08_page;
10 dma_addr_t r100c08;
11};
12
03c8952f
BS
13struct nv50_fb_func {
14 int (*ram_new)(struct nvkm_fb *, struct nvkm_ram **);
9ca3037e
BS
15 u32 trap;
16};
17
03c8952f
BS
18int nv50_fb_new_(const struct nv50_fb_func *, struct nvkm_device *, int index,
19 struct nvkm_fb **pfb);
20cdeaf9 20extern int nv50_fb_memtype[0x80];
9ca3037e 21#endif