summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2016-09-05 12:11:41 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-09-21 14:07:23 -0400
commit7303dd33ef69f0a533ebce31caf658e9c35a7091 (patch)
treec5105b8dfdcaf59a61f4d58ee370139a9ed5696c /include/uapi
parentf5224bde147537f55cc0d6e90761471ab802cf19 (diff)
gpu: nvgpu: Expose PCI device id info
Expose PCI device id info for PCI devices. Bug 1643487 Change-Id: Ib0e3295b33c2343d99553a5c48e3f67d419d207b Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: http://git-master/r/1214946 (cherry picked from commit a6e23a315a094f1df1f7db8e4307a10d06f28411) Reviewed-on: http://git-master/r/1216336 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 66ea05b3..fe4e6de9 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -198,6 +198,13 @@ struct nvgpu_gpu_characteristics {
198 198
199 __u64 local_video_memory_size; /* in bytes, non-zero only for dGPUs */ 199 __u64 local_video_memory_size; /* in bytes, non-zero only for dGPUs */
200 200
201 /* These are meaningful only for PCI devices */
202 __u16 pci_vendor_id, pci_device_id;
203 __u16 pci_subsystem_vendor_id, pci_subsystem_device_id;
204 __u16 pci_class;
205 __u8 pci_revision;
206 __u8 reserved2[5];
207
201 /* Notes: 208 /* Notes:
202 - This struct can be safely appended with new fields. However, always 209 - This struct can be safely appended with new fields. However, always
203 keep the structure size multiple of 8 and make sure that the binary 210 keep the structure size multiple of 8 and make sure that the binary