2N/A/* console_control.h - definitions of the console control protocol */
2N/A/*
2N/A * GRUB -- GRand Unified Bootloader
2N/A * Copyright (C) 2006,2007 Free Software Foundation, Inc.
2N/A *
2N/A * GRUB is free software: you can redistribute it and/or modify
2N/A * it under the terms of the GNU General Public License as published by
2N/A * the Free Software Foundation, either version 3 of the License, or
2N/A * (at your option) any later version.
2N/A *
2N/A * GRUB is distributed in the hope that it will be useful,
2N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
2N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2N/A * GNU General Public License for more details.
2N/A *
2N/A * You should have received a copy of the GNU General Public License
2N/A * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
2N/A */
2N/A
2N/A/* The console control protocol is not a part of the EFI spec,
2N/A but defined in Intel's Sample Implementation. */
2N/A
2N/A#ifndef GRUB_EFI_CONSOLE_CONTROL_HEADER
2N/A#define GRUB_EFI_CONSOLE_CONTROL_HEADER 1
2N/A
2N/A#define GRUB_EFI_CONSOLE_CONTROL_GUID \
2N/A { 0xf42f7782, 0x12e, 0x4c12, \
2N/A { 0x99, 0x56, 0x49, 0xf9, 0x43, 0x4, 0xf7, 0x21 } \
2N/A }
2N/A
2N/Aenum grub_efi_screen_mode
2N/A {
2N/A GRUB_EFI_SCREEN_TEXT,
2N/A GRUB_EFI_SCREEN_GRAPHICS,
2N/A GRUB_EFI_SCREEN_TEXT_MAX_VALUE
2N/A };
2N/Atypedef enum grub_efi_screen_mode grub_efi_screen_mode_t;
2N/A
2N/Astruct grub_efi_console_control_protocol
2N/A{
2N/A grub_efi_status_t
2N/A (*get_mode) (struct grub_efi_console_control_protocol *this,
2N/A grub_efi_screen_mode_t *mode,
2N/A grub_efi_boolean_t *uga_exists,
2N/A grub_efi_boolean_t *std_in_locked);
2N/A
2N/A grub_efi_status_t
2N/A (*set_mode) (struct grub_efi_console_control_protocol *this,
2N/A grub_efi_screen_mode_t mode);
2N/A
2N/A grub_efi_status_t
2N/A (*lock_std_in) (struct grub_efi_console_control_protocol *this,
2N/A grub_efi_char16_t *password);
2N/A};
2N/Atypedef struct grub_efi_console_control_protocol grub_efi_console_control_protocol_t;
2N/A
2N/A#endif /* ! GRUB_EFI_CONSOLE_CONTROL_HEADER */