![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpigen.h>
#include <acpi/acpigen_ps2_keybd.h>
#include <console/console.h>
#include <input-event-codes.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | KEYMAP(scancode, keycode) (((uint32_t)(scancode) << 16) | (keycode & 0xFFFF)) |
#define | SCANCODE(keymap) ((keymap >> 16) & 0xFFFF) |
Functions | |
static void | ssdt_generate_physmap (struct acpi_dp *dp, uint8_t num_top_row_keys, enum ps2_action_key action_keys[]) |
static void | ssdt_generate_keymap (struct acpi_dp *dp, uint8_t num_top_row_keys, enum ps2_action_key action_keys[], bool can_send_function_keys, bool has_numeric_keypad, bool has_scrnlock_key) |
void | acpigen_ps2_keyboard_dsd (const char *scope, uint8_t num_top_row_keys, enum ps2_action_key action_keys[], bool can_send_function_keys, bool has_numeric_keypad, bool has_scrnlock_key) |
Variables | |
static const uint32_t | function_keymaps [] |
static const uint32_t | action_keymaps [] |
static uint32_t | numeric_keypad_keymaps [] |
static uint32_t | rest_of_keymaps [] |
#define KEYMAP | ( | scancode, | |
keycode | |||
) | (((uint32_t)(scancode) << 16) | (keycode & 0xFFFF)) |
Definition at line 10 of file acpigen_ps2_keybd.c.
#define SCANCODE | ( | keymap | ) | ((keymap >> 16) & 0xFFFF) |
Definition at line 11 of file acpigen_ps2_keybd.c.
void acpigen_ps2_keyboard_dsd | ( | const char * | scope, |
uint8_t | num_top_row_keys, | ||
enum ps2_action_key | action_keys[], | ||
bool | can_send_function_keys, | ||
bool | has_numeric_keypad, | ||
bool | has_scrnlock_key | ||
) |
Definition at line 276 of file acpigen_ps2_keybd.c.
References acpi_dp_new_table(), acpi_dp_write(), acpigen_pop_len(), acpigen_write_scope(), BIOS_ERR, printk, PS2_MAX_TOP_ROW_KEYS, PS2_MIN_TOP_ROW_KEYS, ssdt_generate_keymap(), and ssdt_generate_physmap().
Referenced by fill_ssdt_ps2_keyboard().
|
static |
Definition at line 208 of file acpigen_ps2_keybd.c.
References acpi_dp_add_array(), acpi_dp_add_integer(), acpi_dp_new_table(), action_keymaps, ARRAY_SIZE, BIOS_ERR, BIOS_INFO, function_keymaps, KEY_SLEEP, KEYMAP, NULL, numeric_keypad_keymaps, printk, and rest_of_keymaps.
Referenced by acpigen_ps2_keyboard_dsd().
|
static |
Definition at line 176 of file acpigen_ps2_keybd.c.
References acpi_dp_add_array(), acpi_dp_add_integer(), acpi_dp_new_table(), action_keymaps, ARRAY_SIZE, BIOS_ERR, BIOS_INFO, NULL, printk, and SCANCODE.
Referenced by acpigen_ps2_keyboard_dsd().
|
static |
Definition at line 37 of file acpigen_ps2_keybd.c.
Referenced by ssdt_generate_keymap(), and ssdt_generate_physmap().
|
static |
Definition at line 14 of file acpigen_ps2_keybd.c.
Referenced by ssdt_generate_keymap().
|
static |
Definition at line 62 of file acpigen_ps2_keybd.c.
Referenced by ssdt_generate_keymap().
|
static |
Definition at line 96 of file acpigen_ps2_keybd.c.
Referenced by ssdt_generate_keymap().