aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/dmi
Commit message (Collapse)AuthorAgeFilesLines
* Fix all warnings, and better separate code that should not be mixedsyslinux-6.04-pre3H. Peter Anvin (Intel)2019-02-071-1/+1
| | | | | | | | | Clean up a number of warnings in the tree. Refactor especially the core code so we don't end up building a bunch of BIOS-specific code for EFI, and general build cleanups. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* gpllib: Updating dmi codeErwan Velu2015-09-046-30/+67
| | | | | | | | This is a simple rebase of the current code against current dmidecode version. This is pretty lame copy/paste but as we don't have a libification of dmidecode, that does the job. This patch does improve mostly the cpu & ram reporting.
* gpllib: fix sizeof(char *) misuseJonathan Boeing2015-05-031-10/+14
| | | | | | | | | | | | The code was passing sizeof(char *) - not the length of the buffer - to strlcpy and snprintf. Change the function to take the length of the buffer as a parameter. Fixes the warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* DMI: Adjusting structures size / Adding cpu coreLaurent Licour2011-01-304-22/+70
| | | | | This patch adds some correction of the dmi structures but also add the support of the cpu cores/threads.
* DMI: Fixing memory mgmnt in dmi_memory_module_typesLaurent Licour2010-07-072-14/+16
| | | | | In some case, dmi_memory_module_types could read the entire memory as a result of a bogus snprintf usage.
* Replacing strncpy by strlcpyErwan Velu2010-06-221-77/+77
| | | | | As reported by hpa, strlcpy is safer and could prevent some bugs. So I replaced all strncpy by strlcpy calls.
* Merge remote branch 'erwan/master'H. Peter Anvin2010-05-112-100/+167
|\
| * DMI: Fixing memory corruptionErwan Velu2010-05-062-100/+167
| | | | | | | | | | | | | | Impact: avoid memory corruption Too much usage of strcpy & sprintf was leading to serious memory corruption. Using snprintf & strncpy is prefered.
* | dmi_processor.c: remove unreachable table valuesH. Peter Anvin2010-01-101-50/+2
|/ | | | | | A uint8_t can't have values all the way up to 0x12e... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dmi: Switching processor voltage from V to mVErwan Velu2009-12-041-6/+6
| | | | | | Impact: Changing units Processor voltage is now millivolts
* dmi: more chassis typesErwan Velu2009-12-041-2/+6
| | | | | | Impact: more chassis types More DMI chassis types
* dmi: returning out of spec instead of NULLErwan Velu2009-12-041-1/+1
| | | | | | Impact: avoid null string It's better returning out of spec instead of null
* dmi: More processorsErwan Velu2009-12-041-2/+49
| | | | | | Impact: More processors More processors in the DMI table
* dmi: More cpu upgrade optionsErwan Velu2009-12-041-2/+2
| | | | | | Impact: many cpu upgrade were set out of spec Fixing stupid typo which prevent cpu upgrade options to be shown
* gpllibs: Running NindentErwan Velu2009-11-243-514/+547
| | | | | | Impact: visual Running Nindent on gpllib / gplinclude
* dmi: fix bank connections informationPierre-Alexandre Meyer2009-11-121-2/+2
| | | | | | | | | Ralf Carl reports that bank connections are incomplete (DMI type 6). Some information was left out during output formatting. This should fix #23. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* dmi: fix DMI type 6 outputPierre-Alexandre Meyer2009-11-121-3/+3
| | | | | | | | | Ralf Carl reports some garbage in the DMI type 6 output. It appears that some output formatting wasn't quite right. This should close #22. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* dmi: enhance SMBIOS/DMI detectionPierre-Alexandre Meyer2009-11-011-15/+32
| | | | | | Add missing sanity checks when parsing the SMBIOS table entry point. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* dmi: fix a strcpy (typo)Pierre-Alexandre Meyer2009-11-011-1/+1
| | | | | | Not sure why sprintf is being called here. It's probably strcpy that was meant. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* dmi: Adding smbios detectionErwan Velu2009-10-301-33/+54
| | | | | | | | Impact: Avoid misdetection of dmi version On some hosts, the legacy DMI version is reported as 0.0. We can use SMBIOS to get the real version. Solves HDT's ticket #8
* hdt: Fixing {s}printf typoErwan Velu2009-10-301-5/+5
| | | | | | | Impact: Avoid some unwanted printf Some dmi calls were using printf instead of sprintf. This solves ticket #11
* Merge commit 'hpa/master' into for-erwanPierre-Alexandre Meyer2009-08-048-1034/+1023
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/cmenu/libmenu/com32io.h com32/gplinclude/dmi/dmi.h com32/gplinclude/dmi/dmi_base_board.h com32/gplinclude/dmi/dmi_memory.h com32/gplinclude/dmi/dmi_system.h com32/gpllib/dmi/dmi.c com32/gpllib/dmi/dmi_memory.c com32/include/sys/pci.h com32/lib/pci/scan.c com32/modules/Makefile Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * Run Nindent on com32/gpllib/dmi/dmi_processor.cH. Peter Anvin2009-05-291-376/+374
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi_processor.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on com32/gpllib/dmi/dmi_memory.cH. Peter Anvin2009-05-291-106/+105
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi_memory.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on com32/gpllib/dmi/dmi_ipmi.cH. Peter Anvin2009-05-291-20/+17
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi_ipmi.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on com32/gpllib/dmi/dmi_chassis.cH. Peter Anvin2009-05-291-59/+59
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi_chassis.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on com32/gpllib/dmi/dmi_bios.cH. Peter Anvin2009-05-291-42/+42
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi_bios.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on com32/gpllib/dmi/dmi_battery.cH. Peter Anvin2009-05-291-27/+27
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi_battery.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on com32/gpllib/dmi/dmi_base_board.cH. Peter Anvin2009-05-291-6/+6
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi_base_board.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on com32/gpllib/dmi/dmi.cH. Peter Anvin2009-05-291-527/+546
| | | | | | | | | | | | | | | | | | Automatically reformat com32/gpllib/dmi/dmi.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Global whitespace cleanup.H. Peter Anvin2009-04-206-6/+0
| | | | | | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | gpllib: Add support for 3.3.25 Hardware Security (Type 24) (dmi)Pierre-Alexandre Meyer2009-05-271-0/+32
| | | | | | | | | | | | | | | | | | From SMBIOS spec (v2.6.1): This structure describes the system-wide hardware security settings. Note: This structure type was added for specification v2.2. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Add support for 3.3.12 OEM Strings (Type 11) (dmi)Pierre-Alexandre Meyer2009-05-271-0/+19
| | | | | | | | | | | | | | | | | | | | From SMBIOS spec (v2.6.1): This structure contains free form strings defined by the OEM. Examples of this are: Part Numbers for Reference Documents for the system, contact information for the manufacturer, etc. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Add support for 3.3.11 On Board Devices Information (Type 10, ↵Pierre-Alexandre Meyer2009-05-261-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | obsolete) (dmi) From SMBIOS spec (v2.6.1): The information in this structure defines the attributes of devices that are onboard (soldered onto) a system element, usually the baseboard. In general, an entry in this table implies that the BIOS has some level of control over the enabling of the associated device for use by the system. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Add support for 3.3.24 System Reset (Type 23) (dmi)Pierre-Alexandre Meyer2009-05-261-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From SMBIOS spec (v2.6.1): This structure describes whether Automatic System Reset functions enabled (Status). If the system has a watchdog Timer and the timer is not reset (Timer Reset) before the Interval elapses, an automatic system reset will occur. The system will re-boot according to the Boot Option. This function may repeat until the Limit is reached, at which time the system will re-boot according to the Boot Option at Limit. Note: This structure type was added for specification v2.2. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Add support for 3.3.13 System Configuration Options (Type 12) (dmi)Pierre-Alexandre Meyer2009-05-261-0/+19
| | | | | | | | | | | | | | | | | | From SMBIOS spec (v.2.6.1): This structure contains information required to configure the base board’s Jumpers and Switches. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | Merge branch 'for-erwan' of git://git.zytor.com/users/pam/hdt-pierre into ↵Pierre-Alexandre Meyer2009-05-142-1/+106
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for-erwan Conflicts: com32/gplinclude/dmi/dmi.h com32/gpllib/dmi/dmi.c com32/hdt/hdt-cli-dmi.c Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | gpllib: Add Memory Module Information (Type 6, Obsolete) (DMI)Pierre-Alexandre Meyer2009-05-082-0/+105
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SMBIOS specification defines: 3.3.7 Memory Module Information (Type 6, Obsolete) From the spec (v2.6.1): One Memory Module Information structure is included for each memory-module socket in the system. The structure describes the speed, type, size, and error status of each system memory module. The supported attributes of each module are described by the “owning” Memory Controller Information structure. Note: This structure, and its companion Memory Controller Information (Type 5, Obsolete), are obsolete starting with version 2.1 of this specification; the Physical Memory Array (Type 16) and Memory Device (Type 17) structures should be used instead. BIOS providers might choose to implement both memory description types to allow existing DMI browsers to properly display the system’s memory attributes. This patch adds decoding support for this type. Adapted from the dmidecode project. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Prevent overflow in memory type (dmi)Pierre-Alexandre Meyer2009-05-141-0/+1
| | | | | | | | | | | | | | | | | | We can store up to MAX_DMI_MEMORY_ITEMS memory modules information. Make sure we don't overflow. (Impact: bug fix) Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Remove extra \n in oem chassis information (dmi)Pierre-Alexandre Meyer2009-05-141-1/+1
| | | | | | | | | | | | Cleanup chassis oem information string. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Add support for 3.3.33 System Boot Information (Type 32) (dmi)Pierre-Alexandre Meyer2009-05-141-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From SMBIOS spec (v2.6.1): 3.3.33 System Boot Information (Type 32): The client system firmware, e.g. BIOS, communicates the System Boot Status to the client’s Pre-boot Execution Environment (PXE) boot image or OS-present management application via this structure. When used in the PXE environment, for example, this code identifies the reason the PXE was initiated and can be used by boot-image software to further automate an enterprise’s PXE sessions. For example, an enterprise could choose to automatically download a hardware-diagnostic image to a client whose reason code indicated either a firmware- or operating system-detected hardware failure. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Add support for Cache Information (Type 7) (dmi)Pierre-Alexandre Meyer2009-05-142-1/+168
|/ | | | | | | | | | | | | | | | From the SMBIOS spec (v2.6.1): 3.3.8 Cache Information (Type 7): The information in this structure defines the attributes of CPU cache device in the system. One structure is specified for each such device, whether the device is internal to or external to the CPU module. Cache modules can be associated with a processor structure in one or two ways depending on the SMBIOS version, see 3.3.5 Processor Information (Type 4) on page 25 and 3.3.15 Group Associations (Type 14) on page 46 for more information. Implementation mostly borrowed from the dmidecode project. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* dmi: Adding IPMI detectionErwan Velu2009-03-222-2/+79
| | | | | | Impact: IPMI base board can now be detected Detecting IPMI via DMI structures
* Moving dmi & cpuid stuff to gpl subdirsErwan Velu2009-03-127-0/+1505
Fixing copyrights Moving dmi includes to gplinclude/dmi Moving dmi code to gpllib/dmi/ Moving cpuid includes to gplinclude/ Moving cpuid code to gpllib/ Fixing Makefiles accordingly