1 #ifndef _BLOCKDRIVER_CONST_H 2 #define _BLOCKDRIVER_CONST_H 3 4 /* Thread stack size. */ 5 #ifdef _MINIX_MAGIC 6 #define STACK_SIZE 32768 7 #else 8 #define STACK_SIZE 8192 9 #endif 10 11 /* Maximum number of devices supported. */ 12 #define MAX_DEVICES BLOCKDRIVER_MAX_DEVICES 13 14 /* The maximum number of worker threads per device. */ 15 #define MAX_WORKERS 32 16 17 #define MAX_THREADS (MAX_DEVICES * MAX_WORKERS) /* max nr of threads */ 18 #define MAIN_THREAD (MAX_THREADS) /* main thread ID */ 19 #define SINGLE_THREAD (0) /* single-thread ID */ 20 21 #endif /* _BLOCKDRIVER_CONST_H */ 22