]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Protocol/ConsoleControl.h
Code scrube for MdeModule Definitions.
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / ConsoleControl.h
CommitLineData
5f597758 1/** @file\r
88f20127 2\r
5f597758
LG
3 This protocol provides the interfaces to Get/Set the current video mode for GOP/UGA screen\r
4\r
5Copyright (c) 2006 - 2008, Intel Corporation \r
88f20127 6All rights reserved. This program and the accompanying materials \r
7are licensed and made available under the terms and conditions of the BSD License \r
8which accompanies this distribution. The full text of the license may be found at \r
9http://opensource.org/licenses/bsd-license.php \r
10 \r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
13\r
5f597758 14**/\r
88f20127 15\r
16#ifndef __CONSOLE_CONTROL_H__\r
17#define __CONSOLE_CONTROL_H__\r
18\r
19#define EFI_CONSOLE_CONTROL_PROTOCOL_GUID \\r
20 { 0xf42f7782, 0x12e, 0x4c12, {0x99, 0x56, 0x49, 0xf9, 0x43, 0x4, 0xf7, 0x21 } }\r
21\r
22typedef struct _EFI_CONSOLE_CONTROL_PROTOCOL EFI_CONSOLE_CONTROL_PROTOCOL;\r
23\r
24\r
25typedef enum {\r
26 EfiConsoleControlScreenText,\r
27 EfiConsoleControlScreenGraphics,\r
28 EfiConsoleControlScreenMaxValue\r
29} EFI_CONSOLE_CONTROL_SCREEN_MODE;\r
30\r
5f597758
LG
31/**\r
32 Return the current video mode information. Also returns info about existence\r
33 of Graphics Output devices or UGA Draw devices in system, and if the Std In device is locked. All the\r
34 arguments are optional and only returned if a non NULL pointer is passed in.\r
35\r
36 @param This Protocol instance pointer.\r
37 @param Mode Are we in text of grahics mode.\r
38 @param GopExists TRUE if GOP Spliter has found a GOP/UGA device\r
39 @param StdInLocked TRUE if StdIn device is keyboard locked\r
88f20127 40\r
5f597758
LG
41 @retval EFI_SUCCESS Video mode information is returned.\r
42 @retval EFI_INVALID_PARAMETER Invalid parameters if Mode == NULL.\r
43\r
44**/\r
88f20127 45typedef\r
46EFI_STATUS\r
47(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE) (\r
48 IN EFI_CONSOLE_CONTROL_PROTOCOL *This,\r
49 OUT EFI_CONSOLE_CONTROL_SCREEN_MODE *Mode,\r
62409219 50 OUT BOOLEAN *GopUgaExists, OPTIONAL \r
51 OUT BOOLEAN *StdInLocked OPTIONAL\r
88f20127 52 )\r
5f597758 53;\r
88f20127 54\r
5f597758
LG
55/**\r
56 Set the current video mode to either text or graphics. \r
88f20127 57\r
5f597758
LG
58 @param This Protocol instance pointer.\r
59 @param Mode Mode is to be set.\r
88f20127 60\r
5f597758
LG
61 @retval EFI_SUCCESS Mode is set.\r
62 @retval EFI_INVALID_PARAMETER Mode is not the valid mode value.\r
63 @retval EFI_UNSUPPORTED Mode is unsupported by console device.\r
88f20127 64\r
5f597758 65**/\r
88f20127 66typedef\r
67EFI_STATUS\r
68(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE) (\r
69 IN EFI_CONSOLE_CONTROL_PROTOCOL *This,\r
70 OUT EFI_CONSOLE_CONTROL_SCREEN_MODE Mode\r
71 )\r
88f20127 72;\r
73\r
5f597758
LG
74/**\r
75 Copy the Password and enable state variable and then arm the periodic timer\r
76\r
77 @retval EFI_SUCCESS Lock the StdIn device\r
78 @retval EFI_INVALID_PARAMETER Password is NULL\r
79 @retval EFI_OUT_OF_RESOURCES Buffer allocation to store the big password fails\r
88f20127 80\r
5f597758 81**/\r
88f20127 82typedef\r
83EFI_STATUS\r
84(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN) (\r
85 IN EFI_CONSOLE_CONTROL_PROTOCOL *This,\r
86 IN CHAR16 *Password\r
87 )\r
88f20127 88;\r
89\r
88f20127 90struct _EFI_CONSOLE_CONTROL_PROTOCOL {\r
91 EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE GetMode;\r
92 EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE SetMode;\r
93 EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN LockStdIn;\r
94};\r
95\r
96extern EFI_GUID gEfiConsoleControlProtocolGuid;\r
97\r
98#endif\r