xref: /minix3/minix/lib/libblockdriver/const.h (revision ef52a26bab47e914c9ad179443fd45c1a937c435)
1433d6423SLionel Sambuc #ifndef _BLOCKDRIVER_CONST_H
2433d6423SLionel Sambuc #define _BLOCKDRIVER_CONST_H
3433d6423SLionel Sambuc 
4433d6423SLionel Sambuc /* Thread stack size. */
5*ef52a26bSDavid van Moolenbroek #ifdef _MINIX_MAGIC
6*ef52a26bSDavid van Moolenbroek #define STACK_SIZE	32768
7*ef52a26bSDavid van Moolenbroek #else
8433d6423SLionel Sambuc #define STACK_SIZE	8192
9*ef52a26bSDavid van Moolenbroek #endif
10433d6423SLionel Sambuc 
11433d6423SLionel Sambuc /* Maximum number of devices supported. */
12433d6423SLionel Sambuc #define MAX_DEVICES	BLOCKDRIVER_MAX_DEVICES
13433d6423SLionel Sambuc 
14433d6423SLionel Sambuc /* The maximum number of worker threads per device. */
15433d6423SLionel Sambuc #define MAX_WORKERS	32
16433d6423SLionel Sambuc 
17433d6423SLionel Sambuc #define MAX_THREADS	(MAX_DEVICES * MAX_WORKERS)	/* max nr of threads */
18433d6423SLionel Sambuc #define MAIN_THREAD	(MAX_THREADS)			/* main thread ID */
19433d6423SLionel Sambuc #define SINGLE_THREAD	(0)				/* single-thread ID */
20433d6423SLionel Sambuc 
21433d6423SLionel Sambuc #endif /* _BLOCKDRIVER_CONST_H */
22