]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h
ShellPkg/[hex]edit: use SimpleTextInEx to read console
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / HexEdit / HexEditorTypes.h
index 51c9f44cd52d589fc85b86cfd5b34027c33bc2b8..2a0429a4a1bc7c913b7dd8d42dbf0a7f35cef8a5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   data types that are used by editor\r
   \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -18,7 +18,7 @@
 #include "UefiShellDebug1CommandsLib.h"\r
 #include "EditTitleBar.h"\r
 \r
-#define EFI_EDITOR_LINE_LIST  'eell'\r
+#define EFI_EDITOR_LINE_LIST  SIGNATURE_32 ('e', 'e', 'l', 'l')\r
 \r
 #define ASCII_POSITION        ((0x10 * 3) + 12)\r
 \r
@@ -60,7 +60,7 @@ typedef struct {
 \r
 typedef union {\r
   HEFI_EDITOR_COLOR_ATTRIBUTES  Colors;\r
-  UINT8                         Data;\r
+  UINTN                         Data;\r
 } HEFI_EDITOR_COLOR_UNION;\r
 \r
 typedef struct {\r
@@ -78,10 +78,9 @@ typedef struct {
 } HEFI_EDITOR_DISK_IMAGE;\r
 \r
 typedef struct {\r
-  EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoFncs;\r
-\r
-  UINTN                           Offset;\r
-  UINTN                           Size;\r
+  EFI_CPU_IO2_PROTOCOL *IoFncs;\r
+  UINTN                Offset;\r
+  UINTN                Size;\r
 } HEFI_EDITOR_MEM_IMAGE;\r
 \r
 typedef struct {\r
@@ -110,23 +109,18 @@ typedef struct {
 } HEFI_EDITOR_BUFFER_IMAGE;\r
 \r
 typedef struct {\r
-  UINT8 *Buffer;\r
-  UINTN Size;\r
-} HEFI_EDITOR_CLIPBOARD;\r
-\r
-typedef struct {\r
-  HEFI_EDITOR_BUFFER_IMAGE    *BufferImage;\r
-  HEFI_EDITOR_CLIPBOARD       *Clipboard;\r
-\r
-  HEFI_EDITOR_COLOR_UNION     ColorAttributes;\r
-  HEFI_EDITOR_POSITION        ScreenSize;           // row number and column number\r
-  BOOLEAN                     MouseSupported;\r
-  EFI_SIMPLE_POINTER_PROTOCOL *MouseInterface;\r
-  INT32                       MouseAccumulatorX;\r
-  INT32                       MouseAccumulatorY;\r
-\r
-  UINTN                       SelectStart;          // starting from 1\r
-  UINTN                       SelectEnd;            // starting from 1\r
+  HEFI_EDITOR_BUFFER_IMAGE          *BufferImage;\r
+\r
+  HEFI_EDITOR_COLOR_UNION           ColorAttributes;\r
+  HEFI_EDITOR_POSITION              ScreenSize;           // row number and column number\r
+  EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInputEx;\r
+  BOOLEAN                           MouseSupported;\r
+  EFI_SIMPLE_POINTER_PROTOCOL       *MouseInterface;\r
+  INT32                             MouseAccumulatorX;\r
+  INT32                             MouseAccumulatorY;\r
+\r
+  UINTN                             SelectStart;          // starting from 1\r
+  UINTN                             SelectEnd;            // starting from 1\r
 } HEFI_EDITOR_GLOBAL_EDITOR;\r
 \r
 #endif\r