Elyes HAOUAS | f50b662 | 2020-07-19 14:00:43 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Furquan Shaikh | e084463 | 2020-05-02 10:23:37 -0700 | [diff] [blame] | 2 | |
Furquan Shaikh | 56eafbb | 2020-04-30 18:38:55 -0700 | [diff] [blame] | 3 | #ifndef __ACPI_ACPIGEN_PS2_KEYBD_H__ |
| 4 | #define __ACPI_ACPIGEN_PS2_KEYBD_H__ |
Furquan Shaikh | e084463 | 2020-05-02 10:23:37 -0700 | [diff] [blame] | 5 | |
| 6 | #include <types.h> |
| 7 | |
| 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, |
Scott Chao | 3ecf50b | 2021-08-03 09:50:57 +0800 | [diff] [blame] | 27 | PS2_KEY_KBD_BKLIGHT_TOGGLE, |
Scott Chao | ffd80fd | 2021-07-30 10:36:23 +0800 | [diff] [blame] | 28 | PS2_KEY_MICMUTE, |
Boris Mittelberg | 130de14a | 2022-02-10 16:30:40 -0800 | [diff] [blame^] | 29 | PS2_KEY_MENU, |
Furquan Shaikh | e084463 | 2020-05-02 10:23:37 -0700 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | #define PS2_MIN_TOP_ROW_KEYS 10 |
| 33 | #define PS2_MAX_TOP_ROW_KEYS 15 |
| 34 | |
| 35 | void acpigen_ps2_keyboard_dsd(const char *scope, uint8_t num_top_row_keys, |
| 36 | enum ps2_action_key action_keys[], |
| 37 | bool can_send_function_keys, |
| 38 | bool has_numeric_keypad, bool has_scrnlock_key); |
| 39 | |
Furquan Shaikh | 56eafbb | 2020-04-30 18:38:55 -0700 | [diff] [blame] | 40 | #endif /* __ACPI_ACPIGEN_PS2_KEYBD_H__ */ |