KCompactDisc

wm_scsi.h
1 #ifndef WM_SCSI_H
2 #define WM_SCSI_H
3 /*
4  * This file is part of WorkMan, the civilized CD player library
5  * Copyright (C) 1991-1997 by Steven Grimm <[email protected]>
6  * Copyright (C) by Dirk Försterling <[email protected]>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  * SCSI prototypes (scsi.c)
23  *
24  * This is just one more step to a more modular and understandable code.
25  */
26 
27 #include "wm_struct.h"
28 
29 #define WM_ERR_SCSI_INQUIRY_FAILED -1
30 
31 int wm_scsi_mode_sense( struct wm_drive *d, unsigned char page,
32  unsigned char *buf );
33 int sendscsi( struct wm_drive *d, void *buf,
34  unsigned int len, int dir,
35  unsigned char a0, unsigned char a1,
36  unsigned char a2, unsigned char a3,
37  unsigned char a4, unsigned char a5,
38  unsigned char a6, unsigned char a7,
39  unsigned char a8, unsigned char a9,
40  unsigned char a10, unsigned char a11 );
41 int wm_scsi_get_drive_type( struct wm_drive *d);
42 int wm_scsi_get_cdtext( struct wm_drive *d,
43  unsigned char **pp_buffer, int *p_buffer_length );
44 int wm_scsi_set_speed( struct wm_drive *d, int read_speed );
45 
46 #endif /* WM_SCSI_H */
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 18 2021 23:23:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.