Initial checkin of toy OS project.
[os.git] / kernel / inc / constants.h
1 //+----------------------------------------------------------------------------
2 //
3 // File:     constants.h
4 //
5 // Module:   
6 //
7 // Synopsis: 
8 //
9 // Copyright (C) 2003 
10 //
11 // Created:  sgasch  10 Oct 2003
12 //
13 //+----------------------------------------------------------------------------
14
15 #ifndef _CONSTANTS_H_
16 #define _CONSTANTS_H_
17
18 //
19 // Constants
20 // 
21 #define YES                                (1)
22 #define NO                                 (0)
23 #ifndef TRUE
24 #define TRUE                           (YES)
25 #endif
26 #ifndef FALSE
27 #define FALSE                          (NO)
28 #endif
29
30 #define NULL                       ((void *)0)
31
32 #define ASCII_ESC        (0x1B)
33 #define ASCII_BS         (0x08)
34
35 #define USER_PRIVILEGE   (3)
36 #define KERNEL_PRIVILEGE (0)
37
38 //
39 // Device driver constants
40 //
41 #define DEVICE_DRIVER_INITIALIZATION (1)
42 #define DEVICE_IO_CONTROL            (2)
43 #define DEVICE_READ                  (3)
44 #define DEVICE_WRITE                 (4)
45 #define DEVICE_DETATCH               (6)
46 #define DEVICE_DRIVER_SHUTDOWN       (7)
47  
48 #endif /* _CONSTANTS_H_ */
49
50