|
|
1.1 ! root 1: /*++ ! 2: ! 3: Copyright (c) 1993 - Colorado Memory Systems, Inc. ! 4: All Rights Reserved ! 5: ! 6: Module Name: ! 7: ! 8: start_tp.c ! 9: ! 10: Abstract: ! 11: ! 12: ! 13: Revision History: ! 14: ! 15: ! 16: ! 17: ! 18: --*/ ! 19: ! 20: // ! 21: // include files ! 22: // ! 23: ! 24: #include <ntddk.h> // various NT definitions ! 25: #include <ntdddisk.h> // disk device driver I/O control codes ! 26: #include <ntiologc.h> ! 27: #include "common.h" ! 28: #include "drvtask.h" // this driver's data declarations ! 29: #include "mt1defs.h" // this driver's data declarations ! 30: #include "mt1strc.h" // this driver's data declarations ! 31: #include "q117data.h" // this driver's data declarations ! 32: ! 33: ! 34: STATUS ! 35: Q117iStartTape( ! 36: IN PTAPE_EXTENSION TapeExtension ! 37: ) ! 38: ! 39: /*++ ! 40: ! 41: Routine Description: ! 42: ! 43: Start the tape in the logical forward mode if it is not already. ! 44: ! 45: Arguments: ! 46: ! 47: TapeExtension - ! 48: ! 49: Return Value: ! 50: ! 51: ! 52: ! 53: --*/ ! 54: ! 55: { ! 56: ! 57: STATUS retval = NoErr; ! 58: ! 59: if (!TapeExtension->TapePosition.LogFwd) { ! 60: ! 61: if((retval = Q117iSendByte(TapeExtension, Logical_Fwd)) == NoErr) { ! 62: ! 63: TapeExtension->TapePosition.LogFwd = TRUE; ! 64: ! 65: } ! 66: ! 67: } ! 68: ! 69: return(retval); ! 70: ! 71: } ! 72:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.