PCI: export SMBIOS provided firmware instance and label to sysfs
authorNarendra K <Narendra_K@dell.com>
Mon, 26 Jul 2010 10:56:50 +0000 (05:56 -0500)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 30 Jul 2010 16:36:01 +0000 (09:36 -0700)
commit911e1c9b05a8e3559a7aa89083930700a0b9e7ee
treef0b95455c3808c7732ae819bfbb33332830bae00
parent8633328be242677fdedc42052838dd0608e7f342
PCI: export SMBIOS provided firmware instance and label to sysfs

This patch exports SMBIOS provided firmware instance and label of
onboard PCI devices to sysfs.  New files are:
  /sys/bus/pci/devices/.../label which contains the firmware name for
the device in question, and
  /sys/bus/pci/devices/.../index which contains the firmware device type
instance for the given device.

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>
Documentation/ABI/testing/sysfs-bus-pci
drivers/firmware/dmi_scan.c
drivers/pci/Makefile
drivers/pci/pci-label.c [new file with mode: 0644]
drivers/pci/pci-sysfs.c
drivers/pci/pci.h
include/linux/dmi.h