Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / drivers / gpu / drm / nouveau / include / nvif / if0008.h
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 };
10
11 #define NVIF_MMU_V0_HEAP                                                   0x00
12 #define NVIF_MMU_V0_TYPE                                                   0x01
13 #define NVIF_MMU_V0_KIND                                                   0x02
14
15 struct nvif_mmu_heap_v0 {
16         __u8  version;
17         __u8  index;
18         __u8  pad02[6];
19         __u64 size;
20 };
21
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;
34 };
35
36 struct nvif_mmu_kind_v0 {
37         __u8  version;
38         __u8  pad01[1];
39         __u16 count;
40         __u8  data[];
41 };
42 #endif