~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kscd/libwm/include/wm_scsi.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
Import upstream version 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef WM_SCSI_H
 
2
#define WM_SCSI_H
 
3
/*
 
4
 * $Id: wm_scsi.h,v 1.1 2000/01/18 16:39:51 dfoerste Exp $
 
5
 *
 
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 
 
11
 *
 
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.
 
16
 *
 
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.
 
21
 *
 
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
 
25
 *
 
26
 * SCSI prototypes (scsi.c)
 
27
 * 
 
28
 * This is just one more step to a more modular and understandable code.
 
29
 */
 
30
 
 
31
#include "wm_struct.h" 
 
32
 
 
33
#define WM_ERR_SCSI_INQUIRY_FAILED -1
 
34
 
 
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 );
 
47
 
 
48
#endif /* WM_SCSI_H */