diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2016-09-05 12:11:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-21 14:07:23 -0400 |
commit | 7303dd33ef69f0a533ebce31caf658e9c35a7091 (patch) | |
tree | c5105b8dfdcaf59a61f4d58ee370139a9ed5696c /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | f5224bde147537f55cc0d6e90761471ab802cf19 (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 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 72170362..b534389e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -908,6 +908,12 @@ struct gk20a { | |||
908 | struct debugfs_blob_wrapper bios_blob; | 908 | struct debugfs_blob_wrapper bios_blob; |
909 | 909 | ||
910 | struct gk20a_ce_app ce_app; | 910 | struct gk20a_ce_app ce_app; |
911 | |||
912 | /* PCI device identifier */ | ||
913 | u16 pci_vendor_id, pci_device_id; | ||
914 | u16 pci_subsystem_vendor_id, pci_subsystem_device_id; | ||
915 | u16 pci_class; | ||
916 | u8 pci_revision; | ||
911 | }; | 917 | }; |
912 | 918 | ||
913 | static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) | 919 | static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) |