mirror of https://github.com/acidanthera/audk.git
Fix CRLF format
Signed-off-by: Tian, Hot <hot.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15160 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1f345b7d29
commit
d42aab6e61
|
@ -1,329 +1,329 @@
|
||||||
/** @file
|
/** @file
|
||||||
Provides interface to shell console logger.
|
Provides interface to shell console logger.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _CONSOLE_LOGGER_HEADER_
|
#ifndef _CONSOLE_LOGGER_HEADER_
|
||||||
#define _CONSOLE_LOGGER_HEADER_
|
#define _CONSOLE_LOGGER_HEADER_
|
||||||
|
|
||||||
#include "Shell.h"
|
#include "Shell.h"
|
||||||
|
|
||||||
#define CONSOLE_LOGGER_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('c', 'o', 'P', 'D')
|
#define CONSOLE_LOGGER_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('c', 'o', 'P', 'D')
|
||||||
|
|
||||||
typedef struct _CONSOLE_LOGGER_PRIVATE_DATA{
|
typedef struct _CONSOLE_LOGGER_PRIVATE_DATA{
|
||||||
UINTN Signature;
|
UINTN Signature;
|
||||||
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL OurConOut; ///< the protocol we installed onto the system table
|
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL OurConOut; ///< the protocol we installed onto the system table
|
||||||
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *OldConOut; ///< old protocol to reinstall upon exiting
|
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *OldConOut; ///< old protocol to reinstall upon exiting
|
||||||
EFI_HANDLE OldConHandle; ///< old protocol handle
|
EFI_HANDLE OldConHandle; ///< old protocol handle
|
||||||
UINTN ScreenCount; ///< How many screens worth of data to save
|
UINTN ScreenCount; ///< How many screens worth of data to save
|
||||||
CHAR16 *Buffer; ///< Buffer to save data
|
CHAR16 *Buffer; ///< Buffer to save data
|
||||||
UINTN BufferSize; ///< size of buffer in bytes
|
UINTN BufferSize; ///< size of buffer in bytes
|
||||||
|
|
||||||
// start row is the top of the screen
|
// start row is the top of the screen
|
||||||
UINTN OriginalStartRow; ///< What the originally visible start row was
|
UINTN OriginalStartRow; ///< What the originally visible start row was
|
||||||
UINTN CurrentStartRow; ///< what the currently visible start row is
|
UINTN CurrentStartRow; ///< what the currently visible start row is
|
||||||
|
|
||||||
UINTN RowsPerScreen; ///< how many rows the screen can display
|
UINTN RowsPerScreen; ///< how many rows the screen can display
|
||||||
UINTN ColsPerScreen; ///< how many columns the screen can display
|
UINTN ColsPerScreen; ///< how many columns the screen can display
|
||||||
|
|
||||||
INT32 *Attributes; ///< Buffer for Attribute to be saved for each character
|
INT32 *Attributes; ///< Buffer for Attribute to be saved for each character
|
||||||
UINTN AttribSize; ///< Size of Attributes in bytes
|
UINTN AttribSize; ///< Size of Attributes in bytes
|
||||||
|
|
||||||
EFI_SIMPLE_TEXT_OUTPUT_MODE HistoryMode; ///< mode of the history log
|
EFI_SIMPLE_TEXT_OUTPUT_MODE HistoryMode; ///< mode of the history log
|
||||||
BOOLEAN Enabled; ///< Set to FALSE when a break is requested.
|
BOOLEAN Enabled; ///< Set to FALSE when a break is requested.
|
||||||
UINTN RowCounter; ///< Initial row of each print job.
|
UINTN RowCounter; ///< Initial row of each print job.
|
||||||
} CONSOLE_LOGGER_PRIVATE_DATA;
|
} CONSOLE_LOGGER_PRIVATE_DATA;
|
||||||
|
|
||||||
#define CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(a) CR (a, CONSOLE_LOGGER_PRIVATE_DATA, OurConOut, CONSOLE_LOGGER_PRIVATE_DATA_SIGNATURE)
|
#define CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(a) CR (a, CONSOLE_LOGGER_PRIVATE_DATA, OurConOut, CONSOLE_LOGGER_PRIVATE_DATA_SIGNATURE)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Install our intermediate ConOut into the system table to
|
Install our intermediate ConOut into the system table to
|
||||||
keep a log of all the info that is displayed to the user.
|
keep a log of all the info that is displayed to the user.
|
||||||
|
|
||||||
@param[in] ScreensToSave Sets how many screen-worths of data to save.
|
@param[in] ScreensToSave Sets how many screen-worths of data to save.
|
||||||
@param[out] ConsoleInfo The object to pass into later functions.
|
@param[out] ConsoleInfo The object to pass into later functions.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation was successful.
|
@retval EFI_SUCCESS The operation was successful.
|
||||||
@return other The operation failed.
|
@return other The operation failed.
|
||||||
|
|
||||||
@sa ConsoleLoggerResetBuffers
|
@sa ConsoleLoggerResetBuffers
|
||||||
@sa InstallProtocolInterface
|
@sa InstallProtocolInterface
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerInstall(
|
ConsoleLoggerInstall(
|
||||||
IN CONST UINTN ScreensToSave,
|
IN CONST UINTN ScreensToSave,
|
||||||
OUT CONSOLE_LOGGER_PRIVATE_DATA **ConsoleInfo
|
OUT CONSOLE_LOGGER_PRIVATE_DATA **ConsoleInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return the system to the state it was before InstallConsoleLogger
|
Return the system to the state it was before InstallConsoleLogger
|
||||||
was installed.
|
was installed.
|
||||||
|
|
||||||
@param[in, out] ConsoleInfo The object from the install function.
|
@param[in, out] ConsoleInfo The object from the install function.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation was successful
|
@retval EFI_SUCCESS The operation was successful
|
||||||
@return other The operation failed. This was from UninstallProtocolInterface.
|
@return other The operation failed. This was from UninstallProtocolInterface.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerUninstall(
|
ConsoleLoggerUninstall(
|
||||||
IN OUT CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
IN OUT CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Displays previously logged output back to the screen.
|
Displays previously logged output back to the screen.
|
||||||
|
|
||||||
This will scroll the screen forwards and backwards through the log of previous
|
This will scroll the screen forwards and backwards through the log of previous
|
||||||
output. If Rows is 0 then the size of 1/2 the screen will be scrolled. If Rows
|
output. If Rows is 0 then the size of 1/2 the screen will be scrolled. If Rows
|
||||||
is (UINTN)(-1) then the size of the screen will be scrolled.
|
is (UINTN)(-1) then the size of the screen will be scrolled.
|
||||||
|
|
||||||
@param[in] Forward If TRUE then the log will be displayed forwards (scroll to newer).
|
@param[in] Forward If TRUE then the log will be displayed forwards (scroll to newer).
|
||||||
If FALSE then the log will be displayed backwards (scroll to older).
|
If FALSE then the log will be displayed backwards (scroll to older).
|
||||||
@param[in] Rows Determines how many rows the log should scroll.
|
@param[in] Rows Determines how many rows the log should scroll.
|
||||||
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerDisplayHistory(
|
ConsoleLoggerDisplayHistory(
|
||||||
IN CONST BOOLEAN Forward,
|
IN CONST BOOLEAN Forward,
|
||||||
IN CONST UINTN Rows,
|
IN CONST UINTN Rows,
|
||||||
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Function to return to normal output whent he scrolling is complete.
|
Function to return to normal output whent he scrolling is complete.
|
||||||
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation was successful.
|
@retval EFI_SUCCESS The operation was successful.
|
||||||
@return other The operation failed. See UpdateDisplayFromHistory.
|
@return other The operation failed. See UpdateDisplayFromHistory.
|
||||||
|
|
||||||
@sa UpdateDisplayFromHistory
|
@sa UpdateDisplayFromHistory
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerStopHistory(
|
ConsoleLoggerStopHistory(
|
||||||
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Updates the hidden ConOut to be displaying the correct stuff.
|
Updates the hidden ConOut to be displaying the correct stuff.
|
||||||
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation was successful.
|
@retval EFI_SUCCESS The operation was successful.
|
||||||
@return other The operation failed.
|
@return other The operation failed.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
UpdateDisplayFromHistory(
|
UpdateDisplayFromHistory(
|
||||||
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset the text output device hardware and optionaly run diagnostics
|
Reset the text output device hardware and optionaly run diagnostics
|
||||||
|
|
||||||
@param This Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL
|
@param This Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL
|
||||||
@param ExtendedVerification Indicates that a more extensive test may be performed
|
@param ExtendedVerification Indicates that a more extensive test may be performed
|
||||||
|
|
||||||
@retval EFI_SUCCESS The text output device was reset.
|
@retval EFI_SUCCESS The text output device was reset.
|
||||||
@retval EFI_DEVICE_ERROR The text output device is not functioning correctly and
|
@retval EFI_DEVICE_ERROR The text output device is not functioning correctly and
|
||||||
could not be reset.
|
could not be reset.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerReset (
|
ConsoleLoggerReset (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write a Unicode string to the output device.
|
Write a Unicode string to the output device.
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
@param[in] WString The NULL-terminated Unicode string to be displayed on the output
|
@param[in] WString The NULL-terminated Unicode string to be displayed on the output
|
||||||
device(s). All output devices must also support the Unicode
|
device(s). All output devices must also support the Unicode
|
||||||
drawing defined in this file.
|
drawing defined in this file.
|
||||||
@retval EFI_SUCCESS The string was output to the device.
|
@retval EFI_SUCCESS The string was output to the device.
|
||||||
@retval EFI_DEVICE_ERROR The device reported an error while attempting to output
|
@retval EFI_DEVICE_ERROR The device reported an error while attempting to output
|
||||||
the text.
|
the text.
|
||||||
@retval EFI_UNSUPPORTED The output device's mode is not currently in a
|
@retval EFI_UNSUPPORTED The output device's mode is not currently in a
|
||||||
defined text mode.
|
defined text mode.
|
||||||
@retval EFI_WARN_UNKNOWN_GLYPH This warning code indicates that some of the
|
@retval EFI_WARN_UNKNOWN_GLYPH This warning code indicates that some of the
|
||||||
characters in the Unicode string could not be
|
characters in the Unicode string could not be
|
||||||
rendered and were skipped.
|
rendered and were skipped.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerOutputString(
|
ConsoleLoggerOutputString(
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Verifies that all characters in a Unicode string can be output to the
|
Verifies that all characters in a Unicode string can be output to the
|
||||||
target device.
|
target device.
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
@param[in] WString The NULL-terminated Unicode string to be examined for the output
|
@param[in] WString The NULL-terminated Unicode string to be examined for the output
|
||||||
device(s).
|
device(s).
|
||||||
|
|
||||||
@retval EFI_SUCCESS The device(s) are capable of rendering the output string.
|
@retval EFI_SUCCESS The device(s) are capable of rendering the output string.
|
||||||
@retval EFI_UNSUPPORTED Some of the characters in the Unicode string cannot be
|
@retval EFI_UNSUPPORTED Some of the characters in the Unicode string cannot be
|
||||||
rendered by one or more of the output devices mapped
|
rendered by one or more of the output devices mapped
|
||||||
by the EFI handle.
|
by the EFI handle.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerTestString (
|
ConsoleLoggerTestString (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns information for an available text mode that the output device(s)
|
Returns information for an available text mode that the output device(s)
|
||||||
supports.
|
supports.
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
@param[in] ModeNumber The mode number to return information on.
|
@param[in] ModeNumber The mode number to return information on.
|
||||||
@param[out] Columns Upon return, the number of columns in the selected geometry
|
@param[out] Columns Upon return, the number of columns in the selected geometry
|
||||||
@param[out] Rows Upon return, the number of rows in the selected geometry
|
@param[out] Rows Upon return, the number of rows in the selected geometry
|
||||||
|
|
||||||
@retval EFI_SUCCESS The requested mode information was returned.
|
@retval EFI_SUCCESS The requested mode information was returned.
|
||||||
@retval EFI_DEVICE_ERROR The device had an error and could not
|
@retval EFI_DEVICE_ERROR The device had an error and could not
|
||||||
complete the request.
|
complete the request.
|
||||||
@retval EFI_UNSUPPORTED The mode number was not valid.
|
@retval EFI_UNSUPPORTED The mode number was not valid.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerQueryMode (
|
ConsoleLoggerQueryMode (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN ModeNumber,
|
IN UINTN ModeNumber,
|
||||||
OUT UINTN *Columns,
|
OUT UINTN *Columns,
|
||||||
OUT UINTN *Rows
|
OUT UINTN *Rows
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the output device(s) to a specified mode.
|
Sets the output device(s) to a specified mode.
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
@param[in] ModeNumber The mode number to set.
|
@param[in] ModeNumber The mode number to set.
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The requested text mode was set.
|
@retval EFI_SUCCESS The requested text mode was set.
|
||||||
@retval EFI_DEVICE_ERROR The device had an error and
|
@retval EFI_DEVICE_ERROR The device had an error and
|
||||||
could not complete the request.
|
could not complete the request.
|
||||||
@retval EFI_UNSUPPORTED The mode number was not valid.
|
@retval EFI_UNSUPPORTED The mode number was not valid.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerSetMode (
|
ConsoleLoggerSetMode (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN ModeNumber
|
IN UINTN ModeNumber
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the background and foreground colors for the OutputString () and
|
Sets the background and foreground colors for the OutputString () and
|
||||||
ClearScreen () functions.
|
ClearScreen () functions.
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
@param[in] Attribute The attribute to set. Bits 0..3 are the foreground color, and
|
@param[in] Attribute The attribute to set. Bits 0..3 are the foreground color, and
|
||||||
bits 4..6 are the background color. All other bits are undefined
|
bits 4..6 are the background color. All other bits are undefined
|
||||||
and must be zero. The valid Attributes are defined in this file.
|
and must be zero. The valid Attributes are defined in this file.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The attribute was set.
|
@retval EFI_SUCCESS The attribute was set.
|
||||||
@retval EFI_DEVICE_ERROR The device had an error and
|
@retval EFI_DEVICE_ERROR The device had an error and
|
||||||
could not complete the request.
|
could not complete the request.
|
||||||
@retval EFI_UNSUPPORTED The attribute requested is not defined.
|
@retval EFI_UNSUPPORTED The attribute requested is not defined.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerSetAttribute (
|
ConsoleLoggerSetAttribute (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN Attribute
|
IN UINTN Attribute
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clears the output device(s) display to the currently selected background
|
Clears the output device(s) display to the currently selected background
|
||||||
color.
|
color.
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation completed successfully.
|
@retval EFI_SUCCESS The operation completed successfully.
|
||||||
@retval EFI_DEVICE_ERROR The device had an error and
|
@retval EFI_DEVICE_ERROR The device had an error and
|
||||||
could not complete the request.
|
could not complete the request.
|
||||||
@retval EFI_UNSUPPORTED The output device is not in a valid text mode.
|
@retval EFI_UNSUPPORTED The output device is not in a valid text mode.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerClearScreen (
|
ConsoleLoggerClearScreen (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the current coordinates of the cursor position.
|
Sets the current coordinates of the cursor position.
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
@param[in] Column Column to put the cursor in. Must be between zero and Column returned from QueryMode
|
@param[in] Column Column to put the cursor in. Must be between zero and Column returned from QueryMode
|
||||||
@param[in] Row Row to put the cursor in. Must be between zero and Row returned from QueryMode
|
@param[in] Row Row to put the cursor in. Must be between zero and Row returned from QueryMode
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation completed successfully.
|
@retval EFI_SUCCESS The operation completed successfully.
|
||||||
@retval EFI_DEVICE_ERROR The device had an error and
|
@retval EFI_DEVICE_ERROR The device had an error and
|
||||||
could not complete the request.
|
could not complete the request.
|
||||||
@retval EFI_UNSUPPORTED The output device is not in a valid text mode, or the
|
@retval EFI_UNSUPPORTED The output device is not in a valid text mode, or the
|
||||||
cursor position is invalid for the current mode.
|
cursor position is invalid for the current mode.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerSetCursorPosition (
|
ConsoleLoggerSetCursorPosition (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN Column,
|
IN UINTN Column,
|
||||||
IN UINTN Row
|
IN UINTN Row
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Makes the cursor visible or invisible
|
Makes the cursor visible or invisible
|
||||||
|
|
||||||
@param[in] This Protocol instance pointer.
|
@param[in] This Protocol instance pointer.
|
||||||
@param[in] Visible If TRUE, the cursor is set to be visible. If FALSE, the cursor is
|
@param[in] Visible If TRUE, the cursor is set to be visible. If FALSE, the cursor is
|
||||||
set to be invisible.
|
set to be invisible.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation completed successfully.
|
@retval EFI_SUCCESS The operation completed successfully.
|
||||||
@retval EFI_DEVICE_ERROR The device had an error and could not complete the
|
@retval EFI_DEVICE_ERROR The device had an error and could not complete the
|
||||||
request, or the device does not support changing
|
request, or the device does not support changing
|
||||||
the cursor mode.
|
the cursor mode.
|
||||||
@retval EFI_UNSUPPORTED The output device is not in a valid text mode.
|
@retval EFI_UNSUPPORTED The output device is not in a valid text mode.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerEnableCursor (
|
ConsoleLoggerEnableCursor (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN Visible
|
IN BOOLEAN Visible
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Function to update and verify that the current buffers are correct.
|
Function to update and verify that the current buffers are correct.
|
||||||
|
|
||||||
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
@param[in] ConsoleInfo The pointer to the instance of the console logger information.
|
||||||
|
|
||||||
This will be used when a mode has changed or a reset ocurred to verify all
|
This will be used when a mode has changed or a reset ocurred to verify all
|
||||||
history buffers.
|
history buffers.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ConsoleLoggerResetBuffers(
|
ConsoleLoggerResetBuffers(
|
||||||
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif //_CONSOLE_LOGGER_HEADER_
|
#endif //_CONSOLE_LOGGER_HEADER_
|
||||||
|
|
||||||
|
|
|
@ -1,68 +1,68 @@
|
||||||
/** @file
|
/** @file
|
||||||
internal worker functions for FileHandleWrappers to use
|
internal worker functions for FileHandleWrappers to use
|
||||||
|
|
||||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _FILE_HANDLE_INTERNAL_HEADER_
|
#ifndef _FILE_HANDLE_INTERNAL_HEADER_
|
||||||
#define _FILE_HANDLE_INTERNAL_HEADER_
|
#define _FILE_HANDLE_INTERNAL_HEADER_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Move the cursor position one character backward.
|
Move the cursor position one character backward.
|
||||||
|
|
||||||
@param[in] LineLength Length of a line. Get it by calling QueryMode
|
@param[in] LineLength Length of a line. Get it by calling QueryMode
|
||||||
@param[in, out] Column Current column of the cursor position
|
@param[in, out] Column Current column of the cursor position
|
||||||
@param[in, out] Row Current row of the cursor position
|
@param[in, out] Row Current row of the cursor position
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MoveCursorBackward (
|
MoveCursorBackward (
|
||||||
IN UINTN LineLength,
|
IN UINTN LineLength,
|
||||||
IN OUT UINTN *Column,
|
IN OUT UINTN *Column,
|
||||||
IN OUT UINTN *Row
|
IN OUT UINTN *Row
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Move the cursor position one character forward.
|
Move the cursor position one character forward.
|
||||||
|
|
||||||
@param[in] LineLength Length of a line.
|
@param[in] LineLength Length of a line.
|
||||||
@param[in] TotalRow Total row of a screen
|
@param[in] TotalRow Total row of a screen
|
||||||
@param[in, out] Column Current column of the cursor position
|
@param[in, out] Column Current column of the cursor position
|
||||||
@param[in, out] Row Current row of the cursor position
|
@param[in, out] Row Current row of the cursor position
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MoveCursorForward (
|
MoveCursorForward (
|
||||||
IN UINTN LineLength,
|
IN UINTN LineLength,
|
||||||
IN UINTN TotalRow,
|
IN UINTN TotalRow,
|
||||||
IN OUT UINTN *Column,
|
IN OUT UINTN *Column,
|
||||||
IN OUT UINTN *Row
|
IN OUT UINTN *Row
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prints out each previously typed command in the command list history log.
|
Prints out each previously typed command in the command list history log.
|
||||||
|
|
||||||
When each screen is full it will pause for a key before continuing.
|
When each screen is full it will pause for a key before continuing.
|
||||||
|
|
||||||
@param[in] TotalCols How many columns are on the screen
|
@param[in] TotalCols How many columns are on the screen
|
||||||
@param[in] TotalRows How many rows are on the screen
|
@param[in] TotalRows How many rows are on the screen
|
||||||
@param[in] StartColumn which column to start at
|
@param[in] StartColumn which column to start at
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PrintCommandHistory (
|
PrintCommandHistory (
|
||||||
IN CONST UINTN TotalCols,
|
IN CONST UINTN TotalCols,
|
||||||
IN CONST UINTN TotalRows,
|
IN CONST UINTN TotalRows,
|
||||||
IN CONST UINTN StartColumn
|
IN CONST UINTN StartColumn
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif //_FILE_HANDLE_INTERNAL_HEADER_
|
#endif //_FILE_HANDLE_INTERNAL_HEADER_
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,7 @@ HBufferImageBackup (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Free all the lines in HBufferImage.
|
Free all the lines in HBufferImage.
|
||||||
Fields affected:
|
Fields affected:
|
||||||
Lines
|
Lines
|
||||||
|
@ -732,7 +732,7 @@ HBufferImageRestorePosition (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Refresh function for HBufferImage.
|
Refresh function for HBufferImage.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation was successful.
|
@retval EFI_SUCCESS The operation was successful.
|
||||||
|
@ -1027,7 +1027,7 @@ HBufferImageSave (
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create a new line and append it to the line list.
|
Create a new line and append it to the line list.
|
||||||
Fields affected:
|
Fields affected:
|
||||||
NumLines
|
NumLines
|
||||||
|
@ -1074,7 +1074,7 @@ HBufferImageCreateLine (
|
||||||
return Line;
|
return Line;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Free the current image.
|
Free the current image.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The operation was successful.
|
@retval EFI_SUCCESS The operation was successful.
|
||||||
|
@ -1092,7 +1092,7 @@ HBufferImageFree (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
change char to int value based on Hex.
|
change char to int value based on Hex.
|
||||||
|
|
||||||
@param[in] Char The input char.
|
@param[in] Char The input char.
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue