1228753Smm/* SPDX-License-Identifier: GPL-2.0 */
2228753Smm#ifndef _ASM_X86_KBDLEDS_H
3228753Smm#define _ASM_X86_KBDLEDS_H
4228753Smm
5228753Smm/*
6228753Smm * Some laptops take the 789uiojklm,. keys as number pad when NumLock is on.
7228753Smm * This seems a good reason to start with NumLock off. That's why on X86 we
8228753Smm * ask the bios for the correct state.
9228753Smm */
10228753Smm
11228753Smm#include <asm/setup.h>
12228753Smm
13228753Smmstatic inline int kbd_defleds(void)
14228753Smm{
15228753Smm	return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0;
16228753Smm}
17228753Smm
18228753Smm#endif /* _ASM_X86_KBDLEDS_H */
19228753Smm