Chameleon

Chameleon Svn Source Tree

Root/branches/Bungo/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/* '_SM_' in little endian: '_MS_' */
14#define SMBIOS_ANCHOR_UINT32_LE 0x5f4d535f
15
16#define NOT_AVAILABLE"N/A"
17
18typedef enum
19{
20kSMBString,
21kSMBByte,
22kSMBWord,
23kSMBDWord,
24kSMBQWord
25} SMBValueType;
26
27typedef union
28{
29const char*string;
30uint8_tbyte;
31uint16_tword;
32uint32_tdword;
33uint64_tqword;
34} returnType;
35
36extern bool getProcessorInformationExternalClock(returnType *value);
37extern bool getProcessorInformationMaximumClock(returnType *value);
38extern bool getSMBOemProcessorBusSpeed(returnType *value);
39extern bool getSMBOemProcessorType(returnType *value);
40extern bool getSMBMemoryDeviceMemoryType(returnType *value);
41extern bool getSMBMemoryDeviceMemoryErrorHandle(returnType *value);
42extern bool getSMBMemoryDeviceMemorySpeed(returnType *value);
43extern bool getSMBMemoryDeviceManufacturer(returnType *value);
44extern bool getSMBMemoryDeviceSerialNumber(returnType *value);
45extern bool getSMBMemoryDevicePartNumber(returnType *value);
46
47SMBEntryPoint *getAddressOfSmbiosTable(void);
48
49#endif /* !__LIBSAIO_SMBIOS_GETTERS_H */
50

Archive Download this file

Revision: 2839