Revision 16
added function 1 and 2, working
mouse.h | ||
---|---|---|
1 | 1 |
#ifndef _MOUSE_H |
2 | 2 |
#define _MOUSE_H |
3 | 3 |
|
4 |
#include <lcom/lcf.h> |
|
4 |
|
|
5 | 5 |
#include <stdbool.h> |
6 | 6 |
#include <stdint.h> |
7 | 7 |
#include <minix/syslib.h> |
... | ... | |
43 | 43 |
*/ |
44 | 44 |
int(mouse_unsubscribe_int)(); |
45 | 45 |
/** |
46 |
* @brief Sets up packet |
|
46 | 47 |
* |
47 |
* |
|
48 |
* |
|
48 |
* @return Return 0 upon success and non-zero otherwise |
|
49 | 49 |
*/ |
50 |
int(parse_packet)(struct packet *pp); |
|
50 |
int(parse_packet)(struct packet *pp); |
|
51 |
/** |
|
52 |
* @brief Writes commands to the mouse |
|
53 |
* |
|
54 |
* @return Return 0 upon success and non-zero otherwise |
|
55 |
*/ |
|
56 |
int(write_cmd_mouse)(uint8_t cmd); |
|
57 |
/** |
|
58 |
* |
|
59 |
* |
|
60 |
* |
|
61 |
*/ |
|
62 |
int kbc_write(int port, uint8_t cmd); |
|
63 |
/** |
|
64 |
* |
|
65 |
* |
|
66 |
* |
|
67 |
*/ |
|
68 |
#endif /*_MOUSE_H */ |
Also available in: Unified diff