aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/Makefile
diff options
context:
space:
mode:
authorNarendra_K@Dell.com <Narendra_K@Dell.com>2011-03-02 12:04:17 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-03-04 13:41:56 -0500
commit6058989bad05b82e78baacce69ec14f27a11b5fd (patch)
tree26353578e7e9a95d2ea101cd9a8e656d85ddd829 /drivers/pci/Makefile
parentcdb9755849fbaf2bb9c0a009ba5baa817a0f152d (diff)
PCI: Export ACPI _DSM provided firmware instance number and string name to sysfs
This patch exports ACPI _DSM (Device Specific Method) provided firmware instance number and string name of PCI devices as defined by 'PCI Firmware Specification Revision 3.1' section 4.6.7.( DSM for Naming a PCI or PCI Express Device Under Operating Systems) to sysfs. New files created are: /sys/bus/pci/devices/.../label which contains the firmware name for the device in question, and /sys/bus/pci/devices/.../acpi_index which contains the firmware device type instance for the given device. cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/acpi_index 1 cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/label Embedded Broadcom 5709C NIC 1 cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/acpi_index 2 cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/label Embedded Broadcom 5709C NIC 2 The ACPI _DSM provided firmware 'instance number' and 'string name' will be given priority if the firmware also provides 'SMBIOS type 41 device type instance and string'. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Jordan Hargrave <jordan_hargrave@dell.com> Signed-off-by: Narendra K <narendra_k@dell.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/Makefile')
-rw-r--r--drivers/pci/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile
index 98e6fdf34d30..bb1d3b2d81ec 100644
--- a/drivers/pci/Makefile
+++ b/drivers/pci/Makefile
@@ -53,8 +53,9 @@ obj-$(CONFIG_TILE) += setup-bus.o setup-irq.o
53 53
54# 54#
55# ACPI Related PCI FW Functions 55# ACPI Related PCI FW Functions
56# ACPI _DSM provided firmware instance and string name
56# 57#
57obj-$(CONFIG_ACPI) += pci-acpi.o 58obj-$(CONFIG_ACPI) += pci-acpi.o pci-label.o
58 59
59# SMBIOS provided firmware instance and labels 60# SMBIOS provided firmware instance and labels
60obj-$(CONFIG_DMI) += pci-label.o 61obj-$(CONFIG_DMI) += pci-label.o