acpi: Add IORT helper functions
[coreboot2.git] / src / include / acpi / acpigen_ps2_keybd.h
blobdeb755bbf81d7f20e13e3af1fb37c779e63e99ad
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef __ACPI_ACPIGEN_PS2_KEYBD_H__
4 #define __ACPI_ACPIGEN_PS2_KEYBD_H__
6 #include <types.h>
8 enum ps2_action_key {
9 PS2_KEY_ABSENT = 0,
10 PS2_KEY_BACK,
11 PS2_KEY_FORWARD,
12 PS2_KEY_REFRESH,
13 PS2_KEY_FULLSCREEN,
14 PS2_KEY_OVERVIEW,
15 PS2_KEY_BRIGHTNESS_DOWN,
16 PS2_KEY_BRIGHTNESS_UP,
17 PS2_KEY_VOL_MUTE,
18 PS2_KEY_VOL_DOWN,
19 PS2_KEY_VOL_UP,
20 PS2_KEY_SNAPSHOT,
21 PS2_KEY_PRIVACY_SCRN_TOGGLE,
22 PS2_KEY_KBD_BKLIGHT_DOWN,
23 PS2_KEY_KBD_BKLIGHT_UP,
24 PS2_KEY_PLAY_PAUSE,
25 PS2_KEY_NEXT_TRACK,
26 PS2_KEY_PREV_TRACK,
27 PS2_KEY_KBD_BKLIGHT_TOGGLE,
28 PS2_KEY_MICMUTE,
29 PS2_KEY_MENU,
30 PS2_KEY_DICTATE,
31 PS2_KEY_ACCESSIBILITY,
32 PS2_KEY_DO_NOT_DISTURB,
35 #define PS2_MIN_TOP_ROW_KEYS 2
36 #define PS2_MAX_TOP_ROW_KEYS 15
38 void acpigen_ps2_keyboard_dsd(const char *scope, uint8_t num_top_row_keys,
39 enum ps2_action_key action_keys[],
40 bool can_send_function_keys,
41 bool has_numeric_keypad, bool has_scrnlock_key,
42 bool has_assistant_key,
43 bool has_alpha_num_punct_keys);
45 #endif /* __ACPI_ACPIGEN_PS2_KEYBD_H__ */