Function comments (v1)
This commit is contained in:
@@ -156,6 +156,14 @@ unsigned char kbdfr_shifted[128] =
|
||||
0
|
||||
};
|
||||
|
||||
/*
|
||||
* keyboard_handler - Keyboard event handler
|
||||
*
|
||||
* Is called from the interrupt dispatcher.
|
||||
* When a key is pressed or released, we get a scancode, and
|
||||
* it is then translated to an ASCII character.
|
||||
* Left Shift, Ctrl, and Alt keys are also taken into consideration.
|
||||
*/
|
||||
void keyboard_handler()
|
||||
{
|
||||
unsigned char scancode = inb(0x60);
|
||||
@@ -212,6 +220,12 @@ void keyboard_handler()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* keyboard_init - Keyboard initialization
|
||||
* @layout: Desired layout
|
||||
*
|
||||
* Prepares the PS/2 keyboard to recieve input.
|
||||
*/
|
||||
void keyboard_init(unsigned char layout)
|
||||
{
|
||||
// Here we might go and select PS/2, USB, or other... (once we implement multiple keyboard protocols)
|
||||
|
||||
Reference in New Issue
Block a user