]>
Commit | Line | Data |
---|---|---|
52225551 BS |
1 | #ifndef __NVKM_BAR_PRIV_H__ |
2 | #define __NVKM_BAR_PRIV_H__ | |
32932281 | 3 | #define nvkm_bar(p) container_of((p), struct nvkm_bar, subdev) |
52225551 BS |
4 | #include <subdev/bar.h> |
5 | ||
32932281 BS |
6 | void nvkm_bar_ctor(const struct nvkm_bar_func *, struct nvkm_device *, |
7 | int, struct nvkm_bar *); | |
52225551 | 8 | |
32932281 BS |
9 | struct nvkm_bar_func { |
10 | void *(*dtor)(struct nvkm_bar *); | |
11 | int (*oneinit)(struct nvkm_bar *); | |
e69dae85 | 12 | void (*init)(struct nvkm_bar *); |
7313cfa4 BS |
13 | |
14 | struct { | |
15 | void (*init)(struct nvkm_bar *); | |
bbb163e1 | 16 | void (*fini)(struct nvkm_bar *); |
7313cfa4 | 17 | void (*wait)(struct nvkm_bar *); |
570889dc | 18 | struct nvkm_vmm *(*vmm)(struct nvkm_bar *); |
48fe0247 | 19 | } bar1, bar2; |
7313cfa4 | 20 | |
32932281 BS |
21 | void (*flush)(struct nvkm_bar *); |
22 | }; | |
52225551 | 23 | |
bbb163e1 | 24 | void nv50_bar_bar1_fini(struct nvkm_bar *); |
e988952e | 25 | void nv50_bar_bar2_fini(struct nvkm_bar *); |
bbb163e1 | 26 | |
245dcfe9 | 27 | void g84_bar_flush(struct nvkm_bar *); |
bbb163e1 BS |
28 | |
29 | void gf100_bar_bar1_fini(struct nvkm_bar *); | |
e988952e | 30 | void gf100_bar_bar2_fini(struct nvkm_bar *); |
70433b90 BS |
31 | |
32 | void gm107_bar_bar1_wait(struct nvkm_bar *); | |
52225551 | 33 | #endif |