aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tbi/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tbi/screen.c')
-rw-r--r--lib/tbi/screen.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/tbi/screen.c b/lib/tbi/screen.c
deleted file mode 100644
index ae4f2be..0000000
--- a/lib/tbi/screen.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <Uefi.h>
-#include <Library/DebugLib.h>
-#include <Library/BaseMemoryLib.h>
-#include <Library/MemoryAllocationLib.h>
-#include <Library/UefiBootServicesTableLib.h>
-
-#include "screen.h"
-
-struct screen *prepare_screen(VOID)
-{
- struct screen *scr;
- scr = AllocateZeroPool(sizeof(struct screen));
- if(!scr)
- return NULL;
-
- scr->stdin = gST->ConIn;
- scr->stdout = gST->ConOut;
- scr->stderr = gST->StdErr;
-
- gST->ConOut->QueryMode(
- gST->ConOut,
- gST->ConOut->Mode->Mode,
- &(scr->columns),
- &(scr->lines)
- );
- scr->attr = gST->ConOut->Mode->Attribute;
-
- return scr;
-}
-
-VOID forget_screen(struct screen *scr)
-{
- ASSERT(scr != NULL);
-
- FreePool(scr);
-}