TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | PS2MouseDriverSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath) |
EFI_STATUS EFIAPI | PS2MouseDriverStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath) |
EFI_STATUS EFIAPI | PS2MouseDriverStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer) |
EFI_STATUS EFIAPI | MouseReset (IN EFI_SIMPLE_POINTER_PROTOCOL *This, IN BOOLEAN ExtendedVerification) |
BOOLEAN | CheckMouseConnect (IN PS2_MOUSE_DEV *MouseDev) |
EFI_STATUS EFIAPI | MouseGetState (IN EFI_SIMPLE_POINTER_PROTOCOL *This, IN OUT EFI_SIMPLE_POINTER_STATE *State) |
VOID EFIAPI | MouseWaitForInput (IN EFI_EVENT Event, IN VOID *Context) |
VOID EFIAPI | PollMouse (IN EFI_EVENT Event, IN VOID *Context) |
EFI_STATUS EFIAPI | InitializePs2Mouse (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
EFI_DRIVER_BINDING_PROTOCOL | gPS2MouseDriver |
PS/2 Mouse driver. Routines that interacts with callers, conforming to EFI driver model.
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Ps2Mouse.c.
BOOLEAN CheckMouseConnect | ( | IN PS2_MOUSE_DEV * | MouseDev | ) |
Check whether there is Ps/2 mouse device in system
MouseDev | - Mouse Private Data Structure |
TRUE | - Keyboard in System. |
FALSE | - Keyboard not in System. |
Definition at line 654 of file Ps2Mouse.c.
EFI_STATUS EFIAPI InitializePs2Mouse | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
The user Entry Point for module Ps2Mouse. The user code starts with this function.
[in] | ImageHandle | The firmware allocated handle for the EFI image. |
[in] | SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The entry point is executed successfully. |
other | Some error occurs when executing this entry point. |
Definition at line 781 of file Ps2Mouse.c.
EFI_STATUS EFIAPI MouseGetState | ( | IN EFI_SIMPLE_POINTER_PROTOCOL * | This, |
IN OUT EFI_SIMPLE_POINTER_STATE * | State | ||
) |
Get and Clear mouse status.
This | - Pointer of simple pointer Protocol. |
State | - Output buffer holding status. |
EFI_INVALID_PARAMETER | Output buffer is invalid. |
EFI_NOT_READY | Mouse is not changed status yet. |
EFI_SUCCESS | Mouse status is changed and get successful. |
Definition at line 681 of file Ps2Mouse.c.
EFI_STATUS EFIAPI MouseReset | ( | IN EFI_SIMPLE_POINTER_PROTOCOL * | This, |
IN BOOLEAN | ExtendedVerification | ||
) |
Reset the Mouse and do BAT test for it, if ExtendedVerification is TRUE and there is a mouse device connected to system.
This | - Pointer of simple pointer Protocol. |
ExtendedVerification | - Whether configure mouse parameters. True: do; FALSE: skip. |
EFI_SUCCESS | - The command byte is written successfully. |
EFI_DEVICE_ERROR | - Errors occurred during resetting keyboard. |
Definition at line 542 of file Ps2Mouse.c.
Event notification function for SIMPLE_POINTER.WaitForInput event. Signal the event if there is input from mouse.
Event | event object |
Context | event context |
Definition at line 725 of file Ps2Mouse.c.
Event notification function for TimerEvent event. If mouse device is connected to system, try to get the mouse packet data.
Event | - TimerEvent in PS2_MOUSE_DEV |
Context | - Pointer to PS2_MOUSE_DEV structure |
Definition at line 753 of file Ps2Mouse.c.
EFI_STATUS EFIAPI PS2MouseDriverStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | Controller, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | RemainingDevicePath | ||
) |
Start this driver on ControllerHandle by opening a Sio protocol, creating PS2_MOUSE_DEV device and install gEfiSimplePointerProtocolGuid finally.
This | Protocol instance pointer. |
ControllerHandle | Handle of device to bind driver to |
RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | This driver is added to ControllerHandle |
EFI_ALREADY_STARTED | This driver is already running on ControllerHandle |
other | This driver does not support this device |
Definition at line 146 of file Ps2Mouse.c.
EFI_STATUS EFIAPI PS2MouseDriverStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | Controller, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE * | ChildHandleBuffer | ||
) |
Stop this driver on ControllerHandle. Support stopping any child handles created by this driver.
This | Protocol instance pointer. |
ControllerHandle | Handle of device to stop driver on |
NumberOfChildren | Number of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver. |
ChildHandleBuffer | List of Child Handles to Stop. |
EFI_SUCCESS | This driver is removed ControllerHandle |
other | This driver was not removed from this device |
Definition at line 448 of file Ps2Mouse.c.
EFI_STATUS EFIAPI PS2MouseDriverSupported | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | Controller, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | RemainingDevicePath | ||
) |
Test to see if this driver supports ControllerHandle. Any ControllerHandle than contains a IsaIo protocol can be supported.
This | Protocol instance pointer. |
ControllerHandle | Handle of device to test |
RemainingDevicePath | Optional parameter use to pick a specific child device to start. |
EFI_SUCCESS | This driver supports this device |
EFI_ALREADY_STARTED | This driver is already running on this device |
other | This driver does not support this device |
Definition at line 41 of file Ps2Mouse.c.
EFI_DRIVER_BINDING_PROTOCOL gPS2MouseDriver |
DriverBinding Protocol Instance
Definition at line 16 of file Ps2Mouse.c.