clean ECC issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8580 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/**@file
|
/** @file
|
||||||
PS2 Mouse Communication Interface
|
PS2 Mouse Communication Interface.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2007, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
@ -341,7 +341,7 @@ PS2MouseEnable (
|
|||||||
/**
|
/**
|
||||||
Get mouse packet . Only care first 3 bytes
|
Get mouse packet . Only care first 3 bytes
|
||||||
|
|
||||||
@param MouseDev Pointer of PS2 Mouse Private Data Structure
|
@param MouseAbsolutePointerDev Pointer to PS2 Absolute Pointer Simulation Device Private Data Structure
|
||||||
|
|
||||||
@retval EFI_NOT_READY Mouse Device not ready to input data packet, or some error happened during getting the packet
|
@retval EFI_NOT_READY Mouse Device not ready to input data packet, or some error happened during getting the packet
|
||||||
@retval EFI_SUCCESS The data packet is gotten successfully.
|
@retval EFI_SUCCESS The data packet is gotten successfully.
|
||||||
@ -589,7 +589,7 @@ Out8042Data (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT8 temp;
|
UINT8 Temp;
|
||||||
//
|
//
|
||||||
// Wait keyboard controller input buffer empty
|
// Wait keyboard controller input buffer empty
|
||||||
//
|
//
|
||||||
@ -598,8 +598,8 @@ Out8042Data (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
temp = Data;
|
Temp = Data;
|
||||||
IsaIo->Io.Write (IsaIo, EfiIsaIoWidthUint8, KBC_DATA_PORT, 1, &temp);
|
IsaIo->Io.Write (IsaIo, EfiIsaIoWidthUint8, KBC_DATA_PORT, 1, &Temp);
|
||||||
|
|
||||||
Status = WaitInputEmpty (IsaIo, TIMEOUT);
|
Status = WaitInputEmpty (IsaIo, TIMEOUT);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
@ -625,23 +625,23 @@ In8042Data (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN Delay;
|
UINTN Delay;
|
||||||
UINT8 temp;
|
UINT8 Temp;
|
||||||
|
|
||||||
Delay = TIMEOUT / 50;
|
Delay = TIMEOUT / 50;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
IsaIo->Io.Read (IsaIo, EfiIsaIoWidthUint8, KBC_CMD_STS_PORT, 1, &temp);
|
IsaIo->Io.Read (IsaIo, EfiIsaIoWidthUint8, KBC_CMD_STS_PORT, 1, &Temp);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check keyboard controller status bit 0(output buffer status)
|
// Check keyboard controller status bit 0(output buffer status)
|
||||||
//
|
//
|
||||||
if ((temp & KBC_OUTB) == KBC_OUTB) {
|
if ((Temp & KBC_OUTB) == KBC_OUTB) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
gBS->Stall (50);
|
gBS->Stall (50);
|
||||||
Delay--;
|
Delay--;
|
||||||
} while (Delay);
|
} while (Delay != 0);
|
||||||
|
|
||||||
if (Delay == 0) {
|
if (Delay == 0) {
|
||||||
return EFI_TIMEOUT;
|
return EFI_TIMEOUT;
|
||||||
@ -738,9 +738,9 @@ Out8042AuxCommand (
|
|||||||
I/O work flow of outing 8042 Aux data.
|
I/O work flow of outing 8042 Aux data.
|
||||||
|
|
||||||
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
||||||
@param Command Aux I/O command
|
@param Data Buffer holding return value
|
||||||
|
|
||||||
@retval EFI_SUCCESS Success to excute I/O work flow
|
@retval EFI_SUCCESS Success to excute I/O work flow.
|
||||||
@retval EFI_TIMEOUT Keyboard controller time out.
|
@retval EFI_TIMEOUT Keyboard controller time out.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -812,7 +812,7 @@ In8042AuxData (
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check keyboard controller status, if it is output buffer full and for auxiliary device
|
Check keyboard controller status, if it is output buffer full and for auxiliary device.
|
||||||
|
|
||||||
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
||||||
|
|
||||||
@ -870,7 +870,7 @@ WaitInputEmpty (
|
|||||||
|
|
||||||
gBS->Stall (50);
|
gBS->Stall (50);
|
||||||
Delay--;
|
Delay--;
|
||||||
} while (Delay);
|
} while (Delay != 0);
|
||||||
|
|
||||||
if (Delay == 0) {
|
if (Delay == 0) {
|
||||||
return EFI_TIMEOUT;
|
return EFI_TIMEOUT;
|
||||||
@ -893,23 +893,6 @@ WaitOutputFull (
|
|||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN UINTN Timeout
|
IN UINTN Timeout
|
||||||
)
|
)
|
||||||
/**
|
|
||||||
|
|
||||||
Routine Description:
|
|
||||||
|
|
||||||
GC_TODO: Add function description
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
|
|
||||||
IsaIo - GC_TODO: add argument description
|
|
||||||
Timeout - GC_TODO: add argument description
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
|
|
||||||
EFI_TIMEOUT - GC_TODO: Add description for return value
|
|
||||||
EFI_SUCCESS - GC_TODO: Add description for return value
|
|
||||||
|
|
||||||
**/
|
|
||||||
{
|
{
|
||||||
UINTN Delay;
|
UINTN Delay;
|
||||||
UINT8 Data;
|
UINT8 Data;
|
||||||
@ -929,7 +912,7 @@ Returns:
|
|||||||
|
|
||||||
gBS->Stall (50);
|
gBS->Stall (50);
|
||||||
Delay--;
|
Delay--;
|
||||||
} while (Delay);
|
} while (Delay != 0);
|
||||||
|
|
||||||
if (Delay == 0) {
|
if (Delay == 0) {
|
||||||
return EFI_TIMEOUT;
|
return EFI_TIMEOUT;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**@file
|
/** @file
|
||||||
PS2 Mouse Communication Interface
|
Using PS2 Mouse to simulation Absolution Pointer Device.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2007, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _COMMPS2_H_
|
#ifndef __COMMPS2_H__
|
||||||
#define _COMMPS2_H_
|
#define __COMMPS2_H__
|
||||||
|
|
||||||
#define PS2_PACKET_LENGTH 3
|
#define PS2_PACKET_LENGTH 3
|
||||||
#define PS2_SYNC_MASK 0xc
|
#define PS2_SYNC_MASK 0xc
|
||||||
@ -246,7 +246,7 @@ PS2MouseEnable (
|
|||||||
/**
|
/**
|
||||||
Get mouse packet . Only care first 3 bytes
|
Get mouse packet . Only care first 3 bytes
|
||||||
|
|
||||||
@param MouseDev Pointer of PS2 Mouse Private Data Structure
|
@param MouseAbsolutePointerDev Pointer to PS2 Absolute Pointer Simulation Device Private Data Structure
|
||||||
|
|
||||||
@retval EFI_NOT_READY Mouse Device not ready to input data packet, or some error happened during getting the packet
|
@retval EFI_NOT_READY Mouse Device not ready to input data packet, or some error happened during getting the packet
|
||||||
@retval EFI_SUCCESS The data packet is gotten successfully.
|
@retval EFI_SUCCESS The data packet is gotten successfully.
|
||||||
@ -359,7 +359,7 @@ In8042AuxData (
|
|||||||
I/O work flow of outing 8042 Aux data.
|
I/O work flow of outing 8042 Aux data.
|
||||||
|
|
||||||
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
||||||
@param Command Aux I/O command
|
@param Data Buffer holding return value.
|
||||||
|
|
||||||
@retval EFI_SUCCESS Success to excute I/O work flow
|
@retval EFI_SUCCESS Success to excute I/O work flow
|
||||||
@retval EFI_TIMEOUT Keyboard controller time out.
|
@retval EFI_TIMEOUT Keyboard controller time out.
|
||||||
@ -371,7 +371,7 @@ Out8042AuxData (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check keyboard controller status, if it is output buffer full and for auxiliary device
|
Check keyboard controller status, if it is output buffer full and for auxiliary device.
|
||||||
|
|
||||||
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
||||||
|
|
||||||
@ -413,4 +413,4 @@ WaitOutputFull (
|
|||||||
IN UINTN Timeout
|
IN UINTN Timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // _COMMPS2_H_
|
#endif // __COMMPS2_H__
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/**@file
|
/** @file
|
||||||
|
UEFI Component Name(2) protocol implementation for Ps2 Absolute Pointer Simulation Dxe driver.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2007, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**@file
|
/** @file
|
||||||
A faked PS/2 Touchpad driver. Routines that interacts with callers,
|
A faked PS/2 Absolute Pointer driver. Routines that interacts with callers,
|
||||||
conforming to EFI driver model
|
conforming to EFI driver model
|
||||||
|
|
||||||
Copyright (c) 2006 - 2007, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
@ -486,7 +486,7 @@ PS2MouseAbsolutePointerDriverStop (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset the Mouse and do BAT test for it, if ExtendedVerification isTRUE and there is a mouse device connectted to system
|
Reset the Mouse and do BAT test for it, if ExtendedVerification isTRUE and there is a mouse device connectted to system.
|
||||||
|
|
||||||
@param This - Pointer of simple pointer Protocol.
|
@param This - Pointer of simple pointer Protocol.
|
||||||
@param ExtendedVerification - Whether configure mouse parameters. True: do; FALSE: skip.
|
@param ExtendedVerification - Whether configure mouse parameters. True: do; FALSE: skip.
|
||||||
@ -604,7 +604,7 @@ Exit:
|
|||||||
/**
|
/**
|
||||||
Check whether there is Ps/2 mouse device in system
|
Check whether there is Ps/2 mouse device in system
|
||||||
|
|
||||||
@param PS2_MOUSE_DEV - Mouse Private Data Structure
|
@param MouseAbsolutePointerDev - Absolute Pointer Device Private Data Structure
|
||||||
|
|
||||||
@retval TRUE - Keyboard in System.
|
@retval TRUE - Keyboard in System.
|
||||||
@retval FALSE - Keyboard not in System.
|
@retval FALSE - Keyboard not in System.
|
||||||
@ -674,22 +674,19 @@ MouseAbsolutePointerGetState (
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Event notification function for SIMPLE_POINTER.WaitForInput event
|
Event notification function for SIMPLE_POINTER.WaitForInput event.
|
||||||
Signal the event if there is input from mouse
|
Signal the event if there is input from mouse.
|
||||||
|
|
||||||
@param Event event object
|
@param Event event object
|
||||||
@param Context event context
|
@param Context event context
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MouseAbsolutePointerWaitForInput (
|
MouseAbsolutePointerWaitForInput (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
// GC_TODO: Event - add argument and description to function comment
|
|
||||||
// GC_TODO: Context - add argument and description to function comment
|
|
||||||
{
|
{
|
||||||
PS2_MOUSE_ABSOLUTE_POINTER_DEV *MouseAbsolutePointerDev;
|
PS2_MOUSE_ABSOLUTE_POINTER_DEV *MouseAbsolutePointerDev;
|
||||||
|
|
||||||
@ -706,8 +703,8 @@ MouseAbsolutePointerWaitForInput (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Event notification function for TimerEvent event
|
Event notification function for TimerEvent event.
|
||||||
If mouse device is connected to system, try to get the mouse packet data
|
If mouse device is connected to system, try to get the mouse packet data.
|
||||||
|
|
||||||
@param Event - TimerEvent in PS2_MOUSE_DEV
|
@param Event - TimerEvent in PS2_MOUSE_DEV
|
||||||
@param Context - Pointer to PS2_MOUSE_DEV structure
|
@param Context - Pointer to PS2_MOUSE_DEV structure
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/**@file
|
/** @file
|
||||||
A Ps2MouseAbsolutePointer driver header file
|
A Ps2MouseAbsolutePointer driver header file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2007, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _PS2MOUSEABSOLUTEPOINTER_H
|
#ifndef __PS2MOUSEABSOLUTEPOINTER_H__
|
||||||
#define _PS2MOUSEABSOLUTEPOINTER_H
|
#define __PS2MOUSEABSOLUTEPOINTER_H__
|
||||||
|
|
||||||
#include <PiDxe.h>
|
#include <PiDxe.h>
|
||||||
#include <Framework/StatusCode.h>
|
#include <Framework/StatusCode.h>
|
||||||
@ -105,6 +105,20 @@ typedef struct {
|
|||||||
//
|
//
|
||||||
// Function prototypes
|
// Function prototypes
|
||||||
//
|
//
|
||||||
|
/**
|
||||||
|
Test to see if this driver supports ControllerHandle. Any ControllerHandle
|
||||||
|
than contains a IsaIo protocol can be supported.
|
||||||
|
|
||||||
|
@param This Protocol instance pointer.
|
||||||
|
@param ControllerHandle Handle of device to test
|
||||||
|
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||||
|
device to start.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS This driver supports this device
|
||||||
|
@retval EFI_ALREADY_STARTED This driver is already running on this device
|
||||||
|
@retval other This driver does not support this device
|
||||||
|
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PS2MouseAbsolutePointerDriverSupported (
|
PS2MouseAbsolutePointerDriverSupported (
|
||||||
@ -113,6 +127,21 @@ PS2MouseAbsolutePointerDriverSupported (
|
|||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Start this driver on ControllerHandle by opening a IsaIo
|
||||||
|
protocol, creating PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEfiAbsolutePointerProtocolGuid
|
||||||
|
finnally.
|
||||||
|
|
||||||
|
@param This Protocol instance pointer.
|
||||||
|
@param ControllerHandle Handle of device to bind driver to
|
||||||
|
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||||
|
device to start.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS This driver is added to ControllerHandle
|
||||||
|
@retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle
|
||||||
|
@retval other This driver does not support this device
|
||||||
|
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PS2MouseAbsolutePointerDriverStart (
|
PS2MouseAbsolutePointerDriverStart (
|
||||||
@ -121,6 +150,20 @@ PS2MouseAbsolutePointerDriverStart (
|
|||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Stop this driver on ControllerHandle. Support stoping any child handles
|
||||||
|
created by this driver.
|
||||||
|
|
||||||
|
@param This Protocol instance pointer.
|
||||||
|
@param ControllerHandle Handle of device to stop driver on
|
||||||
|
@param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
||||||
|
children is zero stop the entire bus driver.
|
||||||
|
@param ChildHandleBuffer List of Child Handles to Stop.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS This driver is removed ControllerHandle
|
||||||
|
@retval other This driver was not removed from this device
|
||||||
|
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PS2MouseAbsolutePointerDriverStop (
|
PS2MouseAbsolutePointerDriverStop (
|
||||||
@ -259,7 +302,17 @@ Ps2MouseAbsolutePointerComponentNameGetControllerName (
|
|||||||
OUT CHAR16 **ControllerName
|
OUT CHAR16 **ControllerName
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Reset the Mouse and do BAT test for it, if ExtendedVerification isTRUE and there is a mouse device connectted to system.
|
||||||
|
|
||||||
|
@param This - Pointer of simple pointer Protocol.
|
||||||
|
@param ExtendedVerification - Whether configure mouse parameters. True: do; FALSE: skip.
|
||||||
|
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS - The command byte is written successfully.
|
||||||
|
@retval EFI_DEVICE_ERROR - Errors occurred during reseting keyboard.
|
||||||
|
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MouseAbsolutePointerReset (
|
MouseAbsolutePointerReset (
|
||||||
@ -267,6 +320,16 @@ MouseAbsolutePointerReset (
|
|||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get and Clear mouse status.
|
||||||
|
|
||||||
|
@param This - Pointer of simple pointer Protocol.
|
||||||
|
@param State - Output buffer holding status.
|
||||||
|
|
||||||
|
@retval EFI_INVALID_PARAMETER Output buffer is invalid.
|
||||||
|
@retval EFI_NOT_READY Mouse is not changed status yet.
|
||||||
|
@retval EFI_SUCCESS Mouse status is changed and get successful.
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MouseAbsolutePointerGetState (
|
MouseAbsolutePointerGetState (
|
||||||
@ -274,6 +337,15 @@ MouseAbsolutePointerGetState (
|
|||||||
IN OUT EFI_ABSOLUTE_POINTER_STATE *State
|
IN OUT EFI_ABSOLUTE_POINTER_STATE *State
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
|
||||||
|
Event notification function for SIMPLE_POINTER.WaitForInput event.
|
||||||
|
Signal the event if there is input from mouse.
|
||||||
|
|
||||||
|
@param Event event object
|
||||||
|
@param Context event context
|
||||||
|
|
||||||
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
MouseAbsolutePointerWaitForInput (
|
MouseAbsolutePointerWaitForInput (
|
||||||
@ -281,6 +353,14 @@ MouseAbsolutePointerWaitForInput (
|
|||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Event notification function for TimerEvent event.
|
||||||
|
If mouse device is connected to system, try to get the mouse packet data.
|
||||||
|
|
||||||
|
@param Event - TimerEvent in PS2_MOUSE_DEV
|
||||||
|
@param Context - Pointer to PS2_MOUSE_DEV structure
|
||||||
|
|
||||||
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PollMouseAbsolutePointer (
|
PollMouseAbsolutePointer (
|
||||||
@ -288,11 +368,30 @@ PollMouseAbsolutePointer (
|
|||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
I/O work flow of in 8042 data.
|
||||||
|
|
||||||
|
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
||||||
|
@param Data Data value
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS Success to excute I/O work flow
|
||||||
|
@retval EFI_TIMEOUT Keyboard controller time out.
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
In8042Data (
|
In8042Data (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN OUT UINT8 *Data
|
IN OUT UINT8 *Data
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Check whether there is Ps/2 mouse device in system
|
||||||
|
|
||||||
|
@param MouseAbsolutePointerDev - Absolute Pointer Device Private Data Structure
|
||||||
|
|
||||||
|
@retval TRUE - Keyboard in System.
|
||||||
|
@retval FALSE - Keyboard not in System.
|
||||||
|
|
||||||
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
CheckMouseAbsolutePointerConnect (
|
CheckMouseAbsolutePointerConnect (
|
||||||
IN PS2_MOUSE_ABSOLUTE_POINTER_DEV *MouseAbsolutePointerDev
|
IN PS2_MOUSE_ABSOLUTE_POINTER_DEV *MouseAbsolutePointerDev
|
||||||
|
@ -716,8 +716,8 @@ MouseWaitForInput (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Event notification function for TimerEvent event
|
Event notification function for TimerEvent event.
|
||||||
If mouse device is connected to system, try to get the mouse packet data
|
If mouse device is connected to system, try to get the mouse packet data.
|
||||||
|
|
||||||
@param Event - TimerEvent in PS2_MOUSE_DEV
|
@param Event - TimerEvent in PS2_MOUSE_DEV
|
||||||
@param Context - Pointer to PS2_MOUSE_DEV structure
|
@param Context - Pointer to PS2_MOUSE_DEV structure
|
||||||
|
@ -354,8 +354,8 @@ MouseWaitForInput (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Event notification function for TimerEvent event
|
Event notification function for TimerEvent event.
|
||||||
If mouse device is connected to system, try to get the mouse packet data
|
If mouse device is connected to system, try to get the mouse packet data.
|
||||||
|
|
||||||
@param Event - TimerEvent in PS2_MOUSE_DEV
|
@param Event - TimerEvent in PS2_MOUSE_DEV
|
||||||
@param Context - Pointer to PS2_MOUSE_DEV structure
|
@param Context - Pointer to PS2_MOUSE_DEV structure
|
||||||
|
Reference in New Issue
Block a user