mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-12 09:54:36 +01:00
f35acfa5ab
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
69 lines
2.0 KiB
C
69 lines
2.0 KiB
C
/** @file
|
|
Header file for AMI EfiPointer protocol definitions.
|
|
|
|
Copyright (c) 2016, vit9696. All rights reserved.<BR>
|
|
This program and the accompanying materials
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
**/
|
|
#ifndef AMI_POINTER_H
|
|
#define AMI_POINTER_H
|
|
|
|
// 15A10CE7-EAB5-43BF-9042-74432E696377
|
|
#define AMI_EFIPOINTER_PROTOCOL_GUID \
|
|
{ 0x15A10CE7, 0xEAB5, 0x43BF, { 0x90, 0x42, 0x74, 0x43, 0x2E, 0x69, 0x63, 0x77 } }
|
|
|
|
extern EFI_GUID gAmiEfiPointerProtocolGuid;
|
|
|
|
typedef struct _AMI_EFIPOINTER_PROTOCOL AMI_EFIPOINTER_PROTOCOL;
|
|
|
|
// Unless Changed == 1, no data is provided
|
|
typedef struct {
|
|
UINT8 Absolute;
|
|
UINT8 One;
|
|
UINT8 Changed;
|
|
UINT8 Reserved;
|
|
INT32 PositionX;
|
|
INT32 PositionY;
|
|
INT32 PositionZ;
|
|
} AMI_POINTER_POSITION_STATE_DATA;
|
|
|
|
VERIFY_SIZE_OF(AMI_POINTER_POSITION_STATE_DATA, 16);
|
|
|
|
// Unless Changed == 1, no data is provided
|
|
typedef struct {
|
|
UINT8 Changed;
|
|
UINT8 LeftButton;
|
|
UINT8 MiddleButton;
|
|
UINT8 RightButton;
|
|
} AMI_POINTER_BUTTON_STATE_DATA;
|
|
|
|
VERIFY_SIZE_OF(AMI_POINTER_BUTTON_STATE_DATA, 4);
|
|
|
|
typedef VOID (EFIAPI *AMI_EFIPOINTER_RESET) (
|
|
IN AMI_EFIPOINTER_PROTOCOL *This
|
|
);
|
|
|
|
typedef VOID (EFIAPI *AMI_EFIPOINTER_GET_BUTTON_STATE) (
|
|
IN AMI_EFIPOINTER_PROTOCOL *This,
|
|
OUT AMI_POINTER_BUTTON_STATE_DATA *State
|
|
);
|
|
|
|
typedef VOID (EFIAPI *AMI_EFIPOINTER_GET_POSITION_STATE) (
|
|
IN AMI_EFIPOINTER_PROTOCOL *This,
|
|
OUT AMI_POINTER_POSITION_STATE_DATA *State
|
|
);
|
|
|
|
struct _AMI_EFIPOINTER_PROTOCOL {
|
|
AMI_EFIPOINTER_RESET Reset;
|
|
AMI_EFIPOINTER_GET_POSITION_STATE GetPositionState;
|
|
AMI_EFIPOINTER_GET_BUTTON_STATE GetButtonState;
|
|
};
|
|
|
|
#endif
|