1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2b2d0b7a0SJoshua Cov #ifndef _ASM_X86_KBDLEDS_H 3b2d0b7a0SJoshua Cov #define _ASM_X86_KBDLEDS_H 4b2d0b7a0SJoshua Cov 5b2d0b7a0SJoshua Cov /* 6b2d0b7a0SJoshua Cov * Some laptops take the 789uiojklm,. keys as number pad when NumLock is on. 7b2d0b7a0SJoshua Cov * This seems a good reason to start with NumLock off. That's why on X86 we 8b2d0b7a0SJoshua Cov * ask the bios for the correct state. 9b2d0b7a0SJoshua Cov */ 10b2d0b7a0SJoshua Cov 11b2d0b7a0SJoshua Cov #include <asm/setup.h> 12b2d0b7a0SJoshua Cov kbd_defleds(void)13b2d0b7a0SJoshua Covstatic inline int kbd_defleds(void) 14b2d0b7a0SJoshua Cov { 15b2d0b7a0SJoshua Cov return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0; 16b2d0b7a0SJoshua Cov } 17b2d0b7a0SJoshua Cov 18b2d0b7a0SJoshua Cov #endif /* _ASM_X86_KBDLEDS_H */ 19