NT4/private/ntos/dd/qic117/0x11050.c
2020-09-30 17:12:29 +02:00

70 lines
1.8 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*****************************************************************************
*
* COPYRIGHT 1993 - COLORADO MEMORY SYSTEMS, INC.
* ALL RIGHTS RESERVED.
*
******************************************************************************
*
* FILE: \SE\DRIVER\Q117CD\SRC\0X11050.C
*
* FUNCTION: cqd_AtLogicalBOT
*
* PURPOSE: Return a Boolean value indicating that the tape is at logical BOT.
*
* HISTORY:
* $Log: J:\se.vcs\driver\q117cd\src\0x11050.c $
*
* Rev 1.0 03 Dec 1993 15:15:12 KEVINKES
* Initial Revision.
*
*****************************************************************************/
#define FCT_ID 0x11050
#include "include\public\adi_api.h"
#include "include\public\frb_api.h"
#include "include\private\kdi_pub.h"
#include "include\private\cqd_pub.h"
#include "q117cd\include\cqd_defs.h"
#include "q117cd\include\cqd_strc.h"
#include "q117cd\include\cqd_hdr.h"
/*endinclude*/
dBoolean cqd_AtLogicalBOT
(
/* INPUT PARAMETERS: */
CqdContextPtr cqd_context
/* UPDATE PARAMETERS: */
/* OUTPUT PARAMETERS: */
)
/* COMMENTS: ****************************************************************
*
* The tape is at logical BOT when the head is positioned ove an even track
* and the tape is at physical BOT or when the head is positioned over an odd
* track and the tape is at physical EOT.
*
* DEFINITIONS: *************************************************************/
{
/* DATA: ********************************************************************/
/* CODE: ********************************************************************/
if ((((cqd_context->operation_status.current_track & 1) == 0) &&
cqd_context->rd_wr_op.bot) ||
(((cqd_context->operation_status.current_track & 1) == 1) &&
cqd_context->rd_wr_op.eot)) {
return dTRUE;
} else {
return dFALSE;
}
}