OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
FramebufferInfo.c File Reference
#include "OcConsoleLibInternal.h"
#include "ConsoleGopInternal.h"
#include <Protocol/AppleFramebufferInfo.h>
#include <Protocol/GraphicsOutput.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/OcConsoleLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>

Go to the source code of this file.

Functions

STATIC EFI_STATUS EFIAPI AppleFramebufferGetInfo (IN APPLE_FRAMEBUFFER_INFO_PROTOCOL *This, OUT EFI_PHYSICAL_ADDRESS *FramebufferBase, OUT UINT32 *FramebufferSize, OUT UINT32 *ScreenRowBytes, OUT UINT32 *ScreenWidth, OUT UINT32 *ScreenHeight, OUT UINT32 *ScreenDepth)
 
APPLE_FRAMEBUFFER_INFO_PROTOCOLOcAppleFbInfoInstallProtocol (IN BOOLEAN Reinstall)
 

Variables

STATIC APPLE_FRAMEBUFFER_INFO_PROTOCOL mAppleFramebufferInfo
 

Detailed Description

Copyright (C) 2020, 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 FramebufferInfo.c.

Function Documentation

◆ AppleFramebufferGetInfo()

STATIC EFI_STATUS EFIAPI AppleFramebufferGetInfo ( IN APPLE_FRAMEBUFFER_INFO_PROTOCOL * This,
OUT EFI_PHYSICAL_ADDRESS * FramebufferBase,
OUT UINT32 * FramebufferSize,
OUT UINT32 * ScreenRowBytes,
OUT UINT32 * ScreenWidth,
OUT UINT32 * ScreenHeight,
OUT UINT32 * ScreenDepth )

Definition at line 31 of file FramebufferInfo.c.

◆ OcAppleFbInfoInstallProtocol()

APPLE_FRAMEBUFFER_INFO_PROTOCOL * OcAppleFbInfoInstallProtocol ( IN BOOLEAN Reinstall)

Install and initialise Apple Framebuffer Info protocol on top of GOP protocol. For EfiBoot 10.4, which can only use UGA, this is the only way to obtain framebuffer base for XNU kernel PE Boot_args.

Parameters
[in]ReinstallOverwrite installed protocol.
Return values
installedor located protocol or NULL.

Definition at line 106 of file FramebufferInfo.c.

Variable Documentation

◆ mAppleFramebufferInfo

STATIC APPLE_FRAMEBUFFER_INFO_PROTOCOL mAppleFramebufferInfo
Initial value:
= {
}
STATIC EFI_STATUS EFIAPI AppleFramebufferGetInfo(IN APPLE_FRAMEBUFFER_INFO_PROTOCOL *This, OUT EFI_PHYSICAL_ADDRESS *FramebufferBase, OUT UINT32 *FramebufferSize, OUT UINT32 *ScreenRowBytes, OUT UINT32 *ScreenWidth, OUT UINT32 *ScreenHeight, OUT UINT32 *ScreenDepth)

Definition at line 101 of file FramebufferInfo.c.