2011-12-07 15:44:28 +01:00
|
|
|
#ifndef _BLOCKDRIVER_CONST_H
|
|
|
|
#define _BLOCKDRIVER_CONST_H
|
|
|
|
|
2012-02-09 22:28:18 +01:00
|
|
|
/* Thread stack size. */
|
|
|
|
#define STACK_SIZE 8192
|
|
|
|
|
2011-12-07 15:44:28 +01:00
|
|
|
/* Maximum number of devices supported. */
|
2013-09-10 23:35:15 +02:00
|
|
|
#define MAX_DEVICES BLOCKDRIVER_MAX_DEVICES
|
2011-12-07 15:44:28 +01:00
|
|
|
|
|
|
|
/* The maximum number of worker threads per device. */
|
|
|
|
#define MAX_WORKERS 32
|
|
|
|
|
|
|
|
#define MAX_THREADS (MAX_DEVICES * MAX_WORKERS) /* max nr of threads */
|
|
|
|
#define MAIN_THREAD (MAX_THREADS) /* main thread ID */
|
|
|
|
#define SINGLE_THREAD (0) /* single-thread ID */
|
|
|
|
|
|
|
|
#endif /* _BLOCKDRIVER_CONST_H */
|