mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
f5224bde14
commit
7303dd33ef
@@ -198,6 +198,13 @@ struct nvgpu_gpu_characteristics {
|
||||
|
||||
__u64 local_video_memory_size; /* in bytes, non-zero only for dGPUs */
|
||||
|
||||
/* These are meaningful only for PCI devices */
|
||||
__u16 pci_vendor_id, pci_device_id;
|
||||
__u16 pci_subsystem_vendor_id, pci_subsystem_device_id;
|
||||
__u16 pci_class;
|
||||
__u8 pci_revision;
|
||||
__u8 reserved2[5];
|
||||
|
||||
/* 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
|
||||
|
||||
Reference in New Issue
Block a user