linux/include/linux/kbd_kern.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _KBD_KERN_H
#define _KBD_KERN_H

#include <linux/tty.h>
#include <linux/interrupt.h>
#include <linux/keyboard.h>

extern char *func_table[MAX_NR_FUNC];

/*
 * kbd->xxx contains the VC-local things (flag settings etc..)
 *
 * Note: externally visible are LED_SCR, LED_NUM, LED_CAP defined in kd.h
 *       The code in KDGETLED / KDSETLED depends on the internal and
 *       external order being the same.
 *
 * Note: lockstate is used as index in the array key_map.
 */
struct kbd_struct {};

extern int kbd_init(void);

extern void setledstate(struct kbd_struct *kbd, unsigned int led);

extern int do_poke_blanked_console;

extern void (*kbd_ledfunc)(unsigned int led);

extern int set_console(int nr);
extern void schedule_console_callback(void);

static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag)
{}

static inline int vc_kbd_led(struct kbd_struct * kbd, int flag)
{}

static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag)
{}

static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag)
{}

static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag)
{}

static inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag)
{}

static inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag)
{}

static inline void chg_vc_kbd_slock(struct kbd_struct * kbd, int flag)
{}

static inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag)
{}

static inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag)
{}

#define U(x)

#define BRL_UC_ROW

/* keyboard.c */

struct console;

void vt_set_leds_compute_shiftstate(void);

/* defkeymap.c */

extern unsigned int keymap_count;

#endif