aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2020-03-02 18:25:00 -0800
committerDavid S. Miller <[email protected]>2020-03-05 17:36:24 -0800
commit70c0923b0ef10b1c8d8f78fb50fcaef8eaae619d (patch)
tree13fa85fb4022d726761d0e49f3c01ffc014d8d03 /lib/test_overflow.c
parent367ab29e3d88be42504aca0af13f8ebb9451a1ed (diff)
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 <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Jeff Kirsher <[email protected]> Cc: Michael Chan <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions