]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
5ce3bf3c BS |
2 | #ifndef __NV04_MMU_PRIV__ |
3 | #define __NV04_MMU_PRIV__ | |
c9582455 BS |
4 | #define nv04_mmu(p) container_of((p), struct nv04_mmu, base) |
5 | #include "priv.h" | |
5ce3bf3c | 6 | |
1f5bffca | 7 | struct nv04_mmu { |
42594600 BS |
8 | struct nvkm_mmu base; |
9 | struct nvkm_vm *vm; | |
5ce3bf3c BS |
10 | dma_addr_t null; |
11 | void *nullp; | |
12 | }; | |
13 | ||
c9582455 BS |
14 | int nv04_mmu_new_(const struct nvkm_mmu_func *, struct nvkm_device *, |
15 | int index, struct nvkm_mmu **); | |
16 | void *nv04_mmu_dtor(struct nvkm_mmu *); | |
17 | ||
18 | extern const struct nvkm_mmu_func nv04_mmu; | |
5ce3bf3c | 19 | #endif |