3 Copyright (c) 2006 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Abstraction of a Text mode or GOP/UGA screen
22 #ifndef __CONSOLE_CONTROL_H__
23 #define __CONSOLE_CONTROL_H__
25 #define EFI_CONSOLE_CONTROL_PROTOCOL_GUID \
26 { 0xf42f7782, 0x12e, 0x4c12, {0x99, 0x56, 0x49, 0xf9, 0x43, 0x4, 0xf7, 0x21 } }
28 typedef struct _EFI_CONSOLE_CONTROL_PROTOCOL EFI_CONSOLE_CONTROL_PROTOCOL
;
32 EfiConsoleControlScreenText
,
33 EfiConsoleControlScreenGraphics
,
34 EfiConsoleControlScreenMaxValue
35 } EFI_CONSOLE_CONTROL_SCREEN_MODE
;
40 (EFIAPI
*EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE
) (
41 IN EFI_CONSOLE_CONTROL_PROTOCOL
*This
,
42 OUT EFI_CONSOLE_CONTROL_SCREEN_MODE
*Mode
,
43 OUT BOOLEAN
*GopUgaExists
, OPTIONAL
44 OUT BOOLEAN
*StdInLocked OPTIONAL
49 Return the current video mode information. Also returns info about existence
50 of Graphics Output devices or UGA Draw devices in system, and if the Std In
51 device is locked. All the arguments are optional and only returned if a non
52 NULL pointer is passed in.
55 This - Protocol instance pointer.
56 Mode - Are we in text of grahics mode.
57 GopUgaExists - TRUE if Console Spliter has found a GOP or UGA device
58 StdInLocked - TRUE if StdIn device is keyboard locked
61 EFI_SUCCESS - Mode information returned.
69 (EFIAPI
*EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE
) (
70 IN EFI_CONSOLE_CONTROL_PROTOCOL
*This
,
71 OUT EFI_CONSOLE_CONTROL_SCREEN_MODE Mode
76 Set the current mode to either text or graphics. Graphics is
80 This - Protocol instance pointer.
81 Mode - Mode to set the
84 EFI_SUCCESS - Mode information returned.
92 (EFIAPI
*EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN
) (
93 IN EFI_CONSOLE_CONTROL_PROTOCOL
*This
,
99 Lock Std In devices until Password is typed.
102 This - Protocol instance pointer.
103 Password - Password needed to unlock screen. NULL means unlock keyboard
106 EFI_SUCCESS - Mode information returned.
107 EFI_DEVICE_ERROR - Std In not locked
114 struct _EFI_CONSOLE_CONTROL_PROTOCOL
{
115 EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE GetMode
;
116 EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE SetMode
;
117 EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN LockStdIn
;
120 extern EFI_GUID gEfiConsoleControlProtocolGuid
;