Keyboard mapping for the Mipsbook (by P. Boddie)
In the 2.6 kernel code, the keyboard driver is found in the
drivers/input/keyboard/jz_keypad.c file. It uses a timer to repeatedly scan the keyboard, tracking the previous state and comparing it with the current state to produce key events.
The driver also tracks the state of the Num Lock and Caps Lock keys, translating key presses when the Num Lock has been enabled. It also toggles the keyboard LEDs.