1 #ifndef __GF100_BAR_H__ 2 #define __GF100_BAR_H__ 3 #define gf100_bar(p) container_of((p), struct gf100_bar, base) 4 #include "priv.h" 5 6 struct gf100_bar_vm { 7 struct nvkm_memory *mem; 8 struct nvkm_gpuobj *pgd; 9 struct nvkm_vm *vm; 10 }; 11 12 struct gf100_bar { 13 struct nvkm_bar base; 14 struct gf100_bar_vm bar[2]; 15 }; 16 17 int gf100_bar_new_(const struct nvkm_bar_func *, struct nvkm_device *, 18 int, struct nvkm_bar **); 19 void *gf100_bar_dtor(struct nvkm_bar *); 20 int gf100_bar_oneinit(struct nvkm_bar *); 21 int gf100_bar_init(struct nvkm_bar *); 22 int gf100_bar_umap(struct nvkm_bar *, u64, int, struct nvkm_vma *); 23 #endif 24