3 #include <nvif/object.h>
6 struct nvif_object object;
19 #define NVIF_MEM_VRAM 0x01
20 #define NVIF_MEM_HOST 0x02
21 #define NVIF_MEM_COMP 0x04
22 #define NVIF_MEM_DISP 0x08
23 #define NVIF_MEM_KIND 0x10
24 #define NVIF_MEM_MAPPABLE 0x20
25 #define NVIF_MEM_COHERENT 0x40
26 #define NVIF_MEM_UNCACHED 0x80
34 int nvif_mmu_ctor(struct nvif_object *, const char *name, s32 oclass,
36 void nvif_mmu_dtor(struct nvif_mmu *);
39 nvif_mmu_kind_valid(struct nvif_mmu *mmu, u8 kind)
42 if (kind >= mmu->kind_nr || mmu->kind[kind] == mmu->kind_inv)
49 nvif_mmu_type(struct nvif_mmu *mmu, u8 mask)
52 for (i = 0; i < mmu->type_nr; i++) {
53 if ((mmu->type[i].type & mask) == mask)