2 * $Id: libscsi.h,v 1.10 2006/05/25 01:47:07 johnfranks 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(char *tape);
25 * This function gets the next empty slot from the changer
26 * (From this slot the tape is loaded ...)
28 int GetCurrentSlot(int fd, int drive);
31 * Eject the actual tape from the tapedrive
33 int eject_tape(char *tape, int type);
37 * is the specified slot empty?
39 int isempty(int fd, int slot);
42 * find the first empty slot
44 int find_empty(int fd, int start, int count);
47 * returns one if there is a tape loaded in the drive
49 int drive_loaded(int fd, int drivenum);
53 * unloads the drive, putting the tape in the specified slot
55 int unload(int fd, int drive, int slot);
58 * moves tape from the specified slot into the drive
60 int load(int fd, int drive, int slot);
63 * return the number of slots in the robot
65 int get_slot_count(int fd);
68 * return the number of drives in the robot
70 int get_drive_count(int fd);
72 #endif /* !LIBSCSI_H */