+++ /dev/null
-/*++\r
-\r
-Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-Module Name:\r
-\r
- AbsolutePointer.h\r
-\r
-Abstract:\r
-\r
- EFI_ABSOLUTE_POINTER_PROTOCOL from the UEFI 2.1 specification.\r
-\r
- This protocol specifies a simple method for accessing absolute pointer devices. \r
-\r
---*/\r
-\r
-#ifndef __ABSOLUTE_POINTER_H__\r
-#define __ABSOLUTE_POINTER_H__\r
-\r
-#define EFI_ABSOLUTE_POINTER_PROTOCOL_GUID \\r
- { \\r
- 0x8D59D32B, 0xC655, 0x4AE9, {0x9B, 0x15, 0xF2, 0x59, 0x04, 0x99, 0x2A, 0x43} \\r
- }\r
-\r
-EFI_FORWARD_DECLARATION (EFI_ABSOLUTE_POINTER_PROTOCOL);\r
-\r
-//\r
-// Data structures\r
-//\r
-\r
-typedef struct {\r
- UINT64 AbsoluteMinX;\r
- UINT64 AbsoluteMinY;\r
- UINT64 AbsoluteMinZ;\r
- UINT64 AbsoluteMaxX;\r
- UINT64 AbsoluteMaxY;\r
- UINT64 AbsoluteMaxZ;\r
- UINT32 Attributes;\r
-} EFI_ABSOLUTE_POINTER_MODE;\r
-\r
-typedef struct {\r
- UINT64 CurrentX;\r
- UINT64 CurrentY;\r
- UINT64 CurrentZ;\r
- UINT32 ActiveButtons;\r
-} EFI_ABSOLUTE_POINTER_STATE;\r
-\r
-#define EFI_ABSP_SupportsAltActive 0x00000001\r
-#define EFI_ABSP_SupportsPressureAsZ 0x00000002\r
-\r
-#define EFI_ABSP_TouchActive 0x00000001\r
-#define EFI_ABS_AltActive 0x00000002 \r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_ABSOLUTE_POINTER_RESET) (\r
- IN EFI_ABSOLUTE_POINTER_PROTOCOL *This,\r
- IN BOOLEAN ExtendedVerification\r
- )\r
-/*++\r
-\r
- Routine Description:\r
- Resets the pointer device hardware.\r
-\r
- Arguments:\r
- This - Protocol instance pointer.\r
- ExtendedVerification - Driver may perform diagnostics on reset.\r
-\r
- Returns:\r
- EFI_SUCCESS - The device was reset.\r
- EFI_DEVICE_ERROR - The device is not functioning correctly and could \r
- not be reset.\r
- \r
---*/\r
-;\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_ABSOLUTE_POINTER_GET_STATE) (\r
- IN EFI_ABSOLUTE_POINTER_PROTOCOL *This,\r
- IN OUT EFI_ABSOLUTE_POINTER_STATE *State\r
- )\r
-/*++\r
-\r
- Routine Description:\r
- Retrieves the current state of a pointer device.\r
-\r
- Arguments:\r
- This - Protocol instance pointer.\r
- State - A pointer to the state information on the pointer device.\r
-\r
- Returns:\r
- EFI_SUCCESS - The state of the pointer device was returned in State..\r
- EFI_NOT_READY - The state of the pointer device has not changed since the last call to\r
- GetState(). \r
- EFI_DEVICE_ERROR - A device error occurred while attempting to retrieve the pointer\r
- device's current state. \r
---*/\r
-;\r
-\r
-struct _EFI_ABSOLUTE_POINTER_PROTOCOL {\r
- EFI_ABSOLUTE_POINTER_RESET Reset;\r
- EFI_ABSOLUTE_POINTER_GET_STATE GetState;\r
- EFI_EVENT WaitForInput;\r
- EFI_ABSOLUTE_POINTER_MODE *Mode;\r
-};\r
-\r
-extern EFI_GUID gEfiAbsolutePointerProtocolGuid;\r
-\r
-#endif\r