wmmisc: Bump to version 1.2.
[dockapps.git] / ascd / libworkman / include / wm_scsi.h
blob4bf84fce09661a635c179879d2b5a47a623d71f5
1 #ifndef WM_SCSI_H
2 #define WM_SCSI_H
3 /*
4 * $Id: wm_scsi.h,v 1.3 1999/02/14 09:50:47 dirk Exp $
6 * This file is part of WorkMan, the civilized CD player library
7 * (c) 1991-1997 by Steven Grimm (original author)
8 * (c) by Dirk Försterling (current 'author' = maintainer)
9 * The maintainer can be contacted by his e-mail address:
10 * milliByte@DeathsDoor.com
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 * SCSI prototypes (scsi.c)
28 * This is just one more step to a more modular and understandable code.
31 #include "wm_struct.h"
33 #define WM_ERR_SCSI_INQUIRY_FAILED -1
35 int wm_scsi_mode_sense( struct wm_drive *d, unsigned char page,
36 unsigned char *buf );
37 int sendscsi( struct wm_drive *d, void *buf,
38 unsigned int len, int dir,
39 unsigned char a0, unsigned char a1,
40 unsigned char a2, unsigned char a3,
41 unsigned char a4, unsigned char a5,
42 unsigned char a6, unsigned char a7,
43 unsigned char a8, unsigned char a9,
44 unsigned char a10, unsigned char a11 );
45 int wm_scsi_get_drive_type( struct wm_drive *d, char *vendor,
46 char *model, char *rev );
48 #endif /* WM_SCSI_H */