iPXE
ConsoleControl.h
Go to the documentation of this file.
1#ifndef _IPXE_EFI_CONSOLECONTROL_H
2#define _IPXE_EFI_CONSOLECONTROL_H
3
4/*++
5
6Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
7This program and the accompanying materials
8are licensed and made available under the terms and conditions of the BSD License
9which accompanies this distribution. The full text of the license may be found at
10http://opensource.org/licenses/bsd-license.php
11
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15Module Name:
16
17 ConsoleControl.h
18
19Abstract:
20
21 Abstraction of a Text mode or GOP/UGA screen
22
23--*/
24
25#ifndef __CONSOLE_CONTROL_H__
26#define __CONSOLE_CONTROL_H__
27
28FILE_LICENCE ( BSD3 );
29FILE_SECBOOT ( PERMITTED );
30
31#define EFI_CONSOLE_CONTROL_PROTOCOL_GUID \
32 { 0xf42f7782, 0x12e, 0x4c12, {0x99, 0x56, 0x49, 0xf9, 0x43, 0x4, 0xf7, 0x21} }
33
35
36
42
43
44typedef
49 OUT BOOLEAN *GopUgaExists, OPTIONAL
50 OUT BOOLEAN *StdInLocked OPTIONAL
51 )
52/*++
53
54 Routine Description:
55 Return the current video mode information. Also returns info about existence
56 of Graphics Output devices or UGA Draw devices in system, and if the Std In
57 device is locked. All the arguments are optional and only returned if a non
58 NULL pointer is passed in.
59
60 Arguments:
61 This - Protocol instance pointer.
62 Mode - Are we in text of grahics mode.
63 GopUgaExists - TRUE if Console Spliter has found a GOP or UGA device
64 StdInLocked - TRUE if StdIn device is keyboard locked
65
66 Returns:
67 EFI_SUCCESS - Mode information returned.
68
69--*/
70;
71
72
73typedef
78 )
79/*++
80
81 Routine Description:
82 Set the current mode to either text or graphics. Graphics is
83 for Quiet Boot.
84
85 Arguments:
86 This - Protocol instance pointer.
87 Mode - Mode to set the
88
89 Returns:
90 EFI_SUCCESS - Mode information returned.
91
92--*/
93;
94
95
96typedef
100 IN CHAR16 *Password
101 )
102/*++
103
104 Routine Description:
105 Lock Std In devices until Password is typed.
106
107 Arguments:
108 This - Protocol instance pointer.
109 Password - Password needed to unlock screen. NULL means unlock keyboard
110
111 Returns:
112 EFI_SUCCESS - Mode information returned.
113 EFI_DEVICE_ERROR - Std In not locked
114
115--*/
116;
117
118
119
125
127
128#endif
129
130#endif /* _IPXE_EFI_CONSOLECONTROL_H */
unsigned char BOOLEAN
Logical Boolean.
unsigned short CHAR16
2-byte Character.
#define EFIAPI
#define OPTIONAL
Passing the datum to the function is optional, and a NULL is passed if the value is not supplied.
Definition Base.h:293
EFI_STATUS(EFIAPI * EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE)(IN EFI_CONSOLE_CONTROL_PROTOCOL *This, OUT EFI_CONSOLE_CONTROL_SCREEN_MODE *Mode, OUT BOOLEAN *GopUgaExists, OPTIONAL OUT BOOLEAN *StdInLocked OPTIONAL)
EFI_CONSOLE_CONTROL_SCREEN_MODE
@ EfiConsoleControlScreenGraphics
@ EfiConsoleControlScreenMaxValue
@ EfiConsoleControlScreenText
EFI_GUID gEfiConsoleControlProtocolGuid
struct _EFI_CONSOLE_CONTROL_PROTOCOL EFI_CONSOLE_CONTROL_PROTOCOL
EFI_STATUS(EFIAPI * EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE)(IN EFI_CONSOLE_CONTROL_PROTOCOL *This, IN EFI_CONSOLE_CONTROL_SCREEN_MODE Mode)
EFI_STATUS(EFIAPI * EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN)(IN EFI_CONSOLE_CONTROL_PROTOCOL *This, IN CHAR16 *Password)
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29
EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE GetMode
EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE SetMode
EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN LockStdIn