OpenCore
1.0.4
OpenCore Bootloader
|
Go to the source code of this file.
Data Structures | |
struct | MAC_INFO_DATA_SMBIOS_ |
struct | MAC_INFO_DATA_DATAHUB_ |
struct | MAC_INFO_DATA_OEM_ |
struct | MAC_INFO_DATA_ |
Macros | |
#define | OC_OEM_NAME_MAX 48 |
#define | OC_OEM_SERIAL_MAX 24 |
#define | OC_OEM_ROM_MAX 6 |
Typedefs | |
typedef struct MAC_INFO_DATA_SMBIOS_ | MAC_INFO_DATA_SMBIOS |
typedef struct MAC_INFO_DATA_DATAHUB_ | MAC_INFO_DATA_DATAHUB |
typedef struct MAC_INFO_DATA_OEM_ | MAC_INFO_DATA_OEM |
typedef struct MAC_INFO_DATA_ | MAC_INFO_DATA |
Functions | |
VOID | GetMacInfo (IN CONST CHAR8 *ProductName, OUT MAC_INFO_DATA *MacInfo) |
CONST CHAR8 * | GetSecureBootModel (IN CONST CHAR8 *ProductName) |
CONST CHAR8 * | GetSecureBootModelFromBoardId (IN CONST CHAR8 *BoardId) |
BOOLEAN | HasMacInfo (IN CONST CHAR8 *ProductName) |
BOOLEAN | IsMacModel64BitCompatible (IN CONST CHAR8 *ProductName, IN UINT32 KernelVersion) |
Copyright (C) 2019, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcMacInfoLib.h.
#define OC_OEM_NAME_MAX 48 |
Definition at line 21 of file OcMacInfoLib.h.
#define OC_OEM_ROM_MAX 6 |
Definition at line 31 of file OcMacInfoLib.h.
#define OC_OEM_SERIAL_MAX 24 |
Definition at line 26 of file OcMacInfoLib.h.
typedef struct MAC_INFO_DATA_ MAC_INFO_DATA |
typedef struct MAC_INFO_DATA_DATAHUB_ MAC_INFO_DATA_DATAHUB |
typedef struct MAC_INFO_DATA_OEM_ MAC_INFO_DATA_OEM |
typedef struct MAC_INFO_DATA_SMBIOS_ MAC_INFO_DATA_SMBIOS |
VOID GetMacInfo | ( | IN CONST CHAR8 * | ProductName, |
OUT MAC_INFO_DATA * | MacInfo ) |
Obtain Mac info based on product name. When exact match is not possible, sane fallback will be returned.
[in] | ProductName | Product to get information for. |
[out] | MacInfo | Information data to fill. |
Definition at line 95 of file OcMacInfoLib.c.
CONST CHAR8 * GetSecureBootModel | ( | IN CONST CHAR8 * | ProductName | ) |
Obtain Mac secure boot model based on product name. When exact match is not possible, sane fallback will be returned.
[in] | ProductName | Product to get information for. |
x86legacy | For models that do not support secure boot. |
Definition at line 157 of file OcMacInfoLib.c.
CONST CHAR8 * GetSecureBootModelFromBoardId | ( | IN CONST CHAR8 * | BoardId | ) |
Obtain Mac secure boot model based on board id. When exact match is not possible, sane fallback will be returned.
[in] | BoardId | Board identifer to get information for. |
x86legacy | For models that do not support secure boot. |
Definition at line 179 of file OcMacInfoLib.c.
BOOLEAN HasMacInfo | ( | IN CONST CHAR8 * | ProductName | ) |
Determine if specified product name is a real Mac model.
[in] | ProductName | Product to check information for. |
TRUE | if ProductName is a real Mac model. |
Definition at line 203 of file OcMacInfoLib.c.
BOOLEAN IsMacModel64BitCompatible | ( | IN CONST CHAR8 * | ProductName, |
IN UINT32 | KernelVersion ) |
Determine if specified model and kernel version can run in 64-bit kernel mode.
[in] | ProductName | Product to get information for. |
[in] | KernelVersion | Kernel version. |
TRUE | if supported. |
Definition at line 215 of file OcMacInfoLib.c.