diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 14:16:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 14:16:40 -0400 |
commit | 44bc40e1489622234169786b0ad5a1f4a01e1090 (patch) | |
tree | cd247a6f130b8993e92ac62f76ced2b023491d09 /arch/parisc/include | |
parent | 02171b4a7c5b555d08c3321332e0c45776518276 (diff) | |
parent | ead91d4b8c3b1fb08a73aaa4a191230ecf717ee0 (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')
-rw-r--r-- | arch/parisc/include/asm/kbdleds.h | 19 |
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 000000000000..2e2e75a83c28 --- /dev/null +++ b/arch/parisc/include/asm/kbdleds.h | |||
@@ -0,0 +1,19 @@ | |||
1 | #ifndef _ASM_PARISC_KBDLEDS_H | ||
2 | #define _ASM_PARISC_KBDLEDS_H | ||
3 | |||
4 | /* | ||
5 | * On HIL keyboards of PARISC machines there is no NumLock key and | ||
6 | * everyone expects the keypad to be used for numbers. That's why | ||
7 | * we can safely turn on the NUMLOCK bit. | ||
8 | */ | ||
9 | |||
10 | static inline int kbd_defleds(void) | ||
11 | { | ||
12 | #if defined(CONFIG_KEYBOARD_HIL) || defined(CONFIG_KEYBOARD_HIL_OLD) | ||
13 | return 1 << VC_NUMLOCK; | ||
14 | #else | ||
15 | return 0; | ||
16 | #endif | ||
17 | } | ||
18 | |||
19 | #endif /* _ASM_PARISC_KBDLEDS_H */ | ||