You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
Fix input param error checking for the DisplayDxe ComponentName2 protocol. This fixes https://github.com/pftf/RPi4/issues/84 Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com> Reviewed-by: Pete Batard <pete@akeo.ie>
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
/** @file
|
|
*
|
|
* Copyright (c) 2020, ARM Limited. All rights reserved.
|
|
* Copyright (c) 2017-2018, Andrei Warkentin <andrey.warkentin@gmail.com>
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
*
|
|
**/
|
|
|
|
#ifndef _DISPLAY_H_
|
|
#define _DISPLAY_H_
|
|
|
|
#include <Library/BaseLib.h>
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/BaseMemoryLib.h>
|
|
#include <Library/UefiBootServicesTableLib.h>
|
|
#include <Library/UefiLib.h>
|
|
#include <Library/PcdLib.h>
|
|
#include <Library/IoLib.h>
|
|
#include <Library/TimerLib.h>
|
|
#include <Library/MemoryAllocationLib.h>
|
|
#include <Protocol/Cpu.h>
|
|
#include <Protocol/GraphicsOutput.h>
|
|
#include <Protocol/DevicePath.h>
|
|
#include <Protocol/RpiFirmware.h>
|
|
|
|
extern EFI_GRAPHICS_OUTPUT_PROTOCOL gDisplayProto;
|
|
extern EFI_COMPONENT_NAME_PROTOCOL gComponentName;
|
|
extern EFI_COMPONENT_NAME2_PROTOCOL gComponentName2;
|
|
extern EFI_DRIVER_BINDING_PROTOCOL mDriverBinding;
|
|
|
|
VOID
|
|
RegisterScreenshotHandlers (
|
|
VOID
|
|
);
|
|
|
|
#endif /* _DISPLAY_H_ */
|