1 /* SPDX-License-Identifier: MIT */
2 #ifndef __GF100_BAR_H__
3 #define __GF100_BAR_H__
4 #define gf100_bar(p) container_of((p), struct gf100_bar, base)
8 struct nvkm_memory
*inst
;
15 struct gf100_barN bar
[2];
18 int gf100_bar_new_(const struct nvkm_bar_func
*, struct nvkm_device
*,
19 int, struct nvkm_bar
**);
20 void *gf100_bar_dtor(struct nvkm_bar
*);
21 int gf100_bar_oneinit(struct nvkm_bar
*);
22 void gf100_bar_bar1_init(struct nvkm_bar
*);
23 void gf100_bar_bar1_wait(struct nvkm_bar
*);
24 struct nvkm_vmm
*gf100_bar_bar1_vmm(struct nvkm_bar
*);
25 void gf100_bar_bar2_init(struct nvkm_bar
*);
26 struct nvkm_vmm
*gf100_bar_bar2_vmm(struct nvkm_bar
*);