Show
Ignore:
Timestamp:
10/30/09 21:00:09 (3 years ago)
Author:
Erwan Velu <erwan.velu@…>
Children:
512de9792b2fd4a9af1033ea6ef6c8033e4dfb9f, dee3fa2de1912a9ad88982f6e412656375d8ca3e, aa1724e7a975430c7b8b53359e94c225622f4957
Parents:
cf14910be4b9941247f5aebb8d901455532553dc
git-committer:
Erwan Velu <erwan.velu@free.fr> / 2009-10-30T22:00:09Z+0100
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/gplinclude/dmi/dmi.h

    r0b19ab ra1d889  
    1414#define DMI_H 
    1515#include <inttypes.h> 
     16#define DMI_BUFFER_SIZE 16  
    1617#define MAX_DMI_MEMORY_ITEMS 32 
    1718#define MAX_DMI_CACHE_ITEMS 32 
     
    8788void dmi_bios_runtime_size(uint32_t code, s_dmi * dmi); 
    8889const char *dmi_string(struct dmi_header *dm, uint8_t s); 
    89 int dmi_checksum(uint8_t * buf); 
     90int dmi_checksum(uint8_t * buf, int len); 
    9091void parse_dmitable(s_dmi * dmi); 
    9192void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi * dmi);