Furquan Shaikh | e084463 | 2020-05-02 10:23:37 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | #ifndef __ACPIGEN_PS2_KEYBD_H__ |
| 8 | #define __ACPIGEN_PS2_KEYBD_H__ |
| 9 | |
| 10 | #include <types.h> |
| 11 | |
| 12 | enum ps2_action_key { |
| 13 | PS2_KEY_ABSENT = 0, |
| 14 | PS2_KEY_BACK, |
| 15 | PS2_KEY_FORWARD, |
| 16 | PS2_KEY_REFRESH, |
| 17 | PS2_KEY_FULLSCREEN, |
| 18 | PS2_KEY_OVERVIEW, |
| 19 | PS2_KEY_BRIGHTNESS_DOWN, |
| 20 | PS2_KEY_BRIGHTNESS_UP, |
| 21 | PS2_KEY_VOL_MUTE, |
| 22 | PS2_KEY_VOL_DOWN, |
| 23 | PS2_KEY_VOL_UP, |
| 24 | PS2_KEY_SNAPSHOT, |
| 25 | PS2_KEY_PRIVACY_SCRN_TOGGLE, |
| 26 | PS2_KEY_KBD_BKLIGHT_DOWN, |
| 27 | PS2_KEY_KBD_BKLIGHT_UP, |
| 28 | PS2_KEY_PLAY_PAUSE, |
| 29 | PS2_KEY_NEXT_TRACK, |
| 30 | PS2_KEY_PREV_TRACK, |
| 31 | }; |
| 32 | |
| 33 | #define PS2_MIN_TOP_ROW_KEYS 10 |
| 34 | #define PS2_MAX_TOP_ROW_KEYS 15 |
| 35 | |
| 36 | void acpigen_ps2_keyboard_dsd(const char *scope, uint8_t num_top_row_keys, |
| 37 | enum ps2_action_key action_keys[], |
| 38 | bool can_send_function_keys, |
| 39 | bool has_numeric_keypad, bool has_scrnlock_key); |
| 40 | |
| 41 | #endif /* __ACPIGEN_PS2_KEYBD_H__ */ |