10 #define KEYMAP(scancode, keycode) (((uint32_t)(scancode) << 16) | (keycode & 0xFFFF))
11 #define SCANCODE(keymap) ((keymap >> 16) & 0xFFFF)
190 for (i = 0; i < num_top_row_keys; i++) {
191 key = action_keys[i];
197 "PS2K: invalid top-action-key-%u: %u(skipped)\n",
210 bool can_send_function_keys,
211 bool has_numeric_keypad,
212 bool has_scrnlock_key)
217 unsigned int i, total = 0;
226 for (i = 0; i < num_top_row_keys; i++) {
227 key = action_keys[i];
230 "PS2K: invalid top-action-key-%u: %u\n", i, key);
239 if (can_send_function_keys) {
240 for (i = 0; i < num_top_row_keys; i++) {
245 total += num_top_row_keys;
249 if (has_numeric_keypad) {
259 if (has_scrnlock_key) {
278 bool can_send_function_keys,
279 bool has_numeric_keypad,
280 bool has_scrnlock_key)
300 can_send_function_keys, has_numeric_keypad,
struct acpi_dp * acpi_dp_add_array(struct acpi_dp *dp, struct acpi_dp *array)
struct acpi_dp * acpi_dp_add_integer(struct acpi_dp *dp, const char *name, uint64_t value)
void acpi_dp_write(struct acpi_dp *table)
struct acpi_dp * acpi_dp_new_table(const char *name)
void acpigen_pop_len(void)
void acpigen_write_scope(const char *name)
static const uint32_t action_keymaps[]
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)
static void ssdt_generate_physmap(struct acpi_dp *dp, uint8_t num_top_row_keys, enum ps2_action_key action_keys[])
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)
static uint32_t rest_of_keymaps[]
static uint32_t numeric_keypad_keymaps[]
#define KEYMAP(scancode, keycode)
static const uint32_t function_keymaps[]
#define PS2_MAX_TOP_ROW_KEYS
#define PS2_MIN_TOP_ROW_KEYS
@ PS2_KEY_PRIVACY_SCRN_TOGGLE
@ PS2_KEY_KBD_BKLIGHT_TOGGLE
@ PS2_KEY_KBD_BKLIGHT_DOWN
@ PS2_KEY_BRIGHTNESS_DOWN
#define printk(level,...)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.