OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
EnableGop.c File Reference
#include <Uefi.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcConsoleLib.h>
#include <Library/OcDeviceMiscLib.h>

Go to the source code of this file.

Functions

STATIC EFI_STATUS LoadUefiOutputSupport (VOID)
 
STATIC EFI_STATUS ProvideGop (VOID)
 
EFI_STATUS EFIAPI WrappedGetMemorySpaceMap (OUT UINTN *NumberOfDescriptors, OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR **MemorySpaceMap)
 
STATIC VOID WrapGetMemorySpaceMap (VOID)
 
EFI_STATUS EFIAPI UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC EFI_GET_MEMORY_SPACE_MAP mOriginalGetMemorySpaceMap
 

Detailed Description

Provide GOP on unsupported graphics cards on EFI-era MacPro and iMac.

Copyright (c) 2022-2023, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file EnableGop.c.

Function Documentation

◆ LoadUefiOutputSupport()

STATIC EFI_STATUS LoadUefiOutputSupport ( VOID )

Definition at line 25 of file EnableGop.c.

◆ ProvideGop()

STATIC EFI_STATUS ProvideGop ( VOID )

Definition at line 75 of file EnableGop.c.

◆ UefiMain()

EFI_STATUS EFIAPI UefiMain ( IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE * SystemTable )

Definition at line 138 of file EnableGop.c.

◆ WrapGetMemorySpaceMap()

STATIC VOID WrapGetMemorySpaceMap ( VOID )

Definition at line 114 of file EnableGop.c.

◆ WrappedGetMemorySpaceMap()

EFI_STATUS EFIAPI WrappedGetMemorySpaceMap ( OUT UINTN * NumberOfDescriptors,
OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR ** MemorySpaceMap )

Definition at line 93 of file EnableGop.c.

Variable Documentation

◆ mOriginalGetMemorySpaceMap

STATIC EFI_GET_MEMORY_SPACE_MAP mOriginalGetMemorySpaceMap

Definition at line 18 of file EnableGop.c.