]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
32932281 BS |
2 | #ifndef __NV50_BAR_H__ |
3 | #define __NV50_BAR_H__ | |
4 | #define nv50_bar(p) container_of((p), struct nv50_bar, base) | |
5 | #include "priv.h" | |
6 | ||
7 | struct nv50_bar { | |
8 | struct nvkm_bar base; | |
9 | u32 pgd_addr; | |
10 | struct nvkm_gpuobj *mem; | |
11 | struct nvkm_gpuobj *pad; | |
12 | struct nvkm_gpuobj *pgd; | |
13 | struct nvkm_vm *bar1_vm; | |
14 | struct nvkm_gpuobj *bar1; | |
15 | struct nvkm_vm *bar3_vm; | |
16 | struct nvkm_gpuobj *bar3; | |
17 | }; | |
18 | ||
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 | int nv50_bar_init(struct nvkm_bar *); | |
24 | struct nvkm_vm *nv50_bar_kmap(struct nvkm_bar *); | |
25 | int nv50_bar_umap(struct nvkm_bar *, u64, int, struct nvkm_vma *); | |
26 | void nv50_bar_unmap(struct nvkm_bar *, struct nvkm_vma *); | |
27 | #endif |