2 * COPYRIGHT: See COPYING.ARM in the top level directory
3 * PROJECT: ReactOS UEFI Boot Library
4 * FILE: boot/environ/lib/io/display/emscons.c
5 * PURPOSE: Boot Library Remote Console Routines
6 * PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org)
9 /* INCLUDES ******************************************************************/
13 /* DATA VARIABLES ************************************************************/
15 /* FUNCTIONS *****************************************************************/
18 ConsoleRemoteConstruct (
19 _In_ PBL_REMOTE_CONSOLE RemoteConsole
25 /* We don't support EMS for now */
26 return STATUS_NOT_IMPLEMENTED
;
31 ConsoleCreateRemoteConsole (
32 _In_ PBL_TEXT_CONSOLE
* TextConsole
35 PBL_REMOTE_CONSOLE RemoteConsole
;
38 /* Allocate the remote console */
39 RemoteConsole
= BlMmAllocateHeap(sizeof(*RemoteConsole
));
42 return STATUS_INSUFFICIENT_RESOURCES
;
46 Status
= ConsoleRemoteConstruct(RemoteConsole
);
47 if (!NT_SUCCESS(Status
))
49 /* Failed to construct it, delete it */
50 BlMmFreeHeap(RemoteConsole
);
54 /* Save the global pointer and return a pointer to the text console */
55 DspRemoteInputConsole
= RemoteConsole
;
56 *TextConsole
= &RemoteConsole
->TextConsole
;
57 return STATUS_SUCCESS
;