mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
113 lines
2.4 KiB
C
113 lines
2.4 KiB
C
/** @file
|
|
Copyright (C) 2018, 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.
|
|
**/
|
|
|
|
#ifndef OPEN_CORE_H
|
|
#define OPEN_CORE_H
|
|
|
|
#include <Library/OcConfigurationLib.h>
|
|
#include <Library/OcCpuLib.h>
|
|
#include <Library/OcStorageLib.h>
|
|
|
|
#define OPEN_CORE_IMAGE_PATH L"EFI\\OC\\OpenCore.efi"
|
|
|
|
#define OPEN_CORE_ROOT_PATH L"EFI\\OC\\"
|
|
|
|
#define OPEN_CORE_CONFIG_PATH L"config.plist"
|
|
|
|
#define OPEN_CORE_ACPI_PATH L"ACPI\\Custom\\"
|
|
|
|
#define OPEN_CORE_UEFI_DRIVER_PATH L"Drivers\\"
|
|
|
|
#define OPEN_CORE_KEXT_PATH L"Kexts\\"
|
|
|
|
/**
|
|
Load ACPI compatibility support like custom tables.
|
|
|
|
@param[in] Storage OpenCore storage.
|
|
@param[in] Config OpenCore configuration.
|
|
**/
|
|
VOID
|
|
OcLoadAcpiSupport (
|
|
IN OC_STORAGE_CONTEXT *Storage,
|
|
IN OC_GLOBAL_CONFIG *Config
|
|
);
|
|
|
|
/**
|
|
Load device properties compatibility support.
|
|
|
|
@param[in] Config OpenCore configuration.
|
|
**/
|
|
VOID
|
|
OcLoadDevPropsSupport (
|
|
IN OC_GLOBAL_CONFIG *Config
|
|
);
|
|
|
|
/**
|
|
Load Kernel compatibility support like kexts.
|
|
|
|
@param[in] Storage OpenCore storage.
|
|
@param[in] Config OpenCore configuration.
|
|
**/
|
|
VOID
|
|
OcLoadKernelSupport (
|
|
IN OC_STORAGE_CONTEXT *Storage,
|
|
IN OC_GLOBAL_CONFIG *Config
|
|
);
|
|
|
|
/**
|
|
Cleanup Kernel compatibility support on failure.
|
|
**/
|
|
VOID
|
|
OcUnloadKernelSupport (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Load NVRAM compatibility support.
|
|
|
|
@param[in] Config OpenCore configuration.
|
|
**/
|
|
VOID
|
|
OcLoadNvramSupport (
|
|
IN OC_GLOBAL_CONFIG *Config
|
|
);
|
|
|
|
/**
|
|
Load platform compatibility support like DataHub or SMBIOS.
|
|
|
|
@param[in] Config OpenCore configuration.
|
|
@param[in] CpuInfo CPU information.
|
|
**/
|
|
VOID
|
|
OcLoadPlatformSupport (
|
|
IN OC_GLOBAL_CONFIG *Config,
|
|
IN OC_CPU_INFO *CpuInfo
|
|
);
|
|
|
|
/**
|
|
Load UEFI compatibility support like drivers.
|
|
|
|
@param[in] Storage OpenCore storage.
|
|
@param[in] Config OpenCore configuration.
|
|
@param[in] CpuInfo CPU information.
|
|
**/
|
|
VOID
|
|
OcLoadUefiSupport (
|
|
IN OC_STORAGE_CONTEXT *Storage,
|
|
IN OC_GLOBAL_CONFIG *Config,
|
|
IN OC_CPU_INFO *CpuInfo
|
|
);
|
|
|
|
#endif // OPEN_CORE_H
|