xref: /minix3/minix/lib/libbdev/const.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc #ifndef _BDEV_CONST_H
2*433d6423SLionel Sambuc #define _BDEV_CONST_H
3*433d6423SLionel Sambuc 
4*433d6423SLionel Sambuc #define NR_CALLS 	256	/* maximum number of concurrent async calls */
5*433d6423SLionel Sambuc 
6*433d6423SLionel Sambuc #define NO_ID		(-1)	/* ID for synchronous requests */
7*433d6423SLionel Sambuc 
8*433d6423SLionel Sambuc #define DS_NR_TRIES	100	/* number of times to check endpoint in DS */
9*433d6423SLionel Sambuc #define DS_DELAY	50000	/* delay time (us) between DS checks */
10*433d6423SLionel Sambuc 
11*433d6423SLionel Sambuc #define DRIVER_TRIES	10	/* after so many tries, give up on a driver */
12*433d6423SLionel Sambuc #define RECOVER_TRIES	2	/* tolerated nr of restarts during recovery */
13*433d6423SLionel Sambuc #define TRANSFER_TRIES	5	/* number of times to try transfers on EIO */
14*433d6423SLionel Sambuc 
15*433d6423SLionel Sambuc #define NR_OPEN_DEVS	4	/* maximum different opened minor devices */
16*433d6423SLionel Sambuc 
17*433d6423SLionel Sambuc #endif /* _BDEV_CONST_H */
18