Indentation fix, cleanup.
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / efi / console_control.h
blob7c358fcdbc3c95dfa5e41063031f8bcc99fface7
1 /* console_control.h - definitions of the console control protocol */
2 /*
3 * GRUB -- GRand Unified Bootloader
4 * Copyright (C) 2006,2007 Free Software Foundation, Inc.
6 * GRUB is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GRUB is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
20 /* The console control protocol is not a part of the EFI spec,
21 but defined in Intel's Sample Implementation. */
23 #ifndef GRUB_EFI_CONSOLE_CONTROL_HEADER
24 #define GRUB_EFI_CONSOLE_CONTROL_HEADER 1
26 #define GRUB_EFI_CONSOLE_CONTROL_GUID \
27 { 0xf42f7782, 0x12e, 0x4c12, \
28 { 0x99, 0x56, 0x49, 0xf9, 0x43, 0x4, 0xf7, 0x21 } \
31 enum grub_efi_screen_mode
33 GRUB_EFI_SCREEN_TEXT,
34 GRUB_EFI_SCREEN_GRAPHICS,
35 GRUB_EFI_SCREEN_TEXT_MAX_VALUE
37 typedef enum grub_efi_screen_mode grub_efi_screen_mode_t;
39 struct grub_efi_console_control_protocol
41 grub_efi_status_t
42 (*get_mode) (struct grub_efi_console_control_protocol *this,
43 grub_efi_screen_mode_t *mode,
44 grub_efi_boolean_t *uga_exists,
45 grub_efi_boolean_t *std_in_locked);
47 grub_efi_status_t
48 (*set_mode) (struct grub_efi_console_control_protocol *this,
49 grub_efi_screen_mode_t mode);
51 grub_efi_status_t
52 (*lock_std_in) (struct grub_efi_console_control_protocol *this,
53 grub_efi_char16_t *password);
55 typedef struct grub_efi_console_control_protocol grub_efi_console_control_protocol_t;
57 #endif /* ! GRUB_EFI_CONSOLE_CONTROL_HEADER */