X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FConsole%2FConSplitterDxe%2FConSplitter.h;h=680e02f8120da7521b9530bee5745ad783ef2ccc;hb=838a9c58c949a47194f507561eb44f9b1b7499ac;hp=f9601fc194c408361afde99a5ed23ae39bef6a69;hpb=f3f2e05db8c89628498ec4efdb16184747824c63;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.h b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.h index f9601fc194..680e02f812 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.h +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.h @@ -1,8 +1,8 @@ /** @file Private data structures for the Console Splitter driver -Copyright (c) 2006 - 2008 Intel Corporation.
-All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2012, Intel Corporation. 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 @@ -16,21 +16,26 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define _CON_SPLITTER_H_ #include -#include -#include -#include -#include -#include +#include + +#include + +#include +#include +#include #include #include #include -#include #include #include -#include +#include +#include +#include + +#include #include #include -#include + #include #include #include @@ -40,6 +45,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include +#include +#include // @@ -61,10 +68,11 @@ extern EFI_DRIVER_BINDING_PROTOCOL gConSplitterStdErrDriverBinding; extern EFI_COMPONENT_NAME_PROTOCOL gConSplitterStdErrComponentName; extern EFI_COMPONENT_NAME2_PROTOCOL gConSplitterStdErrComponentName2; -extern EFI_GUID gSimpleTextInExNotifyGuid; +// // These definitions were in the old Hii protocol, but are not in the new UEFI // version. So they are defined locally. +// #define UNICODE_NARROW_CHAR 0xFFF0 #define UNICODE_WIDE_CHAR 0xFFF1 @@ -72,11 +80,8 @@ extern EFI_GUID gSimpleTextInExNotifyGuid; // // Private Data Structures // -#define CONSOLE_SPLITTER_CONSOLES_ALLOC_UNIT 32 -#define CONSOLE_SPLITTER_MODES_ALLOC_UNIT 32 -#define MAX_STD_IN_PASSWORD 80 +#define CONSOLE_SPLITTER_ALLOC_UNIT 32 -#define VARCONOUTMODE L"ConOutMode" typedef struct { UINTN Column; @@ -84,26 +89,36 @@ typedef struct { } CONSOLE_OUT_MODE; typedef struct { - UINTN Columns; - UINTN Rows; + UINTN Columns; + UINTN Rows; } TEXT_OUT_SPLITTER_QUERY_DATA; -// -// Private data for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL splitter -// -#define TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('T', 'i', 'S', 'p') -#define TEXT_IN_EX_SPLITTER_NOTIFY_SIGNATURE SIGNATURE_32 ('T', 'i', 'S', 'n') +#define TEXT_IN_EX_SPLITTER_NOTIFY_SIGNATURE SIGNATURE_32 ('T', 'i', 'S', 'n') +// +// Private data for Text In Ex Splitter Notify +// typedef struct _TEXT_IN_EX_SPLITTER_NOTIFY { UINTN Signature; - EFI_HANDLE *NotifyHandleList; - EFI_HANDLE NotifyHandle; + VOID **NotifyHandleList; EFI_KEY_DATA KeyData; EFI_KEY_NOTIFY_FUNCTION KeyNotificationFn; LIST_ENTRY NotifyEntry; } TEXT_IN_EX_SPLITTER_NOTIFY; +#define TEXT_IN_EX_SPLITTER_NOTIFY_FROM_THIS(a) \ + CR ((a), \ + TEXT_IN_EX_SPLITTER_NOTIFY, \ + NotifyEntry, \ + TEXT_IN_EX_SPLITTER_NOTIFY_SIGNATURE \ + ) + +#define TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('T', 'i', 'S', 'p') + +// +// Private data for the Console In splitter +// typedef struct { UINT64 Signature; EFI_HANDLE VirtualHandle; @@ -133,116 +148,98 @@ typedef struct { UINTN AbsolutePointerListCount; BOOLEAN AbsoluteInputEventSignalState; - BOOLEAN PasswordEnabled; - CHAR16 Password[MAX_STD_IN_PASSWORD]; - UINTN PwdIndex; - CHAR16 PwdAttempt[MAX_STD_IN_PASSWORD]; - EFI_EVENT LockEvent; - BOOLEAN KeyEventSignalState; BOOLEAN InputEventSignalState; } TEXT_IN_SPLITTER_PRIVATE_DATA; #define TEXT_IN_SPLITTER_PRIVATE_DATA_FROM_THIS(a) \ - CR ((a), \ + CR ((a), \ TEXT_IN_SPLITTER_PRIVATE_DATA, \ TextIn, \ TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE \ ) #define TEXT_IN_SPLITTER_PRIVATE_DATA_FROM_SIMPLE_POINTER_THIS(a) \ - CR ((a), \ + CR ((a), \ TEXT_IN_SPLITTER_PRIVATE_DATA, \ SimplePointer, \ TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE \ ) #define TEXT_IN_EX_SPLITTER_PRIVATE_DATA_FROM_THIS(a) \ - CR (a, \ - TEXT_IN_SPLITTER_PRIVATE_DATA, \ - TextInEx, \ - TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE \ + CR (a, \ + TEXT_IN_SPLITTER_PRIVATE_DATA, \ + TextInEx, \ + TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE \ ) #define TEXT_IN_SPLITTER_PRIVATE_DATA_FROM_ABSOLUTE_POINTER_THIS(a) \ - CR (a, \ - TEXT_IN_SPLITTER_PRIVATE_DATA, \ - AbsolutePointer, \ - TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE \ + CR (a, \ + TEXT_IN_SPLITTER_PRIVATE_DATA, \ + AbsolutePointer, \ + TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE \ ) -// -// Private data for the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL splitter -// + #define TEXT_OUT_SPLITTER_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('T', 'o', 'S', 'p') typedef struct { EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput; EFI_UGA_DRAW_PROTOCOL *UgaDraw; EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *TextOut; - BOOLEAN TextOutEnabled; } TEXT_OUT_AND_GOP_DATA; +// +// Private data for the Console Out splitter +// typedef struct { UINT64 Signature; EFI_HANDLE VirtualHandle; EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL TextOut; EFI_SIMPLE_TEXT_OUTPUT_MODE TextOutMode; - + EFI_UGA_DRAW_PROTOCOL UgaDraw; UINT32 UgaHorizontalResolution; UINT32 UgaVerticalResolution; UINT32 UgaColorDepth; UINT32 UgaRefreshRate; - EFI_UGA_PIXEL *UgaBlt; - + EFI_GRAPHICS_OUTPUT_PROTOCOL GraphicsOutput; - EFI_GRAPHICS_OUTPUT_BLT_PIXEL *GraphicsOutputBlt; EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *GraphicsOutputModeBuffer; UINTN CurrentNumberOfGraphicsOutput; UINTN CurrentNumberOfUgaDraw; - BOOLEAN HardwareNeedsStarting; - - EFI_CONSOLE_CONTROL_PROTOCOL ConsoleControl; - + UINTN CurrentNumberOfConsoles; TEXT_OUT_AND_GOP_DATA *TextOutList; UINTN TextOutListCount; TEXT_OUT_SPLITTER_QUERY_DATA *TextOutQueryData; UINTN TextOutQueryDataCount; INT32 *TextOutModeMap; - - EFI_CONSOLE_CONTROL_SCREEN_MODE ConsoleOutputMode; - - UINTN DevNullColumns; - UINTN DevNullRows; - CHAR16 *DevNullScreen; - INT32 *DevNullAttributes; } TEXT_OUT_SPLITTER_PRIVATE_DATA; #define TEXT_OUT_SPLITTER_PRIVATE_DATA_FROM_THIS(a) \ - CR ((a), \ + CR ((a), \ TEXT_OUT_SPLITTER_PRIVATE_DATA, \ TextOut, \ TEXT_OUT_SPLITTER_PRIVATE_DATA_SIGNATURE \ ) #define GRAPHICS_OUTPUT_SPLITTER_PRIVATE_DATA_FROM_THIS(a) \ - CR ((a), \ + CR ((a), \ TEXT_OUT_SPLITTER_PRIVATE_DATA, \ GraphicsOutput, \ TEXT_OUT_SPLITTER_PRIVATE_DATA_SIGNATURE \ ) #define UGA_DRAW_SPLITTER_PRIVATE_DATA_FROM_THIS(a) \ - CR ((a), \ + CR ((a), \ TEXT_OUT_SPLITTER_PRIVATE_DATA, \ UgaDraw, \ TEXT_OUT_SPLITTER_PRIVATE_DATA_SIGNATURE \ ) #define CONSOLE_CONTROL_SPLITTER_PRIVATE_DATA_FROM_THIS(a) \ - CR ((a), \ + CR ((a), \ TEXT_OUT_SPLITTER_PRIVATE_DATA, \ ConsoleControl, \ TEXT_OUT_SPLITTER_PRIVATE_DATA_SIGNATURE \ @@ -257,7 +254,7 @@ typedef struct { Installs driver module protocols and. Creates virtual device handles for ConIn, ConOut, and StdErr. Installs Simple Text In protocol, Simple Text In Ex protocol, - Simple Pointer protocol, Absolute Pointer protocol on those virtual handlers. + Simple Pointer protocol, Absolute Pointer protocol on those virtual handlers. Installs Graphics Output protocol and/or UGA Draw protocol if needed. @param[in] ImageHandle The firmware allocated handle for the EFI image. @@ -281,19 +278,19 @@ ConSplitterDriverEntry ( structure. @retval EFI_OUT_OF_RESOURCES Out of resources. - @retval EFI_SUCCESS Console Input Devcie's private data has been constructed. + @retval EFI_SUCCESS Text Input Devcie's private data has been constructed. @retval other Failed to construct private data. **/ EFI_STATUS ConSplitterTextInConstructor ( - TEXT_IN_SPLITTER_PRIVATE_DATA *Private + TEXT_IN_SPLITTER_PRIVATE_DATA *ConInPrivate ); /** Construct console output devices' private data. - @param ConOutPrivate A pointer to the TEXT_IN_SPLITTER_PRIVATE_DATA + @param ConOutPrivate A pointer to the TEXT_OUT_SPLITTER_PRIVATE_DATA structure. @retval EFI_OUT_OF_RESOURCES Out of resources. @@ -302,17 +299,14 @@ ConSplitterTextInConstructor ( **/ EFI_STATUS ConSplitterTextOutConstructor ( - TEXT_OUT_SPLITTER_PRIVATE_DATA *Private + TEXT_OUT_SPLITTER_PRIVATE_DATA *ConOutPrivate ); -// -// Driver Binding Functions -// /** - Test to see if Console In Device could be supported on the ControllerHandle. + Test to see if Console In Device could be supported on the Controller. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to test. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -330,9 +324,9 @@ ConSplitterConInDriverBindingSupported ( ); /** - Test to see if Simple Pointer protocol could be supported on the ControllerHandle. + Test to see if Simple Pointer protocol could be supported on the Controller. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to test. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -350,9 +344,9 @@ ConSplitterSimplePointerDriverBindingSupported ( ); /** - Test to see if Console Out Device could be supported on the ControllerHandle. + Test to see if Console Out Device could be supported on the Controller. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to test. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -370,9 +364,9 @@ ConSplitterConOutDriverBindingSupported ( ); /** - Test to see if Standard Error Device could be supported on the ControllerHandle. + Test to see if Standard Error Device could be supported on the Controller. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to test. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -390,9 +384,9 @@ ConSplitterStdErrDriverBindingSupported ( ); /** - Start Console In Consplitter on device handle. - - @param This Protocol instance pointer. + Start Console In Consplitter on device handle. + + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to bind driver to. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -410,9 +404,9 @@ ConSplitterConInDriverBindingStart ( ); /** - Start Simple Pointer Consplitter on device handle. - - @param This Protocol instance pointer. + Start Simple Pointer Consplitter on device handle. + + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to bind driver to. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -430,9 +424,9 @@ ConSplitterSimplePointerDriverBindingStart ( ); /** - Start Console Out Consplitter on device handle. - - @param This Protocol instance pointer. + Start Console Out Consplitter on device handle. + + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to bind driver to. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -450,9 +444,9 @@ ConSplitterConOutDriverBindingStart ( ); /** - Start Standard Error Consplitter on device handle. - - @param This Protocol instance pointer. + Start Standard Error Consplitter on device handle. + + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to bind driver to. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -472,7 +466,7 @@ ConSplitterStdErrDriverBindingStart ( /** Stop Console In ConSplitter on ControllerHandle by closing Console In Devcice GUID. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to stop driver on @param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. @@ -495,7 +489,7 @@ ConSplitterConInDriverBindingStop ( Stop Simple Pointer protocol ConSplitter on ControllerHandle by closing Simple Pointer protocol. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to stop driver on @param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. @@ -515,9 +509,9 @@ ConSplitterSimplePointerDriverBindingStop ( ); /** - Stop Console Out ConSplitter on ControllerHandle by closing Console Out Devcice GUID. + Stop Console Out ConSplitter on device handle by closing Console Out Devcice GUID. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to stop driver on @param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. @@ -539,7 +533,7 @@ ConSplitterConOutDriverBindingStop ( /** Stop Standard Error ConSplitter on ControllerHandle by closing Standard Error GUID. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to stop driver on @param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. @@ -560,9 +554,9 @@ ConSplitterStdErrDriverBindingStop ( /** - Test to see if Absolute Pointer protocol could be supported on the ControllerHandle. + Test to see if Absolute Pointer protocol could be supported on the Controller. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to test. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -580,9 +574,9 @@ ConSplitterAbsolutePointerDriverBindingSupported ( ); /** - Start Absolute Pointer Consplitter on device handle. - - @param This Protocol instance pointer. + Start Absolute Pointer Consplitter on device handle. + + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to bind driver to. @param RemainingDevicePath Optional parameter use to pick a specific child device to start. @@ -603,7 +597,7 @@ ConSplitterAbsolutePointerDriverBindingStart ( Stop Absolute Pointer protocol ConSplitter on ControllerHandle by closing Absolute Pointer protocol. - @param This Protocol instance pointer. + @param This Driver Binding protocol instance pointer. @param ControllerHandle Handle of device to stop driver on @param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. @@ -639,7 +633,7 @@ ConSplitterAbsolutePointerAddDevice ( ); /** - Remove Absolute Pointer Device in Consplitter Absolute Pointer list. + Remove Absolute Pointer Device from Consplitter Absolute Pointer list. @param Private Text In Splitter pointer. @param AbsolutePointer Absolute Pointer protocol pointer. @@ -702,7 +696,7 @@ ConSplitterAbsolutePointerGetState ( /** This event agregates all the events of the pointer devices in the splitter. - If the ConIn is password locked then return. + If any events of physical pointer devices are signaled, signal the pointer splitter event. This will cause the calling code to call ConSplitterAbsolutePointerGetState (). @@ -710,8 +704,6 @@ ConSplitterAbsolutePointerGetState ( @param Event The Event assoicated with callback. @param Context Context registered when Event was created. - @return None - **/ VOID EFIAPI @@ -740,7 +732,7 @@ ConSplitterAbsolutePointerWaitForInput ( languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified - in RFC 3066 or ISO 639-2 language code format. + in RFC 4646 or ISO 639-2 language code format. @param DriverName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -805,7 +797,7 @@ ConSplitterComponentNameGetDriverName ( languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified in - RFC 3066 or ISO 639-2 language code format. + RFC 4646 or ISO 639-2 language code format. @param ControllerName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -819,7 +811,7 @@ ConSplitterComponentNameGetDriverName ( driver specified by This was returned in DriverName. - @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE. + @retval EFI_INVALID_PARAMETER ControllerHandle is NULL. @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE. @@ -884,7 +876,7 @@ ConSplitterConInComponentNameGetControllerName ( languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified in - RFC 3066 or ISO 639-2 language code format. + RFC 4646 or ISO 639-2 language code format. @param ControllerName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -898,7 +890,7 @@ ConSplitterConInComponentNameGetControllerName ( driver specified by This was returned in DriverName. - @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE. + @retval EFI_INVALID_PARAMETER ControllerHandle is NULL. @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE. @@ -942,7 +934,7 @@ ConSplitterSimplePointerComponentNameGetControllerName ( retrieve the name of the bus controller. It will not be NULL for a bus driver that wishes to retrieve the name of a child controller. - @param Language A pointer to RFC3066 language identifier. This is + @param Language A pointer to RFC4646 language identifier. This is the language of the controller name that that the caller is requesting, and it must match one of the languages specified in SupportedLanguages. The @@ -957,7 +949,7 @@ ConSplitterSimplePointerComponentNameGetControllerName ( @retval EFI_SUCCESS The Unicode string for the user readable name in the language specified by Language for the driver specified by This was returned in DriverName. - @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE. + @retval EFI_INVALID_PARAMETER ControllerHandle is NULL. @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE. @retval EFI_INVALID_PARAMETER Language is NULL. @@ -1016,7 +1008,7 @@ ConSplitterAbsolutePointerComponentNameGetControllerName ( languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified in - RFC 3066 or ISO 639-2 language code format. + RFC 4646 or ISO 639-2 language code format. @param ControllerName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -1030,7 +1022,7 @@ ConSplitterAbsolutePointerComponentNameGetControllerName ( driver specified by This was returned in DriverName. - @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE. + @retval EFI_INVALID_PARAMETER ControllerHandle is NULL. @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE. @@ -1095,7 +1087,7 @@ ConSplitterConOutComponentNameGetControllerName ( languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified in - RFC 3066 or ISO 639-2 language code format. + RFC 4646 or ISO 639-2 language code format. @param ControllerName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -1109,7 +1101,7 @@ ConSplitterConOutComponentNameGetControllerName ( driver specified by This was returned in DriverName. - @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE. + @retval EFI_INVALID_PARAMETER ControllerHandle is NULL. @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE. @@ -1153,12 +1145,12 @@ ConSplitterStdErrComponentNameGetControllerName ( **/ EFI_STATUS ConSplitterTextInAddDevice ( - IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private, - IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn + IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private, + IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn ); /** - Remove Simple Text Device in Consplitter Absolute Pointer list. + Remove Text Input Device from Consplitter Text Input list. @param Private Text In Splitter pointer. @param TextIn Simple Text protocol pointer. @@ -1169,8 +1161,8 @@ ConSplitterTextInAddDevice ( **/ EFI_STATUS ConSplitterTextInDeleteDevice ( - IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private, - IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn + IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private, + IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn ); // @@ -1194,7 +1186,7 @@ ConSplitterSimplePointerAddDevice ( ); /** - Remove Simple Pointer Device in Consplitter Absolute Pointer list. + Remove Simple Pointer Device from Consplitter Simple Pointer list. @param Private Text In Splitter pointer. @param SimplePointer Simple Pointer protocol pointer. @@ -1267,14 +1259,13 @@ ConSplitterTextOutDeleteDevice ( EFI_STATUS EFIAPI ConSplitterTextInReset ( - IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This, - IN BOOLEAN ExtendedVerification + IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This, + IN BOOLEAN ExtendedVerification ); /** Reads the next keystroke from the input device. The WaitForKey Event can be used to test for existance of a keystroke via WaitForEvent () call. - If the ConIn is password locked make it look like no keystroke is availible @param This Protocol instance pointer. @param Key Driver may perform diagnostics on reset. @@ -1288,15 +1279,15 @@ ConSplitterTextInReset ( EFI_STATUS EFIAPI ConSplitterTextInReadKeyStroke ( - IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This, - OUT EFI_INPUT_KEY *Key + IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This, + OUT EFI_INPUT_KEY *Key ); /** Add Text Input Ex Device in Consplitter Text Input Ex list. @param Private Text In Splitter pointer. - @param TextInEx Simple Text Ex Input protocol pointer. + @param TextInEx Simple Text Input Ex Input protocol pointer. @retval EFI_SUCCESS Text Input Ex Device added successfully. @retval EFI_OUT_OF_RESOURCES Could not grow the buffer size. @@ -1309,13 +1300,13 @@ ConSplitterTextInExAddDevice ( ); /** - Remove Simple Text Ex Device in Consplitter Absolute Pointer list. + Remove Text Ex Device from Consplitter Text Input Ex list. @param Private Text In Splitter pointer. @param TextInEx Simple Text Ex protocol pointer. - @retval EFI_SUCCESS Simple Text Ex Device removed successfully. - @retval EFI_NOT_FOUND No Simple Text Ex Device found. + @retval EFI_SUCCESS Simple Text Input Ex Device removed successfully. + @retval EFI_NOT_FOUND No Simple Text Input Ex Device found. **/ EFI_STATUS @@ -1328,7 +1319,6 @@ ConSplitterTextInExDeleteDevice ( // Simple Text Input Ex protocol function prototypes // - /** Reset the input device and optionaly run diagnostics @@ -1411,7 +1401,7 @@ ConSplitterTextInSetState ( successfully. @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for necesssary data structures. - @retval EFI_INVALID_PARAMETER KeyData or NotifyHandle is NULL. + @retval EFI_INVALID_PARAMETER KeyData or KeyNotificationFunction or NotifyHandle is NULL. **/ EFI_STATUS @@ -1420,7 +1410,7 @@ ConSplitterTextInRegisterKeyNotify ( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, IN EFI_KEY_DATA *KeyData, IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction, - OUT EFI_HANDLE *NotifyHandle + OUT VOID **NotifyHandle ); @@ -1441,12 +1431,12 @@ EFI_STATUS EFIAPI ConSplitterTextInUnregisterKeyNotify ( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, - IN EFI_HANDLE NotificationHandle + IN VOID *NotificationHandle ); /** - This event agregates all the events of the ConIn devices in the spliter. - If the ConIn is password locked then return. + This event aggregates all the events of the ConIn devices in the spliter. + If any events of physical ConIn devices are signaled, signal the ConIn spliter event. This will cause the calling code to call ConSplitterTextInReadKeyStroke (). @@ -1454,8 +1444,6 @@ ConSplitterTextInUnregisterKeyNotify ( @param Event The Event assoicated with callback. @param Context Context registered when Event was created. - @return None - **/ VOID EFIAPI @@ -1463,59 +1451,7 @@ ConSplitterTextInWaitForKey ( IN EFI_EVENT Event, IN VOID *Context ); -/** - Return TRUE if StdIn is locked. The ConIn device on the virtual handle is - the only device locked. - - NONE - - @retval TRUE StdIn locked - @retval FALSE StdIn working normally - -**/ -BOOLEAN -ConSpliterConssoleControlStdInLocked ( - VOID - ); -/** - This timer event will fire when StdIn is locked. It will check the key - sequence on StdIn to see if it matches the password. Any error in the - password will cause the check to reset. As long a mConIn.PasswordEnabled is - TRUE the StdIn splitter will not report any input. - - @param Event The Event this notify function registered to. - @param Context Pointer to the context data registerd to the - Event. - - @return None - -**/ -VOID -EFIAPI -ConSpliterConsoleControlLockStdInEvent ( - IN EFI_EVENT Event, - IN VOID *Context - ); - -/** - If Password is NULL unlock the password state variable and set the event - timer. If the Password is too big return an error. If the Password is valid - Copy the Password and enable state variable and then arm the periodic timer - @param This Console Control protocol pointer. - @param Password The password input. - - @retval EFI_SUCCESS Lock the StdIn device - @retval EFI_INVALID_PARAMETER Password is NULL - @retval EFI_OUT_OF_RESOURCES Buffer allocation to store the password fails - -**/ -EFI_STATUS -EFIAPI -ConSpliterConsoleControlLockStdIn ( - IN EFI_CONSOLE_CONTROL_PROTOCOL *This, - IN CHAR16 *Password - ); /** Reads the next keystroke from the input device. The WaitForKey Event can @@ -1558,7 +1494,6 @@ ConSplitterSimplePointerReset ( /** Reads the next keystroke from the input device. The WaitForKey Event can be used to test for existance of a keystroke via WaitForEvent () call. - If the ConIn is password locked make it look like no keystroke is availible @param This A pointer to protocol instance. @param State A pointer to state information on the pointer device @@ -1578,7 +1513,6 @@ ConSplitterSimplePointerGetState ( /** This event agregates all the events of the ConIn devices in the spliter. - If the ConIn is password locked then return. If any events of physical ConIn devices are signaled, signal the ConIn spliter event. This will cause the calling code to call ConSplitterTextInReadKeyStroke (). @@ -1586,8 +1520,6 @@ ConSplitterSimplePointerGetState ( @param Event The Event assoicated with callback. @param Context Context registered when Event was created. - @return None - **/ VOID EFIAPI @@ -1804,111 +1736,68 @@ ConSplitterTextOutEnableCursor ( ); /** - Take the passed in Buffer of size SizeOfCount and grow the buffer - by MAX (CONSOLE_SPLITTER_CONSOLES_ALLOC_UNIT, MaxGrow) * SizeOfCount - bytes. Copy the current data in Buffer to the new version of Buffer - and free the old version of buffer. + Take the passed in Buffer of size ElementSize and grow the buffer + by CONSOLE_SPLITTER_ALLOC_UNIT * ElementSize bytes. + Copy the current data in Buffer to the new version of Buffer and + free the old version of buffer. - @param SizeOfCount Size of element in array - @param Count Current number of elements in array + @param ElementSize Size of element in array. + @param Count Current number of elements in array. @param Buffer Bigger version of passed in Buffer with all the - data + data. - @retval EFI_SUCCESS Buffer size has grown + @retval EFI_SUCCESS Buffer size has grown. @retval EFI_OUT_OF_RESOURCES Could not grow the buffer size. **/ EFI_STATUS ConSplitterGrowBuffer ( - IN UINTN SizeOfCount, - IN UINTN *Count, + IN UINTN ElementSize, + IN OUT UINTN *Count, IN OUT VOID **Buffer ); /** - Return the current video mode information. Also returns info about existence - of Graphics Output devices or UGA Draw devices in system, and if the Std In device is locked. All the - arguments are optional and only returned if a non NULL pointer is passed in. - - @param This Protocol instance pointer. - @param Mode Are we in text of grahics mode. - @param GopExists TRUE if GOP Spliter has found a GOP/UGA device - @param StdInLocked TRUE if StdIn device is keyboard locked - - @retval EFI_SUCCESS Mode information returned. - @retval EFI_INVALID_PARAMETER Invalid parameters. - -**/ -EFI_STATUS -EFIAPI -ConSpliterConsoleControlGetMode ( - IN EFI_CONSOLE_CONTROL_PROTOCOL *This, - OUT EFI_CONSOLE_CONTROL_SCREEN_MODE *Mode, - OUT BOOLEAN *GopExists, - OUT BOOLEAN *StdInLocked - ); - -/** - Set the current mode to either text or graphics. Graphics is - for Quiet Boot. - - @param This Protocol instance pointer. - @param Mode Mode to set the - - @retval EFI_SUCCESS Mode information returned. - @retval EFI_INVALID_PARAMETER Invalid parameter. - @retval EFI_UNSUPPORTED Operation unsupported. - -**/ -EFI_STATUS -EFIAPI -ConSpliterConsoleControlSetMode ( - IN EFI_CONSOLE_CONTROL_PROTOCOL *This, - IN EFI_CONSOLE_CONTROL_SCREEN_MODE Mode - ); - -/** - Return the current video mode information. + Returns information for an available graphics mode that the graphics device + and the set of active video output devices supports. - @param This Protocol instance pointer. - @param ModeNumber The mode number to return information on. - @param SizeOfInfo A pointer to the size, in bytes, of the Info - buffer. - @param Info Caller allocated buffer that returns information - about ModeNumber. + @param This The EFI_GRAPHICS_OUTPUT_PROTOCOL instance. + @param ModeNumber The mode number to return information on. + @param SizeOfInfo A pointer to the size, in bytes, of the Info buffer. + @param Info A pointer to callee allocated buffer that returns information about ModeNumber. - @retval EFI_SUCCESS Mode information returned. - @retval EFI_BUFFER_TOO_SMALL The Info buffer was too small. - @retval EFI_DEVICE_ERROR A hardware error occurred trying to retrieve the - video mode. - @retval EFI_NOT_STARTED Video display is not initialized. Call SetMode () - @retval EFI_INVALID_PARAMETER One of the input args was NULL. + @retval EFI_SUCCESS Mode information returned. + @retval EFI_BUFFER_TOO_SMALL The Info buffer was too small. + @retval EFI_DEVICE_ERROR A hardware error occurred trying to retrieve the video mode. + @retval EFI_INVALID_PARAMETER One of the input args was NULL. + @retval EFI_OUT_OF_RESOURCES No resource available. **/ EFI_STATUS EFIAPI -ConSpliterGraphicsOutputQueryMode ( - IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, - IN UINT32 ModeNumber, - OUT UINTN *SizeOfInfo, +ConSplitterGraphicsOutputQueryMode ( + IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, + IN UINT32 ModeNumber, + OUT UINTN *SizeOfInfo, OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **Info ); /** - Graphics output protocol interface to set video mode. + Set the video device into the specified mode and clears the visible portions of + the output display to black. - @param This Protocol instance pointer. - @param ModeNumber The mode number to be set. + @param This The EFI_GRAPHICS_OUTPUT_PROTOCOL instance. + @param ModeNumber Abstraction that defines the current video mode. - @retval EFI_SUCCESS Graphics mode was changed. - @retval EFI_DEVICE_ERROR The device had an error and could not complete - the request. - @retval EFI_UNSUPPORTED ModeNumber is not supported by this device. + @retval EFI_SUCCESS The graphics mode specified by ModeNumber was selected. + @retval EFI_DEVICE_ERROR The device had an error and could not complete the request. + @retval EFI_UNSUPPORTED ModeNumber is not supported by this device. + @retval EFI_OUT_OF_RESOURCES No resource available. **/ EFI_STATUS EFIAPI -ConSpliterGraphicsOutputSetMode ( +ConSplitterGraphicsOutputSetMode ( IN EFI_GRAPHICS_OUTPUT_PROTOCOL * This, IN UINT32 ModeNumber ); @@ -1950,7 +1839,7 @@ ConSpliterGraphicsOutputSetMode ( @param DestinationX X coordinate of destination for the BltBuffer. @param DestinationY Y coordinate of destination for the BltBuffer. @param Width Width of rectangle in BltBuffer in pixels. - @param Height Hight of rectangle in BltBuffer in pixels. + @param Height Hight of rectangle in BltBuffer in pixels. @param Delta OPTIONAL. @retval EFI_SUCCESS The Blt operation completed. @@ -1961,7 +1850,7 @@ ConSpliterGraphicsOutputSetMode ( **/ EFI_STATUS EFIAPI -ConSpliterGraphicsOutputBlt ( +ConSplitterGraphicsOutputBlt ( IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, OPTIONAL IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation, @@ -1974,44 +1863,24 @@ ConSpliterGraphicsOutputBlt ( IN UINTN Delta OPTIONAL ); -/** - Write data from the buffer to video display based on Graphics Output setting. - - @param Private Consplitter Text Out pointer. - @param GraphicsOutput Graphics Output protocol pointer. - @param UgaDraw UGA Draw protocol pointer. - - @retval EFI_UNSUPPORTED No graphics devcie available . - @retval EFI_SUCCESS The Blt operation completed. - @retval EFI_INVALID_PARAMETER BltOperation is not valid. - @retval EFI_DEVICE_ERROR A hardware error occured writting to the video buffer. - - -**/ -EFI_STATUS -DevNullGopSync ( - IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private, - IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput, - IN EFI_UGA_DRAW_PROTOCOL *UgaDraw - ); /** Return the current video mode information. - @param This Protocol instance pointer. - @param HorizontalResolution Current video horizontal resolution in pixels - @param VerticalResolution Current video vertical resolution in pixels - @param ColorDepth Current video color depth in bits per pixel - @param RefreshRate Current video refresh rate in Hz. + @param This The EFI_UGA_DRAW_PROTOCOL instance. + @param HorizontalResolution The size of video screen in pixels in the X dimension. + @param VerticalResolution The size of video screen in pixels in the Y dimension. + @param ColorDepth Number of bits per pixel, currently defined to be 32. + @param RefreshRate The refresh rate of the monitor in Hertz. - @retval EFI_SUCCESS Mode information returned. - @retval EFI_NOT_STARTED Video display is not initialized. Call SetMode () - @retval EFI_INVALID_PARAMETER One of the input args was NULL. + @retval EFI_SUCCESS Mode information returned. + @retval EFI_NOT_STARTED Video display is not initialized. Call SetMode () + @retval EFI_INVALID_PARAMETER One of the input args was NULL. **/ EFI_STATUS EFIAPI -ConSpliterUgaDrawGetMode ( +ConSplitterUgaDrawGetMode ( IN EFI_UGA_DRAW_PROTOCOL *This, OUT UINT32 *HorizontalResolution, OUT UINT32 *VerticalResolution, @@ -2020,22 +1889,22 @@ ConSpliterUgaDrawGetMode ( ); /** - Return the current video mode information. + Set the current video mode information. - @param This Protocol instance pointer. - @param HorizontalResolution Current video horizontal resolution in pixels - @param VerticalResolution Current video vertical resolution in pixels - @param ColorDepth Current video color depth in bits per pixel - @param RefreshRate Current video refresh rate in Hz. + @param This The EFI_UGA_DRAW_PROTOCOL instance. + @param HorizontalResolution The size of video screen in pixels in the X dimension. + @param VerticalResolution The size of video screen in pixels in the Y dimension. + @param ColorDepth Number of bits per pixel, currently defined to be 32. + @param RefreshRate The refresh rate of the monitor in Hertz. - @retval EFI_SUCCESS Mode information returned. - @retval EFI_NOT_STARTED Video display is not initialized. Call SetMode () - @retval EFI_OUT_OF_RESOURCES Out of resources. + @retval EFI_SUCCESS Mode information returned. + @retval EFI_NOT_STARTED Video display is not initialized. Call SetMode () + @retval EFI_OUT_OF_RESOURCES Out of resources. **/ EFI_STATUS EFIAPI -ConSpliterUgaDrawSetMode ( +ConSplitterUgaDrawSetMode ( IN EFI_UGA_DRAW_PROTOCOL *This, IN UINT32 HorizontalResolution, IN UINT32 VerticalResolution, @@ -2044,54 +1913,57 @@ ConSpliterUgaDrawSetMode ( ); /** - The following table defines actions for BltOperations. - - EfiUgaVideoFill - Write data from the BltBuffer pixel (SourceX, SourceY) - directly to every pixel of the video display rectangle - (DestinationX, DestinationY) - (DestinationX + Width, DestinationY + Height). - Only one pixel will be used from the BltBuffer. Delta is NOT used. - EfiUgaVideoToBltBuffer - Read data from the video display rectangle - (SourceX, SourceY) (SourceX + Width, SourceY + Height) and place it in - the BltBuffer rectangle (DestinationX, DestinationY ) - (DestinationX + Width, DestinationY + Height). If DestinationX or - DestinationY is not zero then Delta must be set to the length in bytes - of a row in the BltBuffer. - EfiUgaBltBufferToVideo - Write data from the BltBuffer rectangle - (SourceX, SourceY) (SourceX + Width, SourceY + Height) directly to the - video display rectangle (DestinationX, DestinationY) - (DestinationX + Width, DestinationY + Height). If SourceX or SourceY is - not zero then Delta must be set to the length in bytes of a row in the - BltBuffer. - EfiUgaVideoToVideo - Copy from the video display rectangle - (SourceX, SourceY) (SourceX + Width, SourceY + Height) . - to the video display rectangle (DestinationX, DestinationY) - (DestinationX + Width, DestinationY + Height). - The BltBuffer and Delta are not used in this mode. + Blt a rectangle of pixels on the graphics screen. - @param This Protocol instance pointer. - @param BltBuffer Buffer containing data to blit into video buffer. - This buffer has a size of - Width*Height*sizeof(EFI_UGA_PIXEL) - @param BltOperation Operation to perform on BlitBuffer and video - memory - @param SourceX X coordinate of source for the BltBuffer. - @param SourceY Y coordinate of source for the BltBuffer. - @param DestinationX X coordinate of destination for the BltBuffer. - @param DestinationY Y coordinate of destination for the BltBuffer. - @param Width Width of rectangle in BltBuffer in pixels. - @param Height Hight of rectangle in BltBuffer in pixels. - @param Delta OPTIONAL. + The following table defines actions for BltOperations. - @retval EFI_SUCCESS The Blt operation completed. - @retval EFI_INVALID_PARAMETER BltOperation is not valid. - @retval EFI_DEVICE_ERROR A hardware error occured writting to the video - buffer. + EfiUgaVideoFill: + Write data from the BltBuffer pixel (SourceX, SourceY) + directly to every pixel of the video display rectangle + (DestinationX, DestinationY) + (DestinationX + Width, DestinationY + Height). + Only one pixel will be used from the BltBuffer. Delta is NOT used. + EfiUgaVideoToBltBuffer: + Read data from the video display rectangle + (SourceX, SourceY) (SourceX + Width, SourceY + Height) and place it in + the BltBuffer rectangle (DestinationX, DestinationY ) + (DestinationX + Width, DestinationY + Height). If DestinationX or + DestinationY is not zero then Delta must be set to the length in bytes + of a row in the BltBuffer. + EfiUgaBltBufferToVideo: + Write data from the BltBuffer rectangle + (SourceX, SourceY) (SourceX + Width, SourceY + Height) directly to the + video display rectangle (DestinationX, DestinationY) + (DestinationX + Width, DestinationY + Height). If SourceX or SourceY is + not zero then Delta must be set to the length in bytes of a row in the + BltBuffer. + EfiUgaVideoToVideo: + Copy from the video display rectangle + (SourceX, SourceY) (SourceX + Width, SourceY + Height) . + to the video display rectangle (DestinationX, DestinationY) + (DestinationX + Width, DestinationY + Height). + The BltBuffer and Delta are not used in this mode. + + @param This Protocol instance pointer. + @param BltBuffer Buffer containing data to blit into video buffer. This + buffer has a size of Width*Height*sizeof(EFI_UGA_PIXEL) + @param BltOperation Operation to perform on BlitBuffer and video memory + @param SourceX X coordinate of source for the BltBuffer. + @param SourceY Y coordinate of source for the BltBuffer. + @param DestinationX X coordinate of destination for the BltBuffer. + @param DestinationY Y coordinate of destination for the BltBuffer. + @param Width Width of rectangle in BltBuffer in pixels. + @param Height Hight of rectangle in BltBuffer in pixels. + @param Delta OPTIONAL + + @retval EFI_SUCCESS The Blt operation completed. + @retval EFI_INVALID_PARAMETER BltOperation is not valid. + @retval EFI_DEVICE_ERROR A hardware error occured writting to the video buffer. **/ EFI_STATUS EFIAPI -ConSpliterUgaDrawBlt ( +ConSplitterUgaDrawBlt ( IN EFI_UGA_DRAW_PROTOCOL *This, IN EFI_UGA_PIXEL *BltBuffer, OPTIONAL IN EFI_UGA_BLT_OPERATION BltOperation, @@ -2104,142 +1976,18 @@ ConSpliterUgaDrawBlt ( IN UINTN Delta OPTIONAL ); -/** - Write data from the buffer to video display based on UGA Draw setting. - - @param Private Consplitter Text Out pointer. - @param GraphicsOutput Graphics Output protocol pointer. - @param UgaDraw UGA Draw protocol pointer. - - @retval EFI_UNSUPPORTED No graphics devcie available . - @retval EFI_SUCCESS The Blt operation completed. - @retval EFI_INVALID_PARAMETER BltOperation is not valid. - @retval EFI_DEVICE_ERROR A hardware error occured writting to the video buffer. - -**/ -EFI_STATUS -DevNullUgaSync ( - IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private, - IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput, - IN EFI_UGA_DRAW_PROTOCOL *UgaDraw - ); - -/** - Write a Unicode string to the output device. - - @param Private Pointer to the console output splitter's private - data. It indicates the calling context. - @param WString The NULL-terminated Unicode string to be - displayed on the output device(s). All output - devices must also support the Unicode drawing - defined in this file. - - @retval EFI_SUCCESS The string was output to the device. - @retval EFI_DEVICE_ERROR The device reported an error while attempting to - output the text. - @retval EFI_UNSUPPORTED The output device's mode is not currently in a - defined text mode. - @retval EFI_WARN_UNKNOWN_GLYPH This warning code indicates that some of the - characters in the Unicode string could not be - rendered and were skipped. - -**/ -EFI_STATUS -DevNullTextOutOutputString ( - IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private, - IN CHAR16 *WString - ); - /** Sets the output device(s) to a specified mode. - @param Private Private data structure pointer. + @param Private Text Out Splitter pointer. @param ModeNumber The mode number to set. - @retval EFI_SUCCESS The requested text mode was set. - @retval EFI_DEVICE_ERROR The device had an error and could not complete - the request. - @retval EFI_UNSUPPORTED The mode number was not valid. - @retval EFI_OUT_OF_RESOURCES Out of resources. - **/ -EFI_STATUS -DevNullTextOutSetMode ( +VOID +TextOutSetMode ( IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private, IN UINTN ModeNumber ); -/** - Clears the output device(s) display to the currently selected background - color. - - @param Private Protocol instance pointer. - - @retval EFI_SUCCESS The operation completed successfully. - @retval EFI_DEVICE_ERROR The device had an error and could not complete - the request. - @retval EFI_UNSUPPORTED The output device is not in a valid text mode. - -**/ -EFI_STATUS -DevNullTextOutClearScreen ( - IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private - ); - -/** - Sets the current coordinates of the cursor position. - - @param Private Protocol instance pointer. - @param Column - @param Row the position to set the cursor to. Must be - greater than or equal to zero and less than the - number of columns and rows by QueryMode (). - - @retval EFI_SUCCESS The operation completed successfully. - @retval EFI_DEVICE_ERROR The device had an error and could not complete - the request. - @retval EFI_UNSUPPORTED The output device is not in a valid text mode, or - the cursor position is invalid for the current - mode. - -**/ -EFI_STATUS -DevNullTextOutSetCursorPosition ( - IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private, - IN UINTN Column, - IN UINTN Row - ); - -/** - Implements SIMPLE_TEXT_OUTPUT.EnableCursor(). - In this driver, the cursor cannot be hidden. - - @param Private Indicates the calling context. - @param Visible If TRUE, the cursor is set to be visible, If - FALSE, the cursor is set to be invisible. - - @retval EFI_SUCCESS The request is valid. - -**/ -EFI_STATUS -DevNullTextOutEnableCursor ( - IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private, - IN BOOLEAN Visible - ); - -/** - Take the DevNull TextOut device and update the Simple Text Out on every - UGA device. - - @param Private Indicates the calling context. - - @retval EFI_SUCCESS The request is valid. - @retval other Return status of TextOut->OutputString () - -**/ -EFI_STATUS -DevNullSyncStdOut ( - IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private - ); #endif