]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-kernels.git] / drivers / gpu / drm / nouveau / nvkm / subdev / bar / nv50.h
CommitLineData
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
7struct 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
19int nv50_bar_new_(const struct nvkm_bar_func *, struct nvkm_device *,
20 int, u32 pgd_addr, struct nvkm_bar **);
21void *nv50_bar_dtor(struct nvkm_bar *);
22int nv50_bar_oneinit(struct nvkm_bar *);
23int nv50_bar_init(struct nvkm_bar *);
24struct nvkm_vm *nv50_bar_kmap(struct nvkm_bar *);
25int nv50_bar_umap(struct nvkm_bar *, u64, int, struct nvkm_vma *);
26void nv50_bar_unmap(struct nvkm_bar *, struct nvkm_vma *);
27#endif