3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 EFI_ABSOLUTE_POINTER_PROTOCOL from the UEFI 2.1 specification.
20 This protocol specifies a simple method for accessing absolute pointer devices.
24 #ifndef __ABSOLUTE_POINTER_H__
25 #define __ABSOLUTE_POINTER_H__
27 #define EFI_ABSOLUTE_POINTER_PROTOCOL_GUID \
29 0x8D59D32B, 0xC655, 0x4AE9, 0x9B, 0x15, 0xF2, 0x59, 0x04, 0x99, 0x2A, 0x43 \
32 EFI_FORWARD_DECLARATION (EFI_ABSOLUTE_POINTER_PROTOCOL
);
46 } EFI_ABSOLUTE_POINTER_MODE
;
53 } EFI_ABSOLUTE_POINTER_STATE
;
55 #define EFI_ABSP_SupportsAltActive 0x00000001
56 #define EFI_ABSP_SupportsPressureAsZ 0x00000002
58 #define EFI_ABSP_TouchActive 0x00000001
59 #define EFI_ABS_AltActive 0x00000002
63 (EFIAPI
*EFI_ABSOLUTE_POINTER_RESET
) (
64 IN EFI_ABSOLUTE_POINTER_PROTOCOL
*This
,
65 IN BOOLEAN ExtendedVerification
70 Resets the pointer device hardware.
73 This - Protocol instance pointer.
74 ExtendedVerification - Driver may perform diagnostics on reset.
77 EFI_SUCCESS - The device was reset.
78 EFI_DEVICE_ERROR - The device is not functioning correctly and could
86 (EFIAPI
*EFI_ABSOLUTE_POINTER_GET_STATE
) (
87 IN EFI_ABSOLUTE_POINTER_PROTOCOL
*This
,
88 IN OUT EFI_ABSOLUTE_POINTER_STATE
*State
93 Retrieves the current state of a pointer device.
96 This - Protocol instance pointer.
97 State - A pointer to the state information on the pointer device.
100 EFI_SUCCESS - The state of the pointer device was returned in State..
101 EFI_NOT_READY - The state of the pointer device has not changed since the last call to
103 EFI_DEVICE_ERROR - A device error occurred while attempting to retrieve the pointer
104 device's current state.
108 struct _EFI_ABSOLUTE_POINTER_PROTOCOL
{
109 EFI_ABSOLUTE_POINTER_RESET Reset
;
110 EFI_ABSOLUTE_POINTER_GET_STATE GetState
;
111 EFI_EVENT WaitForInput
;
112 EFI_ABSOLUTE_POINTER_MODE
*Mode
;
115 extern EFI_GUID gEfiAbsolutePointerProtocolGuid
;