1 /* SPDX-License-Identifier: MIT */
4 #define nv50_bar(p) container_of((p), struct nv50_bar, base)
10 struct nvkm_gpuobj
*mem
;
11 struct nvkm_gpuobj
*pad
;
12 struct nvkm_gpuobj
*pgd
;
13 struct nvkm_vmm
*bar1_vmm
;
14 struct nvkm_gpuobj
*bar1
;
15 struct nvkm_vmm
*bar2_vmm
;
16 struct nvkm_gpuobj
*bar2
;
19 int nv50_bar_new_(const struct nvkm_bar_func
*, struct nvkm_device
*,
20 int, u32 pgd_addr
, struct nvkm_bar
**);
21 void *nv50_bar_dtor(struct nvkm_bar
*);
22 int nv50_bar_oneinit(struct nvkm_bar
*);
23 void nv50_bar_init(struct nvkm_bar
*);
24 void nv50_bar_bar1_init(struct nvkm_bar
*);
25 void nv50_bar_bar1_wait(struct nvkm_bar
*);
26 struct nvkm_vmm
*nv50_bar_bar1_vmm(struct nvkm_bar
*);
27 void nv50_bar_bar2_init(struct nvkm_bar
*);
28 struct nvkm_vmm
*nv50_bar_bar2_vmm(struct nvkm_bar
*);