File indexing completed on 2024-04-28 08:46:53

0001 #ifndef WM_SCSI_H
0002 #define WM_SCSI_H
0003 /*
0004  * This file is part of WorkMan, the civilized CD player library
0005  * Copyright (C) 1991-1997 by Steven Grimm <koreth@midwinter.com>
0006  * Copyright (C) by Dirk Försterling <milliByte@DeathsDoor.com>
0007  *
0008  * This library is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU Library General Public
0010  * License as published by the Free Software Foundation; either
0011  * version 2 of the License, or (at your option) any later version.
0012  *
0013  * This library is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016  * Library General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU Library General Public
0019  * License along with this library; if not, write to the Free
0020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0021  *
0022  * SCSI prototypes (scsi.c)
0023  *
0024  * This is just one more step to a more modular and understandable code.
0025  */
0026 
0027 #include "wm_struct.h"
0028 
0029 #define WM_ERR_SCSI_INQUIRY_FAILED -1
0030 
0031 int wm_scsi_mode_sense( struct wm_drive *d, unsigned char page,
0032                 unsigned char *buf );
0033 int sendscsi( struct wm_drive *d, void *buf,
0034           unsigned int len, int dir,
0035           unsigned char a0, unsigned char a1,
0036           unsigned char a2, unsigned char a3,
0037           unsigned char a4, unsigned char a5,
0038           unsigned char a6, unsigned char a7,
0039           unsigned char a8, unsigned char a9,
0040           unsigned char a10, unsigned char a11 );
0041 int wm_scsi_get_drive_type( struct wm_drive *d);
0042 int wm_scsi_get_cdtext( struct wm_drive *d,
0043     unsigned char **pp_buffer, int *p_buffer_length );
0044 int wm_scsi_set_speed( struct wm_drive *d, int read_speed );
0045 
0046 #endif /* WM_SCSI_H */