TianoCore EDK2
master
Loading...
Searching...
No Matches
SimpleTextIn.h
Go to the documentation of this file.
1
12
#ifndef __SIMPLE_TEXT_IN_PROTOCOL_H__
13
#define __SIMPLE_TEXT_IN_PROTOCOL_H__
14
15
#define EFI_SIMPLE_TEXT_INPUT_PROTOCOL_GUID \
16
{ \
17
0x387477c1, 0x69c7, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
18
}
19
20
typedef
struct
_EFI_SIMPLE_TEXT_INPUT_PROTOCOL
EFI_SIMPLE_TEXT_INPUT_PROTOCOL
;
21
25
#define SIMPLE_INPUT_PROTOCOL EFI_SIMPLE_TEXT_INPUT_PROTOCOL_GUID
26
30
typedef
struct
_EFI_SIMPLE_TEXT_INPUT_PROTOCOL
SIMPLE_INPUT_INTERFACE
;
31
35
typedef
struct
{
36
UINT16
ScanCode
;
37
CHAR16 UnicodeChar;
38
}
EFI_INPUT_KEY
;
39
40
//
41
// Required unicode control chars
42
//
43
#define CHAR_BACKSPACE 0x0008
44
#define CHAR_TAB 0x0009
45
#define CHAR_LINEFEED 0x000A
46
#define CHAR_CARRIAGE_RETURN 0x000D
47
48
//
49
// EFI Scan codes
50
//
51
#define SCAN_NULL 0x0000
52
#define SCAN_UP 0x0001
53
#define SCAN_DOWN 0x0002
54
#define SCAN_RIGHT 0x0003
55
#define SCAN_LEFT 0x0004
56
#define SCAN_HOME 0x0005
57
#define SCAN_END 0x0006
58
#define SCAN_INSERT 0x0007
59
#define SCAN_DELETE 0x0008
60
#define SCAN_PAGE_UP 0x0009
61
#define SCAN_PAGE_DOWN 0x000A
62
#define SCAN_F1 0x000B
63
#define SCAN_F2 0x000C
64
#define SCAN_F3 0x000D
65
#define SCAN_F4 0x000E
66
#define SCAN_F5 0x000F
67
#define SCAN_F6 0x0010
68
#define SCAN_F7 0x0011
69
#define SCAN_F8 0x0012
70
#define SCAN_F9 0x0013
71
#define SCAN_F10 0x0014
72
#define SCAN_ESC 0x0017
73
84
typedef
85
EFI_STATUS
86
(EFIAPI *
EFI_INPUT_RESET
)(
87
IN
EFI_SIMPLE_TEXT_INPUT_PROTOCOL
*This,
88
IN
BOOLEAN ExtendedVerification
89
);
90
106
typedef
107
EFI_STATUS
108
(EFIAPI *
EFI_INPUT_READ_KEY
)(
109
IN
EFI_SIMPLE_TEXT_INPUT_PROTOCOL
*This,
110
OUT
EFI_INPUT_KEY
*Key
111
);
112
117
struct
_EFI_SIMPLE_TEXT_INPUT_PROTOCOL
{
118
EFI_INPUT_RESET
Reset;
119
EFI_INPUT_READ_KEY
ReadKeyStroke;
123
EFI_EVENT
WaitForKey
;
124
};
125
126
extern
EFI_GUID
gEfiSimpleTextInProtocolGuid;
127
128
#endif
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
ScanCode
UINT8 ScanCode
follows value defined in Scan Code Set1
Definition:
Ps2KbdCtrller.c:12
EFI_INPUT_READ_KEY
EFI_STATUS(EFIAPI * EFI_INPUT_READ_KEY)(IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This, OUT EFI_INPUT_KEY *Key)
Definition:
SimpleTextIn.h:108
EFI_INPUT_RESET
EFI_STATUS(EFIAPI * EFI_INPUT_RESET)(IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
Definition:
SimpleTextIn.h:86
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_EVENT
VOID * EFI_EVENT
Definition:
UefiBaseType.h:37
_EFI_SIMPLE_TEXT_INPUT_PROTOCOL
Definition:
SimpleTextIn.h:117
_EFI_SIMPLE_TEXT_INPUT_PROTOCOL::WaitForKey
EFI_EVENT WaitForKey
Definition:
SimpleTextIn.h:123
EFI_INPUT_KEY
Definition:
SimpleTextIn.h:35
GUID
Definition:
Base.h:213
MdePkg
Include
Protocol
SimpleTextIn.h
Generated on Fri Nov 15 2024 18:01:16 for TianoCore EDK2 by
1.9.6