OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AppleKey.c File Reference
#include "EfiKey.h"
#include "AppleKey.h"
#include <Library/DevicePathLib.h>
#include <Library/UefiBootServicesTableLib.h>

Go to the source code of this file.

Macros

#define ASSERT_USB_KB_DEV_VALID(UsbKbDev)
 

Functions

STATIC VOID UsbKbSetAppleKeyMapDb (IN USB_KB_DEV *UsbKeyboardDevice, IN APPLE_KEY_MAP_DATABASE_PROTOCOL *KeyMapDb)
 
STATIC VOID EFIAPI UsbKbAppleKeyMapDbInstallNotify (IN EFI_EVENT Event, IN VOID *Context)
 
VOID UsbKbLocateAppleKeyMapDb (IN USB_KB_DEV *UsbKeyboardDevice)
 
VOID UsbKbFreeAppleKeyMapDb (IN USB_KB_DEV *UsbKeyboardDevice)
 

Detailed Description

Produces Keyboard Info Protocol.

Copyright (c) 2016 - 2018, Download-Fritz. 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 AppleKey.c.

Macro Definition Documentation

◆ ASSERT_USB_KB_DEV_VALID

#define ASSERT_USB_KB_DEV_VALID ( UsbKbDev)
Value:
do { \
ASSERT ((UsbKbDev) != NULL); \
ASSERT ((UsbKbDev)->Signature == USB_KB_DEV_SIGNATURE); \
} while (FALSE)
UINT8 Signature[8]
Definition BiosId.h:67
#define USB_KB_DEV_SIGNATURE
Definition EfiKey.h:63

Definition at line 21 of file AppleKey.c.

Function Documentation

◆ UsbKbAppleKeyMapDbInstallNotify()

STATIC VOID EFIAPI UsbKbAppleKeyMapDbInstallNotify ( IN EFI_EVENT Event,
IN VOID * Context )

Protocol installation notify for Apple KeyMap Database.

Parameters
[in]EventIndicates the event that invoke this function.
[in]ContextIndicates the calling context.

Definition at line 59 of file AppleKey.c.

◆ UsbKbFreeAppleKeyMapDb()

VOID UsbKbFreeAppleKeyMapDb ( IN USB_KB_DEV * UsbKeyboardDevice)

Definition at line 124 of file AppleKey.c.

◆ UsbKbLocateAppleKeyMapDb()

VOID UsbKbLocateAppleKeyMapDb ( IN USB_KB_DEV * UsbKeyboardDevice)

Definition at line 88 of file AppleKey.c.

◆ UsbKbSetAppleKeyMapDb()

STATIC VOID UsbKbSetAppleKeyMapDb ( IN USB_KB_DEV * UsbKeyboardDevice,
IN APPLE_KEY_MAP_DATABASE_PROTOCOL * KeyMapDb )

Definition at line 29 of file AppleKey.c.