diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2020-03-03 05:25:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-06 04:36:24 +0300 |
commit | 70c0923b0ef10b1c8d8f78fb50fcaef8eaae619d (patch) | |
tree | 13fa85fb4022d726761d0e49f3c01ffc014d8d03 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 367ab29e3d88be42504aca0af13f8ebb9451a1ed (diff) | |
download | linux-70c0923b0ef10b1c8d8f78fb50fcaef8eaae619d.tar.xz |
PCI: Introduce pci_get_dsn
Several device drivers read their Device Serial Number from the PCIe
extended config space.
Introduce a new helper function, pci_get_dsn(). This function reads the
eight bytes of the DSN and returns them as a u64. If the capability does not
exist for the device, the function returns 0.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Michael Chan <michael.chan@broadcom.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions