From owner-cvs-src@FreeBSD.ORG Thu Jul 14 19:52:23 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 290D716A41C; Thu, 14 Jul 2005 19:52:23 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED45D43D45; Thu, 14 Jul 2005 19:52:22 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j6EJqM1J009853; Thu, 14 Jul 2005 19:52:22 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from jkim@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j6EJqMVQ009846; Thu, 14 Jul 2005 19:52:22 GMT (envelope-from jkim) Message-Id: <200507141952.j6EJqMVQ009846@repoman.freebsd.org> From: Jung-uk Kim Date: Thu, 14 Jul 2005 19:52:22 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/boot/i386/libi386 Makefile libi386.h smbios.c src/sys/boot/i386/loader main.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 19:52:23 -0000 jkim 2005-07-14 19:52:22 UTC FreeBSD src repository Modified files: sys/boot/i386/libi386 Makefile libi386.h sys/boot/i386/loader main.c Added files: sys/boot/i386/libi386 smbios.c Log: Scan static SMBIOS structures and export the following environment variables to loader: hint.smbios.0.enabled "YES" when SMBIOS is detected hint.smbios.0.bios.vendor BIOS vendor hint.smbios.0.bios.version BIOS version hint.smbios.0.bios.reldate BIOS release date hint.smbios.0.system.maker System manufacturer hint.smbios.0.system.product System product name hint.smbios.0.system.version System version number hint.smbios.0.planar.maker Base board manufacturer hint.smbios.0.planar.product Base board product name hint.smbios.0.planar.version Base board version number hint.smbios.0.chassis.maker Enclosure manufacturer hint.smbios.0.chassis.version Enclosure version These strings can be used to detect hardware quirks and to set appropriate flags. For example, Compaq R3000 series and some HP laptops require hint.atkbd.0.flags="0x9" to boot. See amd64/67745 for more detail. Note: Please do not abuse this feature to resolve general problem when it can be fixed programmatically. This must be used as a last resort. PR: kern/81449 Approved by: anholt (mentor) Revision Changes Path 1.38 +1 -1 src/sys/boot/i386/libi386/Makefile 1.21 +2 -0 src/sys/boot/i386/libi386/libi386.h 1.1 +176 -0 src/sys/boot/i386/libi386/smbios.c (new) 1.32 +3 -0 src/sys/boot/i386/loader/main.c