|
|
1.1 root 1: /*++
2:
3: Copyright (c) 1993 - Colorado Memory Systems, Inc.
4: All Rights Reserved
5:
6: Module Name:
7:
8: chkdrv.c
9:
10: Abstract:
11:
12: Sends a low-level command to search for the drive, and perform
13: configuration.
14:
15: Revision History:
16:
17:
18:
19:
20: --*/
21:
22: //
23: // include files
24: //
25:
26: #include <ntddk.h>
27: #include <ntddtape.h>
28: #include "common.h"
29: #include "q117.h"
30: #include "protos.h"
31:
32:
33: STATUS
34: q117CheckDrive(
35: IN PQ117_CONTEXT Context
36: )
37:
38: /*++
39:
40: Routine Description:
41:
42: Checks the drive.
43:
44: Arguments:
45:
46: Context - what to check drive for.
47:
48: Return Value:
49:
50: function value - ioreq.status or TooNoisy
51:
52: --*/
53:
54: {
55: IO_REQUEST ioreq;
56: STATUS stat;
57:
58: //
59: // Find the drive
60: //
61:
62: stat = q117DoCmd(&ioreq, DFndDrv, NULL, Context);
63:
64: if (stat == NewCart) {
65:
66: stat = NoErr;
67:
68: }
69:
70: return(stat);
71: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.