162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _ASM_X86_KBDLEDS_H 362306a36Sopenharmony_ci#define _ASM_X86_KBDLEDS_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci/* 662306a36Sopenharmony_ci * Some laptops take the 789uiojklm,. keys as number pad when NumLock is on. 762306a36Sopenharmony_ci * This seems a good reason to start with NumLock off. That's why on X86 we 862306a36Sopenharmony_ci * ask the bios for the correct state. 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#include <asm/setup.h> 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cistatic inline int kbd_defleds(void) 1462306a36Sopenharmony_ci{ 1562306a36Sopenharmony_ci return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0; 1662306a36Sopenharmony_ci} 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#endif /* _ASM_X86_KBDLEDS_H */ 19