dmidecode-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] dmioem: Decode Dell-specific DMI type 177


From: Armin Wolf
Subject: [PATCH 2/2] dmioem: Decode Dell-specific DMI type 177
Date: Mon, 24 Jun 2024 22:43:05 +0200

OEM DMI type 177 contains various BIOS flags by the
dell-wmi-descriptor driver. Include the available
information in the output of dmidecode.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
 dmioem.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dmioem.c b/dmioem.c
index f24eacd..da2e9d8 100644
--- a/dmioem.c
+++ b/dmioem.c
@@ -136,6 +136,14 @@ static int dmi_decode_acer(const struct dmi_header *h)
  * Dell-specific data structures are decoded here.
  */

+static void dmi_dell_bios_flags(u64 flags)
+{
+       /*
+        * TODO: The meaning of the other bits is unknown.
+        */
+       pr_attr("ACPI WMI Supported",  "%s", (flags.l & (1 << 1)) ? "Yes" : 
"No");
+}
+
 static void dmi_dell_token_interface(const struct dmi_header *h)
 {
        int tokens = (h->length - 0x0B) / 0x06;
@@ -165,8 +173,16 @@ static void dmi_dell_token_interface(const struct 
dmi_header *h)

 static int dmi_decode_dell(const struct dmi_header *h)
 {
+       u8 *data = h->data;
+
        switch (h->type)
        {
+               case 177:
+                       pr_handle_name("Dell BIOS Flags");
+                       if (h->length < 0x0C) break;
+                       dmi_dell_bios_flags(QWORD(data + 0x04));
+                       break;
+
                case 218:
                        pr_handle_name("Dell Token Interface");
                        if (h->length < 0x0B) break;
--
2.39.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]