OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
PlatformInfo.c File Reference
#include <Library/OcMiscLib.h>
#include <Guid/AppleHob.h>
#include <Pi/PiBootMode.h>
#include <Pi/PiHob.h>
#include <Library/HobLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>

Go to the source code of this file.

Functions

EFI_STATUS OcReadApplePlatformFirstData (IN APPLE_PLATFORM_INFO_DATABASE_PROTOCOL *PlatformInfo, IN EFI_GUID *DataGuid, IN OUT UINT32 *Size, OUT VOID *Data)
 
EFI_STATUS OcReadApplePlatformFirstDataAlloc (IN APPLE_PLATFORM_INFO_DATABASE_PROTOCOL *PlatformInfo, IN EFI_GUID *DataGuid, OUT UINT32 *Size, OUT VOID **Data)
 
EFI_STATUS OcReadApplePlatformData (IN APPLE_PLATFORM_INFO_DATABASE_PROTOCOL *PlatformInfo, IN EFI_GUID *DataGuid, IN EFI_GUID *HobGuid, IN OUT UINT32 *Size, OUT VOID *Data)
 

Detailed Description

Copyright (C) 2021, PMheart. All rights reserved. Copyright (C) 2021, 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 PlatformInfo.c.

Function Documentation

◆ OcReadApplePlatformData()

EFI_STATUS OcReadApplePlatformData ( IN APPLE_PLATFORM_INFO_DATABASE_PROTOCOL * PlatformInfo,
IN EFI_GUID * DataGuid,
IN EFI_GUID * HobGuid,
IN OUT UINT32 * Size,
OUT VOID * Data )

Read data from Apple Platform Info protocol.

Parameters
[in]PlatformInfoApple Platform Info protocol.
[in]DataGuidResource GUID identifier.
[in]HobGuidHob GUID identifier.
[in,out]SizeMaximum size allowed, updated to actual size on success.
[out]DataData read from Apple Platform Info protocol.
Return values
EFI_SUCCESSon success.

Definition at line 155 of file PlatformInfo.c.

◆ OcReadApplePlatformFirstData()

EFI_STATUS OcReadApplePlatformFirstData ( IN APPLE_PLATFORM_INFO_DATABASE_PROTOCOL * PlatformInfo,
IN EFI_GUID * DataGuid,
IN OUT UINT32 * Size,
OUT VOID * Data )

Read first data from Apple Platform Info protocol.

Parameters
[in]PlatformInfoApple Platform Info protocol.
[in]DataGuidResource GUID identifier.
[in,out]SizeMaximum size allowed, updated to actual size on success.
[out]DataData read from Apple Platform Info protocol.
Return values
EFI_SUCCESSon success.

Definition at line 26 of file PlatformInfo.c.

◆ OcReadApplePlatformFirstDataAlloc()

EFI_STATUS OcReadApplePlatformFirstDataAlloc ( IN APPLE_PLATFORM_INFO_DATABASE_PROTOCOL * PlatformInfo,
IN EFI_GUID * DataGuid,
OUT UINT32 * Size,
OUT VOID ** Data )

Read first data from Apple Platform Info protocol allocating memory from pool.

Parameters
[in]PlatformInfoApple Platform Info protocol.
[in]DataGuidResource GUID identifier.
[out]SizeSize of the entry.
[out]DataData read from Apple Platform Info protocol allocated from pool.
Return values
EFI_SUCCESSon success.

Definition at line 91 of file PlatformInfo.c.