Chameleon

Chameleon Svn Source Tree

Root/trunk/i386/libsaio/smbios_getters.h

1
2#include "libsaio.h"
3#include "smbios.h"
4#include "platform.h"
5#include "pci.h"
6
7#ifndef __LIBSAIO_SMBIOS_GETTERS_H
8#define __LIBSAIO_SMBIOS_GETTERS_H
9
10#define SMBIOS_RANGE_START 0x000F0000
11#define SMBIOS_RANGE_END 0x000FFFFF
12
13#define NOT_AVAILABLE"N/A"
14
15typedef enum
16{
17kSMBString,
18kSMBByte,
19kSMBWord,
20kSMBDWord,
21kSMBQWord
22} SMBValueType;
23
24typedef union
25{
26const char*string;
27uint8_tbyte;
28uint16_tword;
29uint32_tdword;
30uint64_tqword;
31} returnType;
32
33extern bool getProcessorInformationExternalClock(returnType *value);
34extern bool getProcessorInformationMaximumClock(returnType *value);
35extern bool getSMBOemProcessorBusSpeed(returnType *value);
36extern bool getSMBOemProcessorType(returnType *value);
37extern bool getSMBMemoryDeviceMemoryType(returnType *value);
38extern bool getSMBMemoryDeviceMemoryErrorHandle(returnType *value);
39extern bool getSMBMemoryDeviceMemorySpeed(returnType *value);
40extern bool getSMBMemoryDeviceManufacturer(returnType *value);
41extern bool getSMBMemoryDeviceSerialNumber(returnType *value);
42extern bool getSMBMemoryDevicePartNumber(returnType *value);
43
44SMBEntryPoint *getAddressOfSmbiosTable(void);
45
46#endif /* !__LIBSAIO_SMBIOS_GETTERS_H */
47

Archive Download this file

Revision: 2636