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