drm/nouveau/fb/gf100-: allow selection of an alternate big page size
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nvkm / subdev / fb / priv.h
1 #ifndef __NVKM_FB_PRIV_H__
2 #define __NVKM_FB_PRIV_H__
3 #define nvkm_fb(p) container_of((p), struct nvkm_fb, subdev)
4 #include <subdev/fb.h>
5 struct nvkm_bios;
6
7 struct nvkm_fb_func {
8 void *(*dtor)(struct nvkm_fb *);
9 int (*oneinit)(struct nvkm_fb *);
10 void (*init)(struct nvkm_fb *);
11 void (*init_page)(struct nvkm_fb *);
12 void (*intr)(struct nvkm_fb *);
13
14 struct {
15 int regions;
16 void (*init)(struct nvkm_fb *, int i, u32 addr, u32 size,
17 u32 pitch, u32 flags, struct nvkm_fb_tile *);
18 void (*comp)(struct nvkm_fb *, int i, u32 size, u32 flags,
19 struct nvkm_fb_tile *);
20 void (*fini)(struct nvkm_fb *, int i, struct nvkm_fb_tile *);
21 void (*prog)(struct nvkm_fb *, int i, struct nvkm_fb_tile *);
22 } tile;
23
24 int (*ram_new)(struct nvkm_fb *, struct nvkm_ram **);
25
26 bool (*memtype_valid)(struct nvkm_fb *, u32 memtype);
27 };
28
29 void nvkm_fb_ctor(const struct nvkm_fb_func *, struct nvkm_device *device,
30 int index, struct nvkm_fb *);
31 int nvkm_fb_new_(const struct nvkm_fb_func *, struct nvkm_device *device,
32 int index, struct nvkm_fb **);
33 int nvkm_fb_bios_memtype(struct nvkm_bios *);
34
35 bool nv04_fb_memtype_valid(struct nvkm_fb *, u32 memtype);
36
37 void nv10_fb_tile_init(struct nvkm_fb *, int i, u32 addr, u32 size,
38 u32 pitch, u32 flags, struct nvkm_fb_tile *);
39 void nv10_fb_tile_fini(struct nvkm_fb *, int i, struct nvkm_fb_tile *);
40 void nv10_fb_tile_prog(struct nvkm_fb *, int, struct nvkm_fb_tile *);
41
42 void nv20_fb_tile_init(struct nvkm_fb *, int i, u32 addr, u32 size,
43 u32 pitch, u32 flags, struct nvkm_fb_tile *);
44 void nv20_fb_tile_fini(struct nvkm_fb *, int i, struct nvkm_fb_tile *);
45 void nv20_fb_tile_prog(struct nvkm_fb *, int, struct nvkm_fb_tile *);
46
47 void nv30_fb_init(struct nvkm_fb *);
48 void nv30_fb_tile_init(struct nvkm_fb *, int i, u32 addr, u32 size,
49 u32 pitch, u32 flags, struct nvkm_fb_tile *);
50
51 void nv40_fb_tile_comp(struct nvkm_fb *, int i, u32 size, u32 flags,
52 struct nvkm_fb_tile *);
53
54 void nv41_fb_init(struct nvkm_fb *);
55 void nv41_fb_tile_prog(struct nvkm_fb *, int, struct nvkm_fb_tile *);
56
57 void nv44_fb_init(struct nvkm_fb *);
58 void nv44_fb_tile_prog(struct nvkm_fb *, int, struct nvkm_fb_tile *);
59
60 void nv46_fb_tile_init(struct nvkm_fb *, int i, u32 addr, u32 size,
61 u32 pitch, u32 flags, struct nvkm_fb_tile *);
62
63 int gf100_fb_oneinit(struct nvkm_fb *);
64 void gf100_fb_init_page(struct nvkm_fb *);
65 bool gf100_fb_memtype_valid(struct nvkm_fb *, u32);
66 #endif
This page took 0.045335 seconds and 5 git commands to generate.