]>
Commit | Line | Data |
---|---|---|
9ca3037e BS |
1 | #ifndef __NVKM_FB_NV50_H__ |
2 | #define __NVKM_FB_NV50_H__ | |
9ca3037e BS |
3 | #include "priv.h" |
4 | ||
b1e4553c | 5 | struct nv50_fb { |
639c308e | 6 | struct nvkm_fb base; |
9ca3037e BS |
7 | struct page *r100c08_page; |
8 | dma_addr_t r100c08; | |
9 | }; | |
10 | ||
639c308e BS |
11 | int nv50_fb_ctor(struct nvkm_object *, struct nvkm_object *, |
12 | struct nvkm_oclass *, void *, u32, | |
13 | struct nvkm_object **); | |
14 | void nv50_fb_dtor(struct nvkm_object *); | |
15 | int nv50_fb_init(struct nvkm_object *); | |
9ca3037e BS |
16 | |
17 | struct nv50_fb_impl { | |
639c308e | 18 | struct nvkm_fb_impl base; |
9ca3037e BS |
19 | u32 trap; |
20 | }; | |
21 | ||
75faef78 BS |
22 | #define nv50_ram_create(p,e,o,d) \ |
23 | nv50_ram_create_((p), (e), (o), sizeof(**d), (void **)d) | |
639c308e BS |
24 | int nv50_ram_create_(struct nvkm_object *, struct nvkm_object *, |
25 | struct nvkm_oclass *, int, void **); | |
26 | int nv50_ram_get(struct nvkm_fb *, u64 size, u32 align, u32 ncmin, | |
27 | u32 memtype, struct nvkm_mem **); | |
28 | void nv50_ram_put(struct nvkm_fb *, struct nvkm_mem **); | |
29 | void __nv50_ram_put(struct nvkm_fb *, struct nvkm_mem *); | |
20cdeaf9 | 30 | extern int nv50_fb_memtype[0x80]; |
9ca3037e | 31 | #endif |