aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/dmi
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-10-30 22:00:09 +0100
committerErwan Velu <erwan.velu@free.fr>2009-10-30 22:00:09 +0100
commita1d88954b2913bb6b992077accad6b23c6767abe (patch)
tree3a061d45f702c9c2c3f65c9e7ca99e696053efa7 /com32/gplinclude/dmi
parentcf14910be4b9941247f5aebb8d901455532553dc (diff)
downloadsyslinux.git-a1d88954b2913bb6b992077accad6b23c6767abe.tar.gz
syslinux.git-a1d88954b2913bb6b992077accad6b23c6767abe.tar.xz
syslinux.git-a1d88954b2913bb6b992077accad6b23c6767abe.zip
dmi: Adding smbios detection
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
Diffstat (limited to 'com32/gplinclude/dmi')
-rw-r--r--com32/gplinclude/dmi/dmi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/gplinclude/dmi/dmi.h b/com32/gplinclude/dmi/dmi.h
index def0a8ea..72bc8dc4 100644
--- a/com32/gplinclude/dmi/dmi.h
+++ b/com32/gplinclude/dmi/dmi.h
@@ -13,6 +13,7 @@
#ifndef DMI_H
#define DMI_H
#include <inttypes.h>
+#define DMI_BUFFER_SIZE 16
#define MAX_DMI_MEMORY_ITEMS 32
#define MAX_DMI_CACHE_ITEMS 32
#define OEM_STRINGS_SIZE 512
@@ -86,7 +87,7 @@ typedef struct {
void to_dmi_header(struct dmi_header *h, uint8_t * data);
void dmi_bios_runtime_size(uint32_t code, s_dmi * dmi);
const char *dmi_string(struct dmi_header *dm, uint8_t s);
-int dmi_checksum(uint8_t * buf);
+int dmi_checksum(uint8_t * buf, int len);
void parse_dmitable(s_dmi * dmi);
void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi * dmi);
int dmi_iterate(s_dmi * dmi);