Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_KBDLEDS_H
0003 #define _ASM_X86_KBDLEDS_H
0004 
0005 /*
0006  * Some laptops take the 789uiojklm,. keys as number pad when NumLock is on.
0007  * This seems a good reason to start with NumLock off. That's why on X86 we
0008  * ask the bios for the correct state.
0009  */
0010 
0011 #include <asm/setup.h>
0012 
0013 static inline int kbd_defleds(void)
0014 {
0015     return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0;
0016 }
0017 
0018 #endif /* _ASM_X86_KBDLEDS_H */