From 77dec43b2244da5036d0be2363d03d961a07ca20 Mon Sep 17 00:00:00 2001 From: mjacob Date: Sat, 19 Feb 2000 01:50:03 +0000 Subject: [PATCH] Clarify cd_resid tag. --- sys/dev/ic/isp_tpublic.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/dev/ic/isp_tpublic.h b/sys/dev/ic/isp_tpublic.h index 158b1f235079..a775b4db1802 100644 --- a/sys/dev/ic/isp_tpublic.h +++ b/sys/dev/ic/isp_tpublic.h @@ -1,4 +1,4 @@ -/* $NetBSD: isp_tpublic.h,v 1.1 2000/02/12 02:23:13 mjacob Exp $ */ +/* $NetBSD: isp_tpublic.h,v 1.2 2000/02/19 01:50:03 mjacob Exp $ */ /* * Qlogic ISP Host Adapter Public Target Interface Structures && Routines *--------------------------------------- @@ -129,13 +129,11 @@ typedef struct { * data should be moved, the outer layer should set it to the amount * expected to be moved. * - * The tag cd_resid is the total residual of data not transferred. - * That is, cd_resid is set up, possibly by the MD layer when it - * reads the expected data transfer length from an FCP CMND IU, - * to be the total data amount expected to be moved over the life - * of the command. As data is successfully moved, this value is - * decreased. At the end of a command, any residual indicates the - * number of bytes requested but not moved. + * The tag cd_resid should be the total residual of data not transferred. + * The outer layers need to set this at the begining of command processing + * to equal cd_totlen. As data is successfully moved, this value is decreased. + * At the end of a command, any nonzero residual indicates the number of bytes + * requested but not moved. * * The tag cd_xfrlen is the length of the currently active data transfer. * This allows several interations between any outside software and the