ReactOS  0.4.15-dev-1018-g0695ecb
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 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:239
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS BlMmFreeHeap(_In_ PVOID Buffer)
Definition: heapalloc.c:663
PVOID BlMmAllocateHeap(_In_ SIZE_T Size)
Definition: heapalloc.c:569
BL_TEXT_CONSOLE TextConsole
Definition: bl.h:1166
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSTATUS ConsoleRemoteConstruct(_In_ PBL_REMOTE_CONSOLE RemoteConsole)
Definition: emscons.c:18
Status
Definition: gdiplustypes.h:24
PVOID DspRemoteInputConsole
Definition: display.c:35
#define _In_
Definition: no_sal2.h:204
NTSTATUS ConsoleCreateRemoteConsole(_In_ PBL_TEXT_CONSOLE *TextConsole)
Definition: emscons.c:31
return STATUS_SUCCESS
Definition: btrfs.c:3014