ReactOS 0.4.16-dev-297-gc569aee
emscons.c
Go to the documentation of this file.
1/*
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)
7 */
8
9/* INCLUDES ******************************************************************/
10
11#include "bl.h"
12
13/* DATA VARIABLES ************************************************************/
14
15/* FUNCTIONS *****************************************************************/
16
19 _In_ PBL_REMOTE_CONSOLE RemoteConsole
20 )
21{
22#ifdef BL_EMS_SUPPORT
23#error Implement me
24#else
25 /* We don't support EMS for now */
27#endif
28}
29
32 _In_ PBL_TEXT_CONSOLE* TextConsole
33 )
34{
35 PBL_REMOTE_CONSOLE RemoteConsole;
37
38 /* Allocate the remote console */
39 RemoteConsole = BlMmAllocateHeap(sizeof(*RemoteConsole));
40 if (!RemoteConsole)
41 {
43 }
44
45 /* Construct it */
46 Status = ConsoleRemoteConstruct(RemoteConsole);
47 if (!NT_SUCCESS(Status))
48 {
49 /* Failed to construct it, delete it */
50 BlMmFreeHeap(RemoteConsole);
51 return Status;
52 }
53
54 /* Save the global pointer and return a pointer to the text console */
55 DspRemoteInputConsole = RemoteConsole;
56 *TextConsole = &RemoteConsole->TextConsole;
57 return STATUS_SUCCESS;
58}
LONG NTSTATUS
Definition: precomp.h:26
PVOID BlMmAllocateHeap(_In_ SIZE_T Size)
Definition: heapalloc.c:569
PVOID DspRemoteInputConsole
Definition: display.c:35
NTSTATUS BlMmFreeHeap(_In_ PVOID Buffer)
Definition: heapalloc.c:663
#define STATUS_NOT_IMPLEMENTED
Definition: d3dkmdt.h:42
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
NTSTATUS ConsoleCreateRemoteConsole(_In_ PBL_TEXT_CONSOLE *TextConsole)
Definition: emscons.c:31
NTSTATUS ConsoleRemoteConstruct(_In_ PBL_REMOTE_CONSOLE RemoteConsole)
Definition: emscons.c:18
Status
Definition: gdiplustypes.h:25
#define _In_
Definition: no_sal2.h:158
#define STATUS_SUCCESS
Definition: shellext.h:65
BL_TEXT_CONSOLE TextConsole
Definition: bl.h:1165
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158