Revision 11
Added function 5.2, must check for errors
keyboard.h | ||
---|---|---|
5 | 5 |
#include <lcom/lcf.h> |
6 | 6 |
#include <stdbool.h> |
7 | 7 |
#include <stdint.h> |
8 |
#include <minix/syslib.h> |
|
9 |
#include <minix/sysutil.h> |
|
8 | 10 |
|
9 | 11 |
#include "i8042.h" |
10 | 12 |
/** |
11 |
* @brief Handles keyboard interrupts (C implementation)
|
|
13 |
* @brief Handles keyboard interrupts |
|
12 | 14 |
* |
13 |
* Reads the status register and the output buffer (OB).
|
|
14 |
* If there was some error, the byte read from the OB should be discarded.
|
|
15 |
* Reads the status register, the output buffer and the mouse data
|
|
16 |
* If there was some error, the byte read from the OB should be discarded |
|
15 | 17 |
* |
16 |
* All communication with other code must be done via global variables, static if possible.
|
|
18 |
* All communication with other code must be done via global variables, static if possible |
|
17 | 19 |
* |
18 | 20 |
* Must be defined using parenthesis around the function name: |
19 | 21 |
*/ |
... | ... | |
41 | 43 |
* @return Return 0 upon success and non-zero otherwise |
42 | 44 |
*/ |
43 | 45 |
int(kbc_unsubscribe_int)(); |
46 |
/** |
|
47 |
* @brief Enables interrupts (used when polling function ends) |
|
48 |
* |
|
49 |
* @return Return 0 upon success and non-zero otherwise |
|
50 |
*/ |
|
51 |
int (enable_interrupt)(); |
|
44 | 52 |
|
45 | 53 |
#endif /*_KEYBOARD_H */ |
Also available in: Unified diff