From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- Include/Protocol/Emul6064KbdInput.h | 93 +++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 Include/Protocol/Emul6064KbdInput.h (limited to 'Include/Protocol/Emul6064KbdInput.h') diff --git a/Include/Protocol/Emul6064KbdInput.h b/Include/Protocol/Emul6064KbdInput.h new file mode 100644 index 0000000..4e7facf --- /dev/null +++ b/Include/Protocol/Emul6064KbdInput.h @@ -0,0 +1,93 @@ +//**************************************************************************** +//**************************************************************************** +//** ** +//** (C)Copyright 1985-2010, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200 Norcross, GA 30093 ** +//** ** +//** Phone (770)-246-8600 ** +//** ** +//**************************************************************************** +//**************************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Modules/USB/ALASKA/Protocol/Emul6064KbdInput.h 4 6/28/10 5:24p Olegi $ +// +// $Revision: 4 $ +// +// $Date: 6/28/10 5:24p $ +// +//********************************************************************** + +// +//---------------------------------------------------------------------------- +// +// Name: Emul6064KbdInput.h +// +// Description: Protocol used for USB 6064 keyboard emulation +// +//---------------------------------------------------------------------------- +// + + +#ifndef _EMUL6064KBDINPUT_PROTOCOL_H_ +#define _EMUL6064KBDINPUT_PROTOCOL_H_ + +EFI_FORWARD_DECLARATION (EFI_EMUL6064KBDINPUT_PROTOCOL); + +#define EFI_EMUL6064KBDINPUT_PROTOCOL_GUID \ + { 0x62ceef5a, 0x1d7c, 0x4943, 0x9b, 0x3a, 0x95, 0xe2, 0x49, 0x4c, 0x89, 0x90 } + +typedef enum { + KBC_KBDTRANS_AT = 0, //NOT TRANSLATED (XLAT cleared in CCB) + KBC_KBDTRANS_PCXT = 1, //TRANSLATED (XLAT set in CCB) +} KBC_KBDTRANSLATION; + +typedef +EFI_STATUS +(EFIAPI *EFI_EMUL6064KBDINPUT_PROTOCOL_SEND) ( + IN EFI_EMUL6064KBDINPUT_PROTOCOL * This, + IN UINT8* data, + IN UINT32 count + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_EMUL6064KBDINPUT_PROTOCOL_GETTRANS) ( + IN EFI_EMUL6064KBDINPUT_PROTOCOL * This, + OUT KBC_KBDTRANSLATION* outTrans + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_EMUL6064KBDINPUT_PROTOCOL_UPDATELEDSTATE) ( + IN EFI_EMUL6064KBDINPUT_PROTOCOL * This, + IN UINT8 data + ); + + +typedef struct _EFI_EMUL6064KBDINPUT_PROTOCOL { + EFI_EMUL6064KBDINPUT_PROTOCOL_SEND Send ; + EFI_EMUL6064KBDINPUT_PROTOCOL_GETTRANS GetTranslation; + EFI_EMUL6064KBDINPUT_PROTOCOL_UPDATELEDSTATE UpdateLEDState; +} EFI_EMUL6064KBDINPUT_PROTOCOL; + +extern EFI_GUID gEmul6064KbdInputProtocolGuid; + +#endif + +//**************************************************************************** +//**************************************************************************** +//** ** +//** (C)Copyright 1985-2010, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200 Norcross, GA 30093 ** +//** ** +//** Phone (770)-246-8600 ** +//** ** +//**************************************************************************** +//**************************************************************************** -- cgit v1.2.3