root / lab4 / .minix-src / include / minix / drivers.h @ 13
History | View | Annotate | Download (1.2 KB)
1 | 13 | up20180614 | /* This is the master header for all device drivers. It includes some other
|
---|---|---|---|
2 | * files and defines the principal constants.
|
||
3 | */
|
||
4 | |||
5 | #ifndef _INC_DRIVERS_H
|
||
6 | #define _INC_DRIVERS_H
|
||
7 | |||
8 | #define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */ |
||
9 | #define _NETBSD_SOURCE 1 /* tell headers to include MINIX stuff */ |
||
10 | #define _SYSTEM 1 /* get negative error number in <errno.h> */ |
||
11 | |||
12 | /* The following are so basic, all the *.c files get them automatically. */
|
||
13 | #include <minix/config.h> /* MUST be first */ |
||
14 | #include <minix/bitmap.h> |
||
15 | #include <minix/callnr.h> |
||
16 | #include <minix/com.h> |
||
17 | #include <minix/const.h> |
||
18 | #include <minix/devio.h> |
||
19 | #include <minix/dmap.h> |
||
20 | #include <minix/spin.h> |
||
21 | #include <minix/syslib.h> |
||
22 | #include <minix/sysutil.h> |
||
23 | #include <minix/timers.h> |
||
24 | #include <minix/type.h> |
||
25 | #include <minix/ds.h> |
||
26 | #include <sys/param.h> |
||
27 | #include <sys/types.h> |
||
28 | |||
29 | #include <machine/interrupt.h> /* IRQ vectors and miscellaneous ports */ |
||
30 | #if defined(__i386__)
|
||
31 | #include <machine/bios.h> /* BIOS index numbers */ |
||
32 | #include <machine/ports.h> /* Well-known ports */ |
||
33 | #endif
|
||
34 | |||
35 | #include <errno.h> |
||
36 | #include <lib.h> |
||
37 | #include <limits.h> |
||
38 | #include <signal.h> |
||
39 | #include <stddef.h> |
||
40 | #include <stdlib.h> |
||
41 | #include <string.h> |
||
42 | #include <unistd.h> |
||
43 | #include <assert.h> |
||
44 | |||
45 | #endif |