2 * $Id: gscdds.h,v 1.1 2001/04/15 11:12:37 ant Exp $
3 * Copyright (c) 1996, 1997 by Matthew Jacob
5 * This software is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; version 2.
9 * This software is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this software; if not, write to the Free
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 * The author may be reached via electronic communications at
22 * or, via United States Postal Address
26 * San Francisco, CA, 94131
38 dev_t busid; /* dev_t for SCSI adapter */
39 char target; /* target */
40 char lun; /* logical unit */
44 * Structure used to convey a scsi command to the driver
48 char * cdb; /* SCSI command block */
49 int cdblen; /* length of SCSI command block */
50 char * data_buf; /* pointer to data area */
51 int datalen; /* length of data area. Zero implies none */
52 char * sense_buf; /* pointer to SENSE DATA area */
53 int senselen; /* length of sense area. Zero implies none */
54 char * statusp; /* pointer to SCSI status byte */
55 int rw; /* direction of data transfer- 1 means read */
56 int timeval; /* secs to complete cmd- 0 means infinite */
60 #define GSC_CMD (('G' << 8) | 0)
61 #define GSC_SETDBG (('G' << 8) | 1)
66 #endif /* ! _gscdds_h */
71 * c-brace-imaginary-offset: 0
75 * c-continued-statement-offset: 4
76 * c-continued-brace-offset: 0