forked from luck/tmp_suning_uos_patched
6058989bad
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> |
||
---|---|---|
.. | ||
debugfs-ec | ||
debugfs-pktcdvd | ||
ima_policy | ||
procfs-diskstats | ||
sysfs-ata | ||
sysfs-block | ||
sysfs-block-zram | ||
sysfs-bus-css | ||
sysfs-bus-i2c-devices-hm6352 | ||
sysfs-bus-pci | ||
sysfs-bus-pci-devices-cciss | ||
sysfs-bus-rbd | ||
sysfs-bus-umc | ||
sysfs-bus-usb | ||
sysfs-bus-usb-devices-usbsevseg | ||
sysfs-c2port | ||
sysfs-class | ||
sysfs-class-bdi | ||
sysfs-class-lcd | ||
sysfs-class-led | ||
sysfs-class-mtd | ||
sysfs-class-net-batman-adv | ||
sysfs-class-net-mesh | ||
sysfs-class-pktcdvd | ||
sysfs-class-power | ||
sysfs-class-regulator | ||
sysfs-class-uwb_rc | ||
sysfs-class-uwb_rc-wusbhc | ||
sysfs-dev | ||
sysfs-devices | ||
sysfs-devices-memory | ||
sysfs-devices-node | ||
sysfs-devices-platform-_UDC_-gadget | ||
sysfs-devices-power | ||
sysfs-devices-system-cpu | ||
sysfs-devices-system-ibm-rtl | ||
sysfs-driver-hid-picolcd | ||
sysfs-driver-hid-prodikeys | ||
sysfs-driver-hid-roccat-kone | ||
sysfs-driver-hid-roccat-koneplus | ||
sysfs-driver-hid-roccat-pyra | ||
sysfs-firmware-acpi | ||
sysfs-firmware-memmap | ||
sysfs-firmware-sfi | ||
sysfs-firmware-sgi_uv | ||
sysfs-fs-ext4 | ||
sysfs-gpio | ||
sysfs-i2c-bmp085 | ||
sysfs-ibft | ||
sysfs-kernel-mm | ||
sysfs-kernel-mm-hugepages | ||
sysfs-kernel-slab | ||
sysfs-kernel-uids | ||
sysfs-memory-page-offline | ||
sysfs-module | ||
sysfs-ocfs2 | ||
sysfs-platform-asus-laptop | ||
sysfs-platform-at91 | ||
sysfs-platform-eeepc-laptop | ||
sysfs-platform-eeepc-wmi | ||
sysfs-platform-ideapad-laptop | ||
sysfs-power | ||
sysfs-pps | ||
sysfs-profiling | ||
sysfs-tty | ||
sysfs-wacom | ||
sysfs-wusb_cbaf |