Files
slimbootloader/BootloaderCommonPkg/Include/Library/ConsoleOutLib.h
T
Aiden Park b24fd2759c Cosmetic: Convert LF to CRLF
This will fully support PatchCheck.py.
- Remove all trailing whitespace
- Convert LF to CRLF by default
- Update EFI_D_* to DEBUG_*
- Re-enable CRLF check in PatchCheck.py

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-12-02 16:21:19 -08:00

43 lines
977 B
C

/** @file
Provide Console output library functions.
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __CONSOLE_OUT_LIB_H__
#define __CONSOLE_OUT_LIB_H__
#include <PiPei.h>
#include <Library/BaseLib.h>
typedef enum {
ConsoleOutSerialPort = BIT0,
ConsoleOutFrameBuffer = BIT1,
ConsoleOutAll = 0xFFFFFFFF,
} CONSOLE_OUT_DEVICE_TYPE;
/**
Write data from buffer to the console.
Writes NumberOfBytes data bytes from Buffer to the virtual console.
If Buffer is NULL, then ASSERT().
If NumberOfBytes is zero, then return 0.
@param Buffer Pointer to the data buffer to be written.
@param NumberOfBytes Number of bytes to write to the console.
@retval >0 The number of bytes written to the console.
**/
UINTN
EFIAPI
ConsoleWrite (
IN UINT8 *Buffer,
IN UINTN NumberOfBytes
);
#endif