kbdleds.h 438 B

1234567891011121314151617181920
  1. #ifndef _ASM_PARISC_KBDLEDS_H
  2. #define _ASM_PARISC_KBDLEDS_H
  3. /*
  4. * On HIL keyboards of PARISC machines there is no NumLock key and
  5. * everyone expects the keypad to be used for numbers. That's why
  6. * we can safely turn on the NUMLOCK bit.
  7. */
  8. static inline int kbd_defleds(void)
  9. {
  10. #if defined(CONFIG_KEYBOARD_HIL) || defined(CONFIG_KEYBOARD_HIL_OLD)
  11. return 1 << VC_NUMLOCK;
  12. #else
  13. return 0;
  14. #endif
  15. }
  16. #endif /* _ASM_PARISC_KBDLEDS_H */