1 /* Copyright (C) 2014 by John Cronin
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to deal
5 * in the Software without restriction, including without limitation the rights
6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 * copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 #define EFI_SIMPLE_POINTER_PROTOCOL_GUID \
26 { 0x31878c87, 0xb75, 0x11d5, { 0x9a, 0x4f, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } }
28 INTERFACE_DECL(_EFI_SIMPLE_POINTER);
31 INT32 RelativeMovementX;
32 INT32 RelativeMovementY;
33 INT32 RelativeMovementZ;
36 } EFI_SIMPLE_POINTER_STATE;
44 } EFI_SIMPLE_POINTER_MODE;
48 (EFIAPI *EFI_SIMPLE_POINTER_RESET) (
49 IN struct _EFI_SIMPLE_POINTER *This,
50 IN BOOLEAN ExtendedVerification
55 (EFIAPI *EFI_SIMPLE_POINTER_GET_STATE) (
56 IN struct _EFI_SIMPLE_POINTER *This,
57 IN OUT EFI_SIMPLE_POINTER_STATE *State
60 typedef struct _EFI_SIMPLE_POINTER {
61 EFI_SIMPLE_POINTER_RESET Reset;
62 EFI_SIMPLE_POINTER_GET_STATE GetState;
63 EFI_EVENT WaitForInput;
64 EFI_SIMPLE_POINTER_MODE *Mode;
65 } EFI_SIMPLE_POINTER_PROTOCOL;
67 #define EFI_ABSOLUTE_POINTER_PROTOCOL_GUID \
68 { 0x8D59D32B, 0xC655, 0x4AE9, { 0x9B, 0x15, 0xF2, 0x59, 0x04, 0x99, 0x2A, 0x43 } }
70 INTERFACE_DECL(_EFI_ABSOLUTE_POINTER_PROTOCOL);
80 } EFI_ABSOLUTE_POINTER_MODE;
87 } EFI_ABSOLUTE_POINTER_STATE;
89 #define EFI_ABSP_SupportsAltActive 0x00000001
90 #define EFI_ABSP_SupportsPressureAsZ 0x00000002
91 #define EFI_ABSP_TouchActive 0x00000001
92 #define EFI_ABS_AltActive 0x00000002
96 (EFIAPI *EFI_ABSOLUTE_POINTER_RESET) (
97 IN struct _EFI_ABSOLUTE_POINTER_PROTOCOL *This,
98 IN BOOLEAN ExtendedVerification
103 (EFIAPI *EFI_ABSOLUTE_POINTER_GET_STATE) (
104 IN struct _EFI_ABSOLUTE_POINTER_PROTOCOL *This,
105 IN OUT EFI_ABSOLUTE_POINTER_STATE *State
108 typedef 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;
113 } EFI_ABSOLUTE_POINTER_PROTOCOL;