User manual
152
//Beginning of tape detected
TAPE_STS_BOT = 0x0001 << 5,
//End of recorded data detected, position lost
TAPE_STS_EOD = 0x0001 << 6,
};
Note:
-
it is recommended to check write protected status and online status by tape
controller before command initiation and after command completion;
-
TAPE_CMD_STATUS command refreshes write protected status and online status in
tape transport and returns TAPE_STS_OK, but they automatically refreshed in case
of TAPE_STS_BTE respond to another commands;
-
TAPE_CMD_ONLINE means nothing;
-
TAPE_CMD_OFFLINE just doing rewind;
-
CHAPI TSV05 under unload condition issue TAPE_CMD_OFFLINE command;
-
DO NOT initiate NEXT tape transport command before PREVIOUS tape transport
command completion;
-
In implemented tape transports library value “-20” for second parameter in void
setup(void * param, int arg) is reserved for internal use;
CHAPI disk controller’s methods
CHAPI disk controller’s methods described in class chapi_disk_device_iface, so all CHAPI
disk controllers’ classes must be derived from the class chapi_disk_device_iface.
struct CHAPI_DISK_DRIVE_GEOM {
unsigned long cylinders_per_disk;
unsigned long tracks_per_cylinder;
unsigned long sectors_per_track;
unsigned long bytes_per_sector;
};
Structure definition to containing disk geometry.
struct CHAPI_DISK_DRIVE_POS {
unsigned long volatile cylinder_num;
unsigned long volatile track_num;
unsigned long volatile sector_num;










