OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AppleHibernate.c File Reference
#include <Guid/AppleVariable.h>
#include <IndustryStandard/AppleHibernate.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DevicePathLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcCryptoLib.h>
#include <Library/OcDevicePathLib.h>
#include <Library/OcDebugLogLib.h>
#include <Library/OcRtcLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>

Go to the source code of this file.

Functions

EFI_STATUS OcActivateHibernateWake (IN UINT32 HibernateMask)
 
BOOLEAN OcIsAppleHibernateWake (VOID)
 

Detailed Description

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 AppleHibernate.c.

Function Documentation

◆ OcActivateHibernateWake()

EFI_STATUS OcActivateHibernateWake ( IN UINT32 HibernateMask)

Handle hibernation detection for later loading.

Parameters
[in]HibernateMaskHibernate detection mask.
Return values
EFI_SUCCESSHibernation mode was found and activated.

Definition at line 31 of file AppleHibernate.c.

◆ OcIsAppleHibernateWake()

BOOLEAN OcIsAppleHibernateWake ( VOID )

Check if active hibernation is happening.

Return values
TRUEon waking from hibernation.

Definition at line 232 of file AppleHibernate.c.