beautypg.com

2 simple input protocol, Simple_input, Simple input protocol – Intel Extensible Firmware Interface User Manual

Page 298: T the, Simple_input_protocol

background image

Extensible Firmware Interface Specification

10-4

12/01/02

Version 1.10

10.2 Simple Input Protocol

The Simple Input protocol defines the minimum input required to support the

ConsoleIn

device.

SIMPLE_INPUT

Summary

This protocol is used to obtain input from the

ConsoleIn

device. The EFI specification requires

that the

SIMPLE_INPUT

protocol support the same languages as the corresponding

SIMPLE_TEXT_OUTPUT

protocol.

GUID

#define SIMPLE_INPUT_PROTOCOL \

{ 387477c1-69c7-11d2-8e39-00a0c969723b }

Protocol Interface Structure

typedef struct _SIMPLE_INPUT_INTERFACE {

EFI_INPUT_RESET

Reset;

EFI_INPUT_READ_KEY

ReadKeyStroke;

EFI_EVENT

WaitForKey;

} SIMPLE_INPUT_INTERFACE;

Parameters

Reset

Reset

the

ConsoleIn

device. See

Reset()

.

ReadKeyStroke

Returns the next input character. See

ReadKeyStroke()

.

WaitForKey

Event to use with

WaitForEvent()

to wait for a key to be available.

Description

The

SIMPLE_INPUT

protocol is used on the

ConsoleIn

device. It is the minimum required

protocol for

ConsoleIn

.