path: root/arch/parisc/include
diff options
authorLinus Torvalds <torvalds@linux-foundation.org>2012-05-23 11:16:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-23 11:16:40 -0700
commit44bc40e1489622234169786b0ad5a1f4a01e1090 (patch)
treecd247a6f130b8993e92ac62f76ced2b023491d09 /arch/parisc/include
parent02171b4a7c5b555d08c3321332e0c45776518276 (diff)
parentead91d4b8c3b1fb08a73aaa4a191230ecf717ee0 (diff)
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform changes from Ingo Molnar: "This tree includes assorted platform driver updates and a preparatory series for a platform with custom DMA remapping semantics (sta2x11 I/O hub)." * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/vsmp: Fix number of CPUs when vsmp is disabled keyboard: Use BIOS Keyboard variable to set Numlock x86/olpc/xo1/sci: Report RTC wakeup events x86/olpc/xo1/sci: Produce wakeup events for buttons and switches x86, platform: Initial support for sta2x11 I/O hub x86: Introduce CONFIG_X86_DMA_REMAP x86-32: Introduce CONFIG_X86_DEV_DMA_OPS
Diffstat (limited to 'arch/parisc/include')
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/kbdleds.h b/arch/parisc/include/asm/kbdleds.h
new file mode 100644
index 00000000000..2e2e75a83c2
--- /dev/null
+++ b/arch/parisc/include/asm/kbdleds.h
@@ -0,0 +1,19 @@
+ * On HIL keyboards of PARISC machines there is no NumLock key and
+ * everyone expects the keypad to be used for numbers. That's why
+ * we can safely turn on the NUMLOCK bit.
+ */
+static inline int kbd_defleds(void)
+ return 1 << VC_NUMLOCK;
+ return 0;
+#endif /* _ASM_PARISC_KBDLEDS_H */