Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: wmi: Add device specific documentation

Add a place for device-specific documentation of WMI drivers.
The first entry is documentation for the wmi-bmof driver, with
additional documentation being expected to follow.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20230424222939.208137-5-W_Armin@gmx.de
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Armin Wolf and committed by
Hans de Goede
bf4f93c4 e8f8b448

+64 -2
+7
Documentation/ABI/stable/sysfs-platform-wmi-bmof
··· 1 + What: /sys/bus/wmi/devices/05901221-D566-11D1-B2F0-00A0C9062910[-X]/bmof 2 + Date: Jun 2017 3 + KernelVersion: 4.13 4 + Description: 5 + Binary MOF metadata used to decribe the details of available ACPI WMI interfaces. 6 + 7 + See Documentation/wmi/devices/wmi-bmof.rst for details.
+22
Documentation/wmi/devices/index.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0-or-later 2 + 3 + ============================= 4 + Driver-specific Documentation 5 + ============================= 6 + 7 + This section provides information about various devices supported by 8 + the Linux kernel, their protocols and driver details. 9 + 10 + .. toctree:: 11 + :maxdepth: 1 12 + :numbered: 13 + :glob: 14 + 15 + * 16 + 17 + .. only:: subproject and html 18 + 19 + Indices 20 + ======= 21 + 22 + * :ref:`genindex`
+25
Documentation/wmi/devices/wmi-bmof.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0-only 2 + 3 + ============================== 4 + WMI embedded Binary MOF driver 5 + ============================== 6 + 7 + Introduction 8 + ============ 9 + 10 + Many machines embed WMI Binary MOF (Managed Object Format) metadata used to 11 + describe the details of their ACPI WMI interfaces. The data can be decoded 12 + with tools like `bmfdec <https://github.com/pali/bmfdec>`_ to obtain a 13 + human readable WMI interface description, which is useful for developing 14 + new WMI drivers. 15 + 16 + The Binary MOF data can be retrieved from the ``bmof`` sysfs attribute of the 17 + associated WMI device. Please note that multiple WMI devices containing Binary 18 + MOF data can exist on a given system. 19 + 20 + WMI interface 21 + ============= 22 + 23 + The Binary MOF WMI device is identified by the WMI GUID ``05901221-D566-11D1-B2F0-00A0C9062910``. 24 + The Binary MOF can be obtained by doing a WMI data block query. The result is 25 + then returned as an ACPI buffer with a variable size.
+1
Documentation/wmi/index.rst
··· 8 8 :maxdepth: 1 9 9 10 10 acpi-interface 11 + devices/index 11 12 12 13 .. only:: subproject and html 13 14
+7
MAINTAINERS
··· 22739 22739 S: Odd fixes 22740 22740 F: drivers/net/wireless/legacy/wl3501* 22741 22741 22742 + WMI BINARY MOF DRIVER 22743 + L: platform-drivers-x86@vger.kernel.org 22744 + S: Orphan 22745 + F: Documentation/ABI/stable/sysfs-platform-wmi-bmof 22746 + F: Documentation/wmi/devices/wmi-bmof.rst 22747 + F: drivers/platform/x86/wmi-bmof.c 22748 + 22742 22749 WOLFSON MICROELECTRONICS DRIVERS 22743 22750 L: patches@opensource.cirrus.com 22744 22751 S: Supported
+2 -2
drivers/platform/x86/Kconfig
··· 43 43 default ACPI_WMI 44 44 help 45 45 Say Y here if you want to be able to read a firmware-embedded 46 - WMI Binary MOF data. Using this requires userspace tools and may be 47 - rather tedious. 46 + WMI Binary MOF (Managed Object Format) data. Using this requires 47 + userspace tools and may be rather tedious. 48 48 49 49 To compile this driver as a module, choose M here: the module will 50 50 be called wmi-bmof.