TianoCore EDK2 master
Loading...
Searching...
No Matches
Ps2Keyboard.c File Reference
#include "Ps2Keyboard.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI KbdControllerDriverSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS EFIAPI KbdControllerDriverStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS EFIAPI KbdControllerDriverStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
 
EFI_STATUS KbdFreeNotifyList (IN OUT LIST_ENTRY *ListHead)
 
EFI_STATUS EFIAPI InitializePs2Keyboard (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_DRIVER_BINDING_PROTOCOL gKeyboardControllerDriver
 

Detailed Description

PS/2 Keyboard 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 Ps2Keyboard.c.

Function Documentation

◆ InitializePs2Keyboard()

EFI_STATUS EFIAPI InitializePs2Keyboard ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The module Entry Point for module Ps2Keyboard.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
otherSome error occurs when executing this entry point.

Definition at line 654 of file Ps2Keyboard.c.

◆ KbdControllerDriverStart()

EFI_STATUS EFIAPI KbdControllerDriverStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Create KEYBOARD_CONSOLE_IN_DEV instance on controller.

Parameters
ThisPointer of EFI_DRIVER_BINDING_PROTOCOL
Controllerdriver controller handle
RemainingDevicePathChildren's device path
Return values
whethersuccess to create floppy control instance.

Definition at line 192 of file Ps2Keyboard.c.

◆ KbdControllerDriverStop()

EFI_STATUS EFIAPI KbdControllerDriverStop ( 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.

Parameters
ThisProtocol instance pointer.
ControllerHandleHandle of device to stop driver on
NumberOfChildrenNumber of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver.
ChildHandleBufferList of Child Handles to Stop.
Return values
EFI_SUCCESSThis driver is removed ControllerHandle
otherThis driver was not removed from this device

Definition at line 498 of file Ps2Keyboard.c.

◆ KbdControllerDriverSupported()

EFI_STATUS EFIAPI KbdControllerDriverSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Test controller is a keyboard Controller.

Parameters
ThisPointer of EFI_DRIVER_BINDING_PROTOCOL
Controllerdriver's controller
RemainingDevicePathchildren device path
Return values
EFI_UNSUPPORTEDcontroller is not floppy disk
EFI_SUCCESScontroller is floppy disk

Definition at line 112 of file Ps2Keyboard.c.

◆ KbdFreeNotifyList()

EFI_STATUS KbdFreeNotifyList ( IN OUT LIST_ENTRY ListHead)

Free the waiting key notify list.

Parameters
ListHeadPointer to list head
Return values
EFI_INVALID_PARAMETERListHead is NULL
EFI_SUCCESSSuccess to free NotifyList

Definition at line 618 of file Ps2Keyboard.c.

Variable Documentation

◆ gKeyboardControllerDriver

EFI_DRIVER_BINDING_PROTOCOL gKeyboardControllerDriver
Initial value:
= {
0xa,
}
#define NULL
Definition: Base.h:319
EFI_STATUS EFIAPI KbdControllerDriverSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
Definition: Ps2Keyboard.c:112
EFI_STATUS EFIAPI KbdControllerDriverStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
Definition: Ps2Keyboard.c:192
EFI_STATUS EFIAPI KbdControllerDriverStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
Definition: Ps2Keyboard.c:498

Definition at line 91 of file Ps2Keyboard.c.