aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs2015-10-29 18:27:13 -0500
committerBen Skeggs2015-12-21 21:21:05 -0600
commitd1ec093e4c5b08c3825fe07e287aa3d023e9c9ae (patch)
tree95a925dd6c1876fd9b0ba942ed83be31904badc1 /nouveau/nvif/if0002.h
parent0cfb6a39864c3ebc7802107a8e4ddac67195d4cd (diff)
downloadexternal-libgbm-d1ec093e4c5b08c3825fe07e287aa3d023e9c9ae.tar.gz
external-libgbm-d1ec093e4c5b08c3825fe07e287aa3d023e9c9ae.tar.xz
external-libgbm-d1ec093e4c5b08c3825fe07e287aa3d023e9c9ae.zip
nouveau: import and install a selection of nvif headers from the kernel
This commit also modifies the install path of the main libdrm_nouveau header to be under a nouveau/ subdirectory. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'nouveau/nvif/if0002.h')
-rw-r--r--nouveau/nvif/if0002.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/nouveau/nvif/if0002.h b/nouveau/nvif/if0002.h
new file mode 100644
index 00000000..c04c91d0
--- /dev/null
+++ b/nouveau/nvif/if0002.h
@@ -0,0 +1,38 @@
1#ifndef __NVIF_IF0002_H__
2#define __NVIF_IF0002_H__
3
4#define NVIF_PERFMON_V0_QUERY_DOMAIN 0x00
5#define NVIF_PERFMON_V0_QUERY_SIGNAL 0x01
6#define NVIF_PERFMON_V0_QUERY_SOURCE 0x02
7
8struct nvif_perfmon_query_domain_v0 {
9 __u8 version;
10 __u8 id;
11 __u8 counter_nr;
12 __u8 iter;
13 __u16 signal_nr;
14 __u8 pad05[2];
15 char name[64];
16};
17
18struct nvif_perfmon_query_signal_v0 {
19 __u8 version;
20 __u8 domain;
21 __u16 iter;
22 __u8 signal;
23 __u8 source_nr;
24 __u8 pad05[2];
25 char name[64];
26};
27
28struct nvif_perfmon_query_source_v0 {
29 __u8 version;
30 __u8 domain;
31 __u8 signal;
32 __u8 iter;
33 __u8 pad04[4];
34 __u32 source;
35 __u32 mask;
36 char name[64];
37};
38#endif