blob: 9673dbf7a952847e28f4b3c6017e1ee3015e3401 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#ifndef ZIRCON_KERNEL_LIB_EFI_INCLUDE_EFI_PROTOCOL_SIMPLE_TEXT_INPUT_H_
#define ZIRCON_KERNEL_LIB_EFI_INCLUDE_EFI_PROTOCOL_SIMPLE_TEXT_INPUT_H_
#include <efi/types.h>
#define EFI_SIMPLE_TEXT_INPUT_PROTOCOL_GUID \
{ \
0x387477c1, 0x69c7, 0x11d2, { 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
}
extern efi_guid SimpleTextInputProtocol;
typedef struct {
uint16_t ScanCode;
char16_t UnicodeChar;
} efi_input_key;
typedef struct efi_simple_text_input_protocol {
efi_status (*Reset)(struct efi_simple_text_input_protocol* self,
bool extendend_verification) EFIAPI;
efi_status (*ReadKeyStroke)(struct efi_simple_text_input_protocol* self,
efi_input_key* key) EFIAPI;
efi_event WaitForKey;
} efi_simple_text_input_protocol;
#endif // ZIRCON_KERNEL_LIB_EFI_INCLUDE_EFI_PROTOCOL_SIMPLE_TEXT_INPUT_H_