A.3.5 SimpleTextOutput.c File

Example A-17-Simple Text Output Protocol implementation template

/** @file
<<BriefDescription>>
<<DetailedDescription>>
<<Copyright>>
<<License>>
**/
#include "<<DriverName>>.h"
///
/// Simple Text Output Protocol Mode instance
///
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_SIMPLE_TEXT_OUTPUT_MODE g<<DriverName>>SimpleTextOutputMode = {
0, // MaxMode
0, // Mode
EFI_TEXT_ATTR (EFI_WHITE, EFI_BACKGROUND_BLACK), // Attribute
0, // CursorColumn
0, // CursorRow
TRUE // CursorVisible
};
///
/// Simple Text Output Protocol instance
///
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL g<<DriverName>>SimpleTextOutput = {
<<DriverName>>SimpleTextOutputReset,
<<DriverName>>SimpleTextOutputOutputString,
<<DriverName>>SimpleTextOutputTestString,
<<DriverName>>SimpleTextOutputQueryMode,
<<DriverName>>SimpleTextOutputSetMode,
<<DriverName>>SimpleTextOutputSetAttribute,
<<DriverName>>SimpleTextOutputClearScreen,
<<DriverName>>SimpleTextOutputSetCursorPosition,
<<DriverName>>SimpleTextOutputEnableCursor,
&g<<DriverName>>SimpleTextOutputMode
};
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputReset (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN BOOLEAN ExtendedVerification
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputOutputString (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN CHAR16 *String
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputTestString (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN CHAR16 *String
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputQueryMode (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN UINTN ModeNumber,
OUT UINTN *Columns,
OUT UINTN *Rows
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputSetMode (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN UINTN ModeNumber
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputSetAttribute (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN UINTN Attribute
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputClearScreen (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputSetCursorPosition (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN UINTN Column,
IN UINTN Row
)
{
}
EFI_STATUS
EFIAPI
<<DriverName>>SimpleTextOutputEnableCursor (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN BOOLEAN Visible
)
{
}