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 | ␊ |
15 | typedef enum␊ |
16 | {␊ |
17 | ␉kSMBString,␊ |
18 | ␉kSMBByte,␊ |
19 | ␉kSMBWord,␊ |
20 | ␉kSMBDWord,␊ |
21 | ␉kSMBQWord␊ |
22 | } SMBValueType;␊ |
23 | ␊ |
24 | typedef union␊ |
25 | {␊ |
26 | ␉const char␉*string;␊ |
27 | ␉uint8_t␉␉byte;␊ |
28 | ␉uint16_t␉word;␊ |
29 | ␉uint32_t␉dword;␊ |
30 | ␉uint64_t␉qword;␊ |
31 | } returnType;␊ |
32 | ␊ |
33 | extern bool getProcessorInformationExternalClock(returnType *value);␊ |
34 | extern bool getProcessorInformationMaximumClock(returnType *value);␊ |
35 | extern bool getSMBOemProcessorBusSpeed(returnType *value);␊ |
36 | extern bool getSMBOemProcessorType(returnType *value);␊ |
37 | extern bool getSMBMemoryDeviceMemoryType(returnType *value);␊ |
38 | extern bool getSMBMemoryDeviceMemoryErrorHandle(returnType *value);␊ |
39 | extern bool getSMBMemoryDeviceMemorySpeed(returnType *value);␊ |
40 | extern bool getSMBMemoryDeviceManufacturer(returnType *value);␊ |
41 | extern bool getSMBMemoryDeviceSerialNumber(returnType *value);␊ |
42 | extern bool getSMBMemoryDevicePartNumber(returnType *value);␊ |
43 | ␊ |
44 | SMBEntryPoint *getAddressOfSmbiosTable(void);␊ |
45 | ␊ |
46 | #endif /* !__LIBSAIO_SMBIOS_GETTERS_H */␊ |
47 | |