summaryrefslogtreecommitdiff
path: root/kernel/inc/constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/inc/constants.h')
-rw-r--r--kernel/inc/constants.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/kernel/inc/constants.h b/kernel/inc/constants.h
new file mode 100644
index 0000000..13f47bd
--- /dev/null
+++ b/kernel/inc/constants.h
@@ -0,0 +1,50 @@
+//+----------------------------------------------------------------------------
+//
+// File: constants.h
+//
+// Module:
+//
+// Synopsis:
+//
+// Copyright (C) 2003
+//
+// Created: sgasch 10 Oct 2003
+//
+//+----------------------------------------------------------------------------
+
+#ifndef _CONSTANTS_H_
+#define _CONSTANTS_H_
+
+//
+// Constants
+//
+#define YES (1)
+#define NO (0)
+#ifndef TRUE
+#define TRUE (YES)
+#endif
+#ifndef FALSE
+#define FALSE (NO)
+#endif
+
+#define NULL ((void *)0)
+
+#define ASCII_ESC (0x1B)
+#define ASCII_BS (0x08)
+
+#define USER_PRIVILEGE (3)
+#define KERNEL_PRIVILEGE (0)
+
+//
+// Device driver constants
+//
+#define DEVICE_DRIVER_INITIALIZATION (1)
+#define DEVICE_IO_CONTROL (2)
+#define DEVICE_READ (3)
+#define DEVICE_WRITE (4)
+#define DEVICE_DETATCH (6)
+#define DEVICE_DRIVER_SHUTDOWN (7)
+
+#endif /* _CONSTANTS_H_ */
+
+