FreeBSD/Linux Kernel Cross Reference
sys/kernel/kernel.h
1 #ifndef KERNEL_H
2 #define KERNEL_H
3
4 /* This is the master header for the kernel. It includes some other files
5 * and defines the principal constants.
6 */
7 #define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */
8 #define _MINIX 1 /* tell headers to include MINIX stuff */
9 #define _SYSTEM 1 /* tell headers that this is the kernel */
10
11 /* The following are so basic, all the *.c files get them automatically. */
12 #include <minix/config.h> /* global configuration, MUST be first */
13 #include <ansi.h> /* C style: ANSI or K&R, MUST be second */
14 #include <sys/types.h> /* general system types */
15 #include <minix/const.h> /* MINIX specific constants */
16 #include <minix/type.h> /* MINIX specific types, e.g. message */
17 #include <minix/ipc.h> /* MINIX run-time system */
18 #include <timers.h> /* watchdog timer management */
19 #include <errno.h> /* return codes and error numbers */
20
21 #if (CHIP == INTEL)
22 #include <ibm/portio.h> /* device I/O and toggle interrupts */
23 #endif
24
25 /* Important kernel header files. */
26 #include "config.h" /* configuration, MUST be first */
27 #include "const.h" /* constants, MUST be second */
28 #include "type.h" /* type definitions, MUST be third */
29 #include "proto.h" /* function prototypes */
30 #include "glo.h" /* global variables */
31 #include "ipc.h" /* IPC constants */
32 #include "debug.h" /* debugging, MUST be last kernel header */
33
34 #endif /* KERNEL_H */
Cache object: 04cbaafad1582f164c1f95afd366775e
|