File: if0008.h

package info (click to toggle)
linux 6.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,488,076 kB
  • sloc: ansic: 23,401,844; asm: 266,744; sh: 108,976; makefile: 49,705; python: 36,927; perl: 36,810; cpp: 6,044; yacc: 4,904; lex: 2,722; awk: 1,440; ruby: 25; sed: 5
file content (42 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __NVIF_IF0008_H__
#define __NVIF_IF0008_H__
struct nvif_mmu_v0 {
	__u8  version;
	__u8  dmabits;
	__u8  heap_nr;
	__u8  type_nr;
	__u16 kind_nr;
};

#define NVIF_MMU_V0_HEAP                                                   0x00
#define NVIF_MMU_V0_TYPE                                                   0x01
#define NVIF_MMU_V0_KIND                                                   0x02

struct nvif_mmu_heap_v0 {
	__u8  version;
	__u8  index;
	__u8  pad02[6];
	__u64 size;
};

struct nvif_mmu_type_v0 {
	__u8  version;
	__u8  index;
	__u8  heap;
	__u8  vram;
	__u8  host;
	__u8  comp;
	__u8  disp;
	__u8  kind;
	__u8  mappable;
	__u8  coherent;
	__u8  uncached;
};

struct nvif_mmu_kind_v0 {
	__u8  version;
	__u8  kind_inv;
	__u16 count;
	__u8  data[];
};
#endif