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
6struct gf100_bar_vm {
7	struct nvkm_memory *mem;
8	struct nvkm_gpuobj *pgd;
9	struct nvkm_vm *vm;
10};
11
12struct gf100_bar {
13	struct nvkm_bar base;
14	struct gf100_bar_vm bar[2];
15};
16
17int gf100_bar_new_(const struct nvkm_bar_func *, struct nvkm_device *,
18		   int, struct nvkm_bar **);
19void *gf100_bar_dtor(struct nvkm_bar *);
20int gf100_bar_oneinit(struct nvkm_bar *);
21int gf100_bar_init(struct nvkm_bar *);
22int gf100_bar_umap(struct nvkm_bar *, u64, int, struct nvkm_vma *);
23#endif
24