OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AIM.c File Reference
#include <Uefi.h>
#include "AIM.h"
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/OcInputLib.h>
#include <Library/UefiBootServicesTableLib.h>

Go to the source code of this file.

Functions

UINT8 EFIAPI Abs (IN INT32 Value)
 
INT32 EFIAPI InternalClamp (IN INT32 Value, IN INT32 Min, IN INT32 Max)
 
VOID EFIAPI AmiShimPointerFilterOut (IN OUT UINT8 *AbsX, IN OUT UINT8 *AbsY, IN OUT INT32 *X, IN OUT INT32 *Y)
 
VOID EFIAPI AmiShimPointerBoostValue (IN OUT INT32 *Value, IN INT32 AbsValue)
 
VOID EFIAPI AmiShimPointerSmooth (IN OUT INT32 *X, IN OUT INT32 *Y, IN OUT INT32 *Z)
 
VOID EFIAPI AmiShimPointerPositionHandler (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI AmiShimPointerUpdateState (IN AMI_SHIM_POINTER_INSTANCE *Pointer, OUT EFI_SIMPLE_POINTER_STATE *State)
 
EFI_STATUS EFIAPI AmiShimPointerGetState (IN EFI_SIMPLE_POINTER_PROTOCOL *This, IN OUT EFI_SIMPLE_POINTER_STATE *State)
 
EFI_STATUS EFIAPI AmiShimPointerTimerSetup (VOID)
 
EFI_STATUS EFIAPI AmiShimPointerTimerUninstall (VOID)
 
EFI_STATUS EFIAPI AmiShimPointerInstallOnHandle (IN EFI_HANDLE DeviceHandle, IN AMI_EFIPOINTER_PROTOCOL *EfiPointer, IN EFI_SIMPLE_POINTER_PROTOCOL *SimplePointer)
 
EFI_STATUS EFIAPI AmiShimPointerInstall (VOID)
 
EFI_STATUS EFIAPI AmiShimPointerUninstall (VOID)
 
VOID EFIAPI AmiShimPointerArriveHandler (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS OcAppleGenericInputPointerInit (IN OC_INPUT_POINTER_MODE Mode)
 
EFI_STATUS OcAppleGenericInputPointerExit (VOID)
 

Variables

STATIC AMI_SHIM_POINTER mAmiShimPointer
 
STATIC UINT8 gIndex = 0
 
STATIC UINT8 gXCounts [5] = { 0, 0, 0, 0, 0 }
 
STATIC UINT8 gYCounts [5] = { 0, 0, 0, 0, 0 }
 
STATIC UINT8 gAbsRange [4] = { 80, 64, 48, 1 }
 
STATIC INT32 gMultipliers [4] = { 4, 3, 2, 1 }
 

Detailed Description

AmiEfiPointer to EfiPointer translator.

Copyright (c) 2016, vit9696. All rights reserved.
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.

Definition in file AIM.c.

Function Documentation

◆ Abs()

UINT8 EFIAPI Abs ( IN INT32 Value)

Definition at line 32 of file AIM.c.

◆ AmiShimPointerArriveHandler()

VOID EFIAPI AmiShimPointerArriveHandler ( IN EFI_EVENT Event,
IN VOID * Context )

Definition at line 555 of file AIM.c.

◆ AmiShimPointerBoostValue()

VOID EFIAPI AmiShimPointerBoostValue ( IN OUT INT32 * Value,
IN INT32 AbsValue )

Definition at line 172 of file AIM.c.

◆ AmiShimPointerFilterOut()

VOID EFIAPI AmiShimPointerFilterOut ( IN OUT UINT8 * AbsX,
IN OUT UINT8 * AbsY,
IN OUT INT32 * X,
IN OUT INT32 * Y )

Definition at line 58 of file AIM.c.

◆ AmiShimPointerGetState()

EFI_STATUS EFIAPI AmiShimPointerGetState ( IN EFI_SIMPLE_POINTER_PROTOCOL * This,
IN OUT EFI_SIMPLE_POINTER_STATE * State )

Definition at line 322 of file AIM.c.

◆ AmiShimPointerInstall()

EFI_STATUS EFIAPI AmiShimPointerInstall ( VOID )

Definition at line 474 of file AIM.c.

◆ AmiShimPointerInstallOnHandle()

EFI_STATUS EFIAPI AmiShimPointerInstallOnHandle ( IN EFI_HANDLE DeviceHandle,
IN AMI_EFIPOINTER_PROTOCOL * EfiPointer,
IN EFI_SIMPLE_POINTER_PROTOCOL * SimplePointer )

Definition at line 432 of file AIM.c.

◆ AmiShimPointerPositionHandler()

VOID EFIAPI AmiShimPointerPositionHandler ( IN EFI_EVENT Event,
IN VOID * Context )

Definition at line 218 of file AIM.c.

◆ AmiShimPointerSmooth()

VOID EFIAPI AmiShimPointerSmooth ( IN OUT INT32 * X,
IN OUT INT32 * Y,
IN OUT INT32 * Z )

Definition at line 189 of file AIM.c.

◆ AmiShimPointerTimerSetup()

EFI_STATUS EFIAPI AmiShimPointerTimerSetup ( VOID )

Definition at line 373 of file AIM.c.

◆ AmiShimPointerTimerUninstall()

EFI_STATUS EFIAPI AmiShimPointerTimerUninstall ( VOID )

Definition at line 405 of file AIM.c.

◆ AmiShimPointerUninstall()

EFI_STATUS EFIAPI AmiShimPointerUninstall ( VOID )

Definition at line 532 of file AIM.c.

◆ AmiShimPointerUpdateState()

EFI_STATUS EFIAPI AmiShimPointerUpdateState ( IN AMI_SHIM_POINTER_INSTANCE * Pointer,
OUT EFI_SIMPLE_POINTER_STATE * State )

Definition at line 267 of file AIM.c.

◆ InternalClamp()

INT32 EFIAPI InternalClamp ( IN INT32 Value,
IN INT32 Min,
IN INT32 Max )

Definition at line 41 of file AIM.c.

◆ OcAppleGenericInputPointerExit()

EFI_STATUS OcAppleGenericInputPointerExit ( VOID )

Definition at line 596 of file AIM.c.

◆ OcAppleGenericInputPointerInit()

EFI_STATUS OcAppleGenericInputPointerInit ( IN OC_INPUT_POINTER_MODE Mode)

Definition at line 564 of file AIM.c.

Variable Documentation

◆ gAbsRange

STATIC UINT8 gAbsRange[4] = { 80, 64, 48, 1 }

Definition at line 167 of file AIM.c.

◆ gIndex

STATIC UINT8 gIndex = 0

Definition at line 26 of file AIM.c.

◆ gMultipliers

STATIC INT32 gMultipliers[4] = { 4, 3, 2, 1 }

Definition at line 168 of file AIM.c.

◆ gXCounts

STATIC UINT8 gXCounts[5] = { 0, 0, 0, 0, 0 }

Definition at line 27 of file AIM.c.

◆ gYCounts

STATIC UINT8 gYCounts[5] = { 0, 0, 0, 0, 0 }

Definition at line 28 of file AIM.c.

◆ mAmiShimPointer

STATIC AMI_SHIM_POINTER mAmiShimPointer

Definition at line 24 of file AIM.c.