aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2008-01-23 20:01:22 -0500
committerLen Brown <len.brown@intel.com>2008-01-23 21:23:29 -0500
commit5a4e143271b97dcaa113761a76942c4d4bc273a2 (patch)
treee72231310621ad13d764b8e86c692e70f6d1c466 /drivers
parentf89e3b0620a0dc19f313218f55373b9361142203 (diff)
ACPI: create acpi_dmi_dump()
A utility routine to print common entries used for ACPI-related DMI blacklist entries. Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/osl.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index e3a673a00845..93ad5f40f2ea 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)
1141 return (AE_OK); 1141 return (AE_OK);
1142} 1142}
1143 1143
1144/**
1145 * acpi_dmi_dump - dump DMI slots needed for blacklist entry
1146 *
1147 * Returns 0 on success
1148 */
1149int acpi_dmi_dump(void)
1150{
1151
1152 if (!dmi_available)
1153 return -1;
1154
1155 printk(KERN_NOTICE PREFIX "DMI System Vendor: %s\n",
1156 dmi_get_slot(DMI_SYS_VENDOR));
1157 printk(KERN_NOTICE PREFIX "DMI Product Name: %s\n",
1158 dmi_get_slot(DMI_PRODUCT_NAME));
1159 printk(KERN_NOTICE PREFIX "DMI Product Version: %s\n",
1160 dmi_get_slot(DMI_PRODUCT_VERSION));
1161 printk(KERN_NOTICE PREFIX "DMI Board Name: %s\n",
1162 dmi_get_slot(DMI_BOARD_NAME));
1163 printk(KERN_NOTICE PREFIX "DMI BIOS Vendor: %s\n",
1164 dmi_get_slot(DMI_BIOS_VENDOR));
1165 printk(KERN_NOTICE PREFIX "DMI BIOS Date: %s\n",
1166 dmi_get_slot(DMI_BIOS_DATE));
1167
1168 return 0;
1169}
1170
1171
1144/****************************************************************************** 1172/******************************************************************************
1145 * 1173 *
1146 * FUNCTION: acpi_os_validate_interface 1174 * FUNCTION: acpi_os_validate_interface