Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 1 | #ifndef __NVKM_RAM_NVC0_H__ |
| 2 | #define __NVKM_RAM_NVC0_H__ |
Ben Skeggs | 03c8952 | 2015-08-20 14:54:20 +1000 | [diff] [blame] | 3 | #define gf100_fb(p) container_of((p), struct gf100_fb, base) |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 4 | #include "priv.h" |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 5 | |
Ben Skeggs | b1e4553 | 2015-08-20 14:54:06 +1000 | [diff] [blame] | 6 | struct gf100_fb { |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 7 | struct nvkm_fb base; |
| 8 | struct page *r100c10_page; |
| 9 | dma_addr_t r100c10; |
| 10 | }; |
| 11 | |
Ben Skeggs | 03c8952 | 2015-08-20 14:54:20 +1000 | [diff] [blame] | 12 | int gf100_fb_new_(const struct nvkm_fb_func *, struct nvkm_device *, |
| 13 | int index, struct nvkm_fb **); |
| 14 | void *gf100_fb_dtor(struct nvkm_fb *); |
| 15 | void gf100_fb_init(struct nvkm_fb *); |
| 16 | void gf100_fb_intr(struct nvkm_fb *); |
Ben Skeggs | 639c308 | 2015-01-14 14:52:58 +1000 | [diff] [blame] | 17 | #endif |