Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5a4e143271b97dcaa113761a76942c4d4bc273a2
Commit:     5a4e143271b97dcaa113761a76942c4d4bc273a2
Parent:     f89e3b0620a0dc19f313218f55373b9361142203
Author:     Len Brown <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 23 20:01:22 2008 -0500
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Wed Jan 23 21:23:29 2008 -0500

    ACPI: create acpi_dmi_dump()
    
    A utility routine to print common entries used
    for ACPI-related DMI blacklist entries.
    
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/osl.c |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index e3a673a..93ad5f4 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1141,6 +1141,34 @@ acpi_status acpi_os_release_object(acpi_cache_t * cache, 
void *object)
        return (AE_OK);
 }
 
+/**
+ *     acpi_dmi_dump - dump DMI slots needed for blacklist entry
+ *
+ *     Returns 0 on success
+ */
+int acpi_dmi_dump(void)
+{
+
+       if (!dmi_available)
+               return -1;
+
+       printk(KERN_NOTICE PREFIX "DMI System Vendor: %s\n",
+               dmi_get_slot(DMI_SYS_VENDOR));
+       printk(KERN_NOTICE PREFIX "DMI Product Name: %s\n",
+               dmi_get_slot(DMI_PRODUCT_NAME));
+       printk(KERN_NOTICE PREFIX "DMI Product Version: %s\n",
+               dmi_get_slot(DMI_PRODUCT_VERSION));
+       printk(KERN_NOTICE PREFIX "DMI Board Name: %s\n",
+               dmi_get_slot(DMI_BOARD_NAME));
+       printk(KERN_NOTICE PREFIX "DMI BIOS Vendor: %s\n",
+               dmi_get_slot(DMI_BIOS_VENDOR));
+       printk(KERN_NOTICE PREFIX "DMI BIOS Date: %s\n",
+               dmi_get_slot(DMI_BIOS_DATE));
+
+       return 0;
+}
+
+
 /******************************************************************************
  *
  * FUNCTION:    acpi_os_validate_interface
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to