OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
MacInfoInternal.h
Go to the documentation of this file.
1
15#ifndef MAC_INFO_INTERNAL_H
16#define MAC_INFO_INTERNAL_H
17
18#define MAC_INFO_PLATFORM_FEATURE_MISSING 0xFFFFFFFFU
19
20#define MAC_INFO_BOARD_REVISION_MISSING 0xFFU
21
22typedef struct {
23 CONST CHAR8 *CONST SystemProductName;
24 CONST CHAR8 *CONST BoardProduct;
25 CONST UINT8 BoardRevision;
26 CONST UINT8 SmcRevision[6];
27 CONST UINT8 SmcBranch[8];
28 CONST UINT8 SmcPlatform[8];
29 CONST CHAR8 *CONST BIOSVersion;
30 CONST CHAR8 *CONST BIOSReleaseDate;
31 CONST CHAR8 *CONST SystemVersion;
32 CONST CHAR8 *CONST SystemSKUNumber;
33 CONST CHAR8 *CONST SystemFamily;
34 CONST CHAR8 *CONST BoardVersion;
35 CONST CHAR8 *CONST BoardAssetTag;
36 CONST CHAR8 *CONST BoardLocationInChassis;
37 CONST UINT8 SmcGeneration;
38 CONST UINT8 BoardType;
39 CONST UINT8 ChassisType;
40 CONST UINT8 MemoryFormFactor;
41 CONST UINT32 PlatformFeature;
42 CONST CHAR8 *CONST ChassisAssetTag;
43 CONST UINT64 FirmwareFeatures;
45 CONST CHAR8 *CONST SecureBootModel;
47
48//
49// Statically compiled array with model entries.
50// The array is sorted by ProductName field.
51//
53
54//
55// Entry count in statically compiled array with model entries.
56//
57extern CONST UINTN gMacInfoModelCount;
58
59//
60// Default entry in a statically compiled array with model entries.
61//
62extern CONST UINTN gMacInfoDefaultModel;
63
64//
65// Entry in 64-bit compatibility table.
66//
67typedef struct {
68 //
69 // Mac model.
70 //
71 CONST CHAR8 *ModelName;
72 //
73 // Minimum major version for 64-bit kernel mode under 10.6.
74 //
76 //
77 // Minimum major version for 64-bit kernel mode under 10.7.
78 //
79 UINT8 LionMin64;
81
82#endif // MAC_INFO_INTERNAL_H
CONST UINTN gMacInfoModelCount
CONST MAC_INFO_INTERNAL_ENTRY gMacInfoModels[]
CONST UINTN gMacInfoDefaultModel
CONST CHAR8 *CONST SystemFamily
CONST CHAR8 *CONST ChassisAssetTag
CONST UINT64 FirmwareFeaturesMask
CONST CHAR8 *CONST BoardProduct
CONST CHAR8 *CONST BoardLocationInChassis
CONST CHAR8 *CONST BIOSReleaseDate
CONST CHAR8 *CONST BIOSVersion
CONST CHAR8 *CONST BoardAssetTag
CONST CHAR8 *CONST SecureBootModel
CONST CHAR8 *CONST SystemProductName
CONST CHAR8 *CONST SystemVersion
CONST CHAR8 *CONST BoardVersion
CONST CHAR8 *CONST SystemSKUNumber