Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvif / if0008.h
blobc21d09f04f1d6db5c0323c7e4622f2f53ffc86aa
1 #ifndef __NVIF_IF0008_H__
2 #define __NVIF_IF0008_H__
3 struct nvif_mmu_v0 {
4 __u8 version;
5 __u8 dmabits;
6 __u8 heap_nr;
7 __u8 type_nr;
8 __u16 kind_nr;
9 };
11 #define NVIF_MMU_V0_HEAP 0x00
12 #define NVIF_MMU_V0_TYPE 0x01
13 #define NVIF_MMU_V0_KIND 0x02
15 struct nvif_mmu_heap_v0 {
16 __u8 version;
17 __u8 index;
18 __u8 pad02[6];
19 __u64 size;
22 struct nvif_mmu_type_v0 {
23 __u8 version;
24 __u8 index;
25 __u8 heap;
26 __u8 vram;
27 __u8 host;
28 __u8 comp;
29 __u8 disp;
30 __u8 kind;
31 __u8 mappable;
32 __u8 coherent;
33 __u8 uncached;
36 struct nvif_mmu_kind_v0 {
37 __u8 version;
38 __u8 kind_inv;
39 __u16 count;
40 __u8 data[];
42 #endif