From 2c23d1066f947e697240f5e61529c5b48407fa08 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 5 Nov 2014 10:12:17 +0200 Subject: gpu: nvgpu: Add class numbers to characteristics Some kernel APIs rely on user space knowing class numbers. Allow querying the numbers from kernel. Bug 1567274 Change-Id: Idec2fe8ee983ee74bcbf9dfc98f71bbcc1492cfb Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/594402 --- include/uapi/linux/nvgpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index b7f65d75..6bde9d41 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -122,6 +122,13 @@ struct nvgpu_gpu_characteristics { __u64 flags; + __u32 twod_class; + __u32 threed_class; + __u32 compute_class; + __u32 gpfifo_class; + __u32 inline_to_memory_class; + __u32 dma_copy_class; + /* Notes: - This struct can be safely appended with new fields. However, always keep the structure size multiple of 8 and make sure that the binary -- cgit v1.2.2