root / lab4 / .minix-src / include / minix / inputdriver.h @ 13
History | View | Annotate | Download (763 Bytes)
1 |
#ifndef _MINIX_INPUTDRIVER_H
|
---|---|
2 |
#define _MINIX_INPUTDRIVER_H
|
3 |
|
4 |
#include <minix/driver.h> |
5 |
#include <minix/input.h> |
6 |
|
7 |
/* Entry points into the device dependent code of input drivers. */
|
8 |
struct inputdriver {
|
9 |
void (*idr_leds)(unsigned int leds); |
10 |
void (*idr_intr)(unsigned int mask); |
11 |
void (*idr_alarm)(clock_t stamp);
|
12 |
void (*idr_other)(message *m_ptr, int ipc_status); |
13 |
}; |
14 |
|
15 |
/* Functions defined by libinputdriver. */
|
16 |
void inputdriver_announce(unsigned int type); |
17 |
void inputdriver_send_event(int mouse, unsigned short page, |
18 |
unsigned short code, int value, int flags); |
19 |
void inputdriver_process(struct inputdriver *idp, message *m_ptr, |
20 |
int ipc_status);
|
21 |
void inputdriver_terminate(void); |
22 |
void inputdriver_task(struct inputdriver *idp); |
23 |
|
24 |
#endif /* !_MINIX_INPUTDRIVER_H */ |