From 06cb70200742dad08de5e89b275a73b7c0b0f37b Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 19 May 2018 10:46:40 -0500 Subject: gpu_util.c: add nvidia specific information from procfs Signed-off-by: Burt P --- includes/gpu_util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'includes/gpu_util.h') diff --git a/includes/gpu_util.h b/includes/gpu_util.h index 535fb6e8..be69e941 100644 --- a/includes/gpu_util.h +++ b/includes/gpu_util.h @@ -23,6 +23,12 @@ #include "pci_util.h" #include "dt_util.h" +typedef struct nvgpu { + char *model; + char *bios_version; + char *uuid; +} nvgpu; + typedef struct gpud { char *id; /* ours */ char *nice_name; @@ -36,6 +42,7 @@ typedef struct gpud { char *dt_compat; const char *dt_vendor, *dt_device; + nvgpu *nv_info; /* ... */ struct gpud *next; /* this is a linked list */ -- cgit v1.2.3