mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
OvmfPkg/VirtioKeyboardDxe: Drop unused functions and variables
VirtioKeyboardRingHasBuffer() and VIRTIO_KBD_DEV.KeyNotifyTimer are defined but never called, drop them. Signed-off-by: Jiaqing Zhao <Zhao.Jiaqing@amd.com>
This commit is contained in:
parent
2c6e9e13d6
commit
0a74b3a4de
2 changed files with 0 additions and 24 deletions
|
|
@ -104,29 +104,6 @@ VirtioKeyboardRingSendBuffer (
|
|||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Look for buffer ready to be processed
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
VirtioKeyboardRingHasBuffer (
|
||||
IN OUT VIRTIO_KBD_DEV *Dev,
|
||||
IN UINT16 Index
|
||||
)
|
||||
{
|
||||
VIRTIO_KBD_RING *Ring = Dev->Rings + Index;
|
||||
UINT16 UsedIdx = *Ring->Ring.Used.Idx;
|
||||
|
||||
if (!Ring->Ready) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (Ring->LastUsedIdx == UsedIdx) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Get data from buffer which is marked as ready from device
|
||||
BOOLEAN
|
||||
|
|
|
|||
|
|
@ -97,7 +97,6 @@ typedef struct {
|
|||
|
||||
// List for notifications
|
||||
LIST_ENTRY NotifyList;
|
||||
EFI_EVENT KeyNotifyTimer;
|
||||
|
||||
// Last pressed key
|
||||
// typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue