coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
acpigen_ps2_keybd.h File Reference
#include <types.h>
Include dependency graph for acpigen_ps2_keybd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PS2_MIN_TOP_ROW_KEYS   10
 
#define PS2_MAX_TOP_ROW_KEYS   15
 

Enumerations

enum  ps2_action_key {
  PS2_KEY_ABSENT = 0 , PS2_KEY_BACK , PS2_KEY_FORWARD , PS2_KEY_REFRESH ,
  PS2_KEY_FULLSCREEN , PS2_KEY_OVERVIEW , PS2_KEY_BRIGHTNESS_DOWN , PS2_KEY_BRIGHTNESS_UP ,
  PS2_KEY_VOL_MUTE , PS2_KEY_VOL_DOWN , PS2_KEY_VOL_UP , PS2_KEY_SNAPSHOT ,
  PS2_KEY_PRIVACY_SCRN_TOGGLE , PS2_KEY_KBD_BKLIGHT_DOWN , PS2_KEY_KBD_BKLIGHT_UP , PS2_KEY_PLAY_PAUSE ,
  PS2_KEY_NEXT_TRACK , PS2_KEY_PREV_TRACK , PS2_KEY_KBD_BKLIGHT_TOGGLE , PS2_KEY_MICMUTE ,
  PS2_KEY_MENU
}
 

Functions

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)
 

Macro Definition Documentation

◆ PS2_MAX_TOP_ROW_KEYS

#define PS2_MAX_TOP_ROW_KEYS   15

Definition at line 33 of file acpigen_ps2_keybd.h.

◆ PS2_MIN_TOP_ROW_KEYS

#define PS2_MIN_TOP_ROW_KEYS   10

Definition at line 32 of file acpigen_ps2_keybd.h.

Enumeration Type Documentation

◆ ps2_action_key

Enumerator
PS2_KEY_ABSENT 
PS2_KEY_BACK 
PS2_KEY_FORWARD 
PS2_KEY_REFRESH 
PS2_KEY_FULLSCREEN 
PS2_KEY_OVERVIEW 
PS2_KEY_BRIGHTNESS_DOWN 
PS2_KEY_BRIGHTNESS_UP 
PS2_KEY_VOL_MUTE 
PS2_KEY_VOL_DOWN 
PS2_KEY_VOL_UP 
PS2_KEY_SNAPSHOT 
PS2_KEY_PRIVACY_SCRN_TOGGLE 
PS2_KEY_KBD_BKLIGHT_DOWN 
PS2_KEY_KBD_BKLIGHT_UP 
PS2_KEY_PLAY_PAUSE 
PS2_KEY_NEXT_TRACK 
PS2_KEY_PREV_TRACK 
PS2_KEY_KBD_BKLIGHT_TOGGLE 
PS2_KEY_MICMUTE 
PS2_KEY_MENU 

Definition at line 8 of file acpigen_ps2_keybd.h.

Function Documentation

◆ acpigen_ps2_keyboard_dsd()

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().

Here is the call graph for this function:
Here is the caller graph for this function: