Last commit for this file should have read:
Reduced maximum transfer size by one to allow for catching a too large condition correctly. Do single block I/O if the size is too large. Submitted by: Bruce Evans
This commit is contained in:
parent
7d7bb69d41
commit
e80859e4d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1948
@ -37,7 +37,7 @@ static int wdtest = 0;
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.39 1994/05/25 09:00:19 rgrimes Exp $
|
||||
* $Id: wd.c,v 1.40 1994/08/08 13:53:33 davidg Exp $
|
||||
*/
|
||||
|
||||
/* TODO:
|
||||
@ -86,7 +86,7 @@ static int wdtest = 0;
|
||||
#define TIMEOUT 10000
|
||||
#define RETRIES 5 /* number of retries before giving up */
|
||||
#define RECOVERYTIME 500000 /* usec for controller to recover after err */
|
||||
#define MAXTRANSFER 255 /* max size of transfer in sectors */
|
||||
#define MAXTRANSFER 255 /* max size of transfer in sectors */
|
||||
/* correct max is 256 but some controllers */
|
||||
/* can't handle that in all cases */
|
||||
#define BAD144_NO_CYL 0xffff /* XXX should be in dkbad.h; bad144.c uses -1 */
|
||||
|
Loading…
Reference in New Issue
Block a user