Source
1
1
// SPDX-License-Identifier: GPL-2.0
2
2
/*
3
-
* Purpose: Export the firmware instance and label associated with
4
-
* a pci device to sysfs
3
+
* Export the firmware instance and label associated with a PCI device to
4
+
* sysfs
5
+
*
5
6
* Copyright (C) 2010 Dell Inc.
6
7
* by Narendra K <Narendra_K@dell.com>,
7
8
* Jordan Hargrave <Jordan_Hargrave@dell.com>
8
9
*
9
10
* PCI Firmware Specification Revision 3.1 section 4.6.7 (DSM for Naming a
10
11
* PCI or PCI Express Device Under Operating Systems) defines an instance
11
12
* number and string name. This code retrieves them and exports them to sysfs.
12
13
* If the system firmware does not provide the ACPI _DSM (Device Specific
13
14
* Method), then the SMBIOS type 41 instance number and string is exported to
14
15
* sysfs.