TianoCore EDK2 master
Loading...
Searching...
No Matches
WinGop.h File Reference
#include "WinHost.h"
#include <Protocol/EmuIoThunk.h>
#include <Protocol/EmuGraphicsWindow.h>
#include <Protocol/SimplePointer.h>
#include <Protocol/SimpleTextIn.h>
#include <Protocol/SimpleTextInEx.h>
#include <Protocol/GraphicsOutput.h>
#include <Library/FrameBufferBltLib.h>

Go to the source code of this file.

Data Structures

struct  GOP_QUEUE_FIXED
 
struct  GRAPHICS_PRIVATE_DATA
 

Macros

#define GOP_EXTENDED_KEY   (0x1 << 24)
 
#define GOP_ALT_KEY_PRESSED   (0x1 << 29)
 
#define KEYBOARD_TIMER_INTERVAL   200000
 
#define MAX_Q   256
 
#define WIN_NT_GOP_CLASS_NAME   L"WinNtGopWindow"
 
#define GRAPHICS_PRIVATE_DATA_SIGNATURE   SIGNATURE_32 ('g', 'f', 'x', 'd')
 
#define GRAPHICS_PRIVATE_DATA_FROM_THIS(a)    CR(a, GRAPHICS_PRIVATE_DATA, GraphicsWindowIo, GRAPHICS_PRIVATE_DATA_SIGNATURE)
 

Functions

EFI_STATUS GopPrivateAddKey (IN GRAPHICS_PRIVATE_DATA *Private, IN EFI_INPUT_KEY Key)
 
EFI_STATUS EFIAPI WinNtWndGetKey (IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsIo, IN EFI_KEY_DATA *KeyData)
 
EFI_STATUS EFIAPI WinNtWndCheckKey (IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsIo)
 
EFI_STATUS EFIAPI WinNtWndKeySetState (IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsIo, IN EFI_KEY_TOGGLE_STATE *KeyToggleState)
 
EFI_STATUS EFIAPI WinNtWndRegisterKeyNotify (IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsIo, IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK MakeCallBack, IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK BreakCallBack, IN VOID *Context)
 
EFI_STATUS EFIAPI WinNtWndCheckPointer (IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsIo)
 
EFI_STATUS EFIAPI WinNtWndGetPointerState (IN EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsIo, IN EFI_SIMPLE_POINTER_STATE *State)
 
EFI_STATUS GopPrivateCreateQ (IN GRAPHICS_PRIVATE_DATA *Private, IN GOP_QUEUE_FIXED *Queue)
 
EFI_STATUS GopPrivateDestroyQ (IN GRAPHICS_PRIVATE_DATA *Private, IN GOP_QUEUE_FIXED *Queue)
 

Detailed Description

Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Module Name:

WinGop.h

Abstract:

Private data for the Gop driver that is bound to the WinNt Thunk protocol

Definition in file WinGop.h.

Macro Definition Documentation

◆ GOP_ALT_KEY_PRESSED

#define GOP_ALT_KEY_PRESSED   (0x1 << 29)

Definition at line 42 of file WinGop.h.

◆ GOP_EXTENDED_KEY

#define GOP_EXTENDED_KEY   (0x1 << 24)

Definition at line 41 of file WinGop.h.

◆ GRAPHICS_PRIVATE_DATA_FROM_THIS

#define GRAPHICS_PRIVATE_DATA_FROM_THIS (   a)     CR(a, GRAPHICS_PRIVATE_DATA, GraphicsWindowIo, GRAPHICS_PRIVATE_DATA_SIGNATURE)

Definition at line 117 of file WinGop.h.

◆ GRAPHICS_PRIVATE_DATA_SIGNATURE

#define GRAPHICS_PRIVATE_DATA_SIGNATURE   SIGNATURE_32 ('g', 'f', 'x', 'd')

Definition at line 116 of file WinGop.h.

◆ KEYBOARD_TIMER_INTERVAL

#define KEYBOARD_TIMER_INTERVAL   200000

Definition at line 44 of file WinGop.h.

◆ MAX_Q

#define MAX_Q   256

Definition at line 46 of file WinGop.h.

◆ WIN_NT_GOP_CLASS_NAME

#define WIN_NT_GOP_CLASS_NAME   L"WinNtGopWindow"

Definition at line 55 of file WinGop.h.

Function Documentation

◆ GopPrivateAddKey()

EFI_STATUS GopPrivateAddKey ( IN GRAPHICS_PRIVATE_DATA Private,
IN EFI_INPUT_KEY  Key 
)

TODO: Add function description

Parameters
PrivateTODO: add argument description
KeyTODO: add argument description
Returns
TODO: add return values

TODO: Add function description

Parameters
PrivateTODO: add argument description
KeyTODO: add argument description
Return values
EFI_NOT_READYTODO: Add description for return value
EFI_SUCCESSTODO: Add description for return value

Definition at line 247 of file WinGopInput.c.

◆ GopPrivateCreateQ()

EFI_STATUS GopPrivateCreateQ ( IN GRAPHICS_PRIVATE_DATA Private,
IN GOP_QUEUE_FIXED Queue 
)

TODO: Add function description

Parameters
PrivateTODO: add argument description
Return values
EFI_SUCCESSTODO: Add description for return value

Definition at line 36 of file WinGopInput.c.

◆ GopPrivateDestroyQ()

EFI_STATUS GopPrivateDestroyQ ( IN GRAPHICS_PRIVATE_DATA Private,
IN GOP_QUEUE_FIXED Queue 
)

TODO: Add function description

Parameters
PrivateTODO: add argument description
Return values
EFI_SUCCESSTODO: Add description for return value

Definition at line 56 of file WinGopInput.c.

◆ WinNtWndCheckKey()

EFI_STATUS EFIAPI WinNtWndCheckKey ( IN EMU_GRAPHICS_WINDOW_PROTOCOL GraphicsIo)

Definition at line 291 of file WinGopInput.c.

◆ WinNtWndCheckPointer()

EFI_STATUS EFIAPI WinNtWndCheckPointer ( IN EMU_GRAPHICS_WINDOW_PROTOCOL GraphicsIo)

Definition at line 420 of file WinGopInput.c.

◆ WinNtWndGetKey()

EFI_STATUS EFIAPI WinNtWndGetKey ( IN EMU_GRAPHICS_WINDOW_PROTOCOL GraphicsIo,
IN EFI_KEY_DATA KeyData 
)

Definition at line 304 of file WinGopInput.c.

◆ WinNtWndGetPointerState()

EFI_STATUS EFIAPI WinNtWndGetPointerState ( IN EMU_GRAPHICS_WINDOW_PROTOCOL GraphicsIo,
IN EFI_SIMPLE_POINTER_STATE State 
)

Definition at line 437 of file WinGopInput.c.

◆ WinNtWndKeySetState()

EFI_STATUS EFIAPI WinNtWndKeySetState ( IN EMU_GRAPHICS_WINDOW_PROTOCOL GraphicsIo,
IN EFI_KEY_TOGGLE_STATE KeyToggleState 
)

Definition at line 361 of file WinGopInput.c.

◆ WinNtWndRegisterKeyNotify()

EFI_STATUS EFIAPI WinNtWndRegisterKeyNotify ( IN EMU_GRAPHICS_WINDOW_PROTOCOL GraphicsIo,
IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK  MakeCallBack,
IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK  BreakCallBack,
IN VOID *  Context 
)

Definition at line 396 of file WinGopInput.c.