2 * $Id: libscsi.h,v 1.4.4.4.4.1 2001/07/10 22:03:14 jrjackson Exp $
4 * libscsi.h -- library header for routines to handle the changer
5 * support for chio based systems
7 * Author: Eric Schnoebelen, eric@cirr.com
8 * based on work by: Larry Pyeatt, pyeatt@cs.colostate.edu
9 * Copyright: 1997, Eric Schnoebelen
11 * Michael C. Povel 03.06.98 added function eject_tape
20 * This function gets the actual cleaning state of the drive
22 int get_clean_state P((char *tape));
25 * This function gets the next empty slot from the changer
26 * (From this slot the tape is loaded ...)
28 int GetCurrentSlot P((int fd, int drive));
31 * Eject the actual tape from the tapedrive
33 void eject_tape P((char *tape, int type));
37 * is the specified slot empty?
39 int isempty P((int fd, int slot));
42 * find the first empty slot
44 int find_empty P((int fd, int start, int count));
47 * returns one if there is a tape loaded in the drive
49 int drive_loaded P((int fd, int drivenum));
53 * unloads the drive, putting the tape in the specified slot
55 int unload P((int fd, int drive, int slot));
58 * moves tape from the specified slot into the drive
60 int load P((int fd, int drive, int slot));
63 * return the number of slots in the robot
65 int get_slot_count P((int fd));
68 * return the number of drives in the robot
70 int get_drive_count P((int fd));
72 #endif /* !LIBSCSI_H */