blob: 13f47bde944defd435162adf8d6030f7abb955d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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_ */
|