//+---------------------------------------------------------------------------- // // 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_ */