Add SCSI_CDB6_LEN macro (where 0 ==> 256).

Obtained from:gibbs@freebsd.org
This commit is contained in:
Matt Jacob 2000-07-14 19:40:54 +00:00
parent eddceb0d2b
commit bc07f47f5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63171

View File

@ -74,6 +74,9 @@
#error "CAM_MAX_CDBLEN cannot be less than SCSI_MAX_CDBLEN"
#endif
/* 6byte CDBs special case 0 length to be 256 */
#define SCSI_CDB6_LEN(len) ((len) == 0 ? 256 : len)
/*
* This type defines actions to be taken when a particular sense code is
* received. Right now, these flags are only defined to take up 16 bits,