00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 #define QIC_XX     0   // ????
00032 #define QIC_24     5   // 0x05
00033 #define QIC_120    15  // 0x0F
00034 #define QIC_150    16  // 0x10
00035 #define QIC_525    17  // 0x11
00036 #define QIC_1350   18  // 0x12
00037 #define QIC_1000   21  // 0x15
00038 #define QIC_1000C  30  // 0x1E
00039 #define QIC_2100   31  // 0x1F
00040 #define QIC_2GB    34  // 0x22
00041 #define QIC_5GB    40  // 0x28
00042 
00043 
00044 
00045 
00046 
00047 #define DCXXXX   0
00048 #define DC300    1
00049 #define DC300XLP 2
00050 #define DC615    3
00051 #define DC600    4
00052 #define DC6037   5
00053 #define DC6150   6
00054 #define DC6250   7
00055 #define DC6320   8
00056 #define DC6525   9
00057 #define DC9135SL 33  //0x21
00058 #define DC9210   34  //0x22
00059 #define DC9135   35  //0x23
00060 #define DC9100   36  //0x24
00061 #define DC9120   37  //0x25
00062 #define DC9120SL 38  //0x26
00063 #define DC9164   39  //0x27
00064 #define DCXXXXFW 48  //0x30
00065 #define DC9200SL 49  //0x31
00066 #define DC9210XL 50  //0x32
00067 #define DC10GB   51  //0x33
00068 #define DC9200   52  //0x34
00069 #define DC9120XL 53  //0x35
00070 #define DC9210SL 54  //0x36
00071 #define DC9164XL 55  //0x37
00072 #define DC9200XL 64  //0x40
00073 #define DC9400   65  //0x41
00074 #define DC9500   66  //0x42
00075 #define DC9500SL 70  //0x46
00076 
00077 
00078 
00079 
00080 
00081 #define NOT_FROM_BOT 0
00082 #define FROM_BOT 1
00083 
00084 
00085 
00086 
00087 
00088 
00089 typedef struct _TAPE_PHYS_POSITION {
00090     ULONG 
SeekBlockAddress;
00091     ULONG 
SpaceBlockCount;
00092 } 
TAPE_PHYS_POSITION, 
PTAPE_PHYS_POSITION;
00093 
00094 
00095 
00096 
00097 
00098 
TAPE_PHYS_POSITION
00099 
TapeClassLogicalBlockToPhysicalBlock(
00100     IN UCHAR DensityCode,
00101     IN ULONG LogicalBlockAddress,
00102     IN ULONG BlockLength,
00103     IN BOOLEAN FromBOT
00104     );
00105 
00106 ULONG
00107 
TapeClassPhysicalBlockToLogicalBlock(
00108     IN UCHAR DensityCode,
00109     IN ULONG PhysicalBlockAddress,
00110     IN ULONG BlockLength,
00111     IN BOOLEAN FromBOT
00112     );
00113 
00114