Blame contrib/gsc/gscdds.h

Packit Service 392537
/*
Packit Service 392537
 * $Id: gscdds.h,v 1.1 2001/04/15 11:12:37 ant Exp $
Packit Service 392537
 * Copyright (c) 1996, 1997 by Matthew Jacob
Packit Service 392537
 *
Packit Service 392537
 *	This software is free software; you can redistribute it and/or
Packit Service 392537
 *	modify it under the terms of the GNU Library General Public
Packit Service 392537
 *	License as published by the Free Software Foundation; version 2.
Packit Service 392537
 *
Packit Service 392537
 *	This software is distributed in the hope that it will be useful,
Packit Service 392537
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 392537
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 392537
 *	Library General Public License for more details.
Packit Service 392537
 *
Packit Service 392537
 *	You should have received a copy of the GNU Library General Public
Packit Service 392537
 *	License along with this software; if not, write to the Free
Packit Service 392537
 *	Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit Service 392537
 *
Packit Service 392537
 *	The author may be reached via electronic communications at
Packit Service 392537
 *
Packit Service 392537
 *		mjacob@feral.com
Packit Service 392537
 *
Packit Service 392537
 *	or, via United States Postal Address
Packit Service 392537
 *
Packit Service 392537
 *		Matthew Jacob
Packit Service 392537
 *		1831 Castro Street
Packit Service 392537
 *		San Francisco, CA, 94131
Packit Service 392537
 */
Packit Service 392537
#ifndef	_gscdds_h
Packit Service 392537
#define	_gscdds_h
Packit Service 392537
Packit Service 392537
#ifdef	__cplusplus
Packit Service 392537
extern "C" {
Packit Service 392537
#endif
Packit Service 392537
Packit Service 392537
#define	MAX_UNITS	64
Packit Service 392537
Packit Service 392537
struct gsc_ddsinfo {
Packit Service 392537
    dev_t	busid;		/* dev_t for SCSI adapter */
Packit Service 392537
    char	target;		/* target */
Packit Service 392537
    char	lun;		/* logical unit */
Packit Service 392537
};
Packit Service 392537
Packit Service 392537
/*
Packit Service 392537
 * Structure used to convey a scsi command to the driver
Packit Service 392537
 */
Packit Service 392537
Packit Service 392537
typedef struct {
Packit Service 392537
    char *	cdb;		/* SCSI command block */
Packit Service 392537
    int 	cdblen;		/* length of SCSI command block */
Packit Service 392537
    char *	data_buf;	/* pointer to data area */
Packit Service 392537
    int		datalen;	/* length of data area. Zero implies none */
Packit Service 392537
    char *	sense_buf;	/* pointer to SENSE DATA area */
Packit Service 392537
    int		senselen;	/* length of sense area. Zero implies none */
Packit Service 392537
    char *	statusp;	/* pointer to SCSI status byte */
Packit Service 392537
    int		rw;		/* direction of data transfer- 1 means read */
Packit Service 392537
    int		timeval;	/* secs to complete cmd- 0 means infinite */
Packit Service 392537
} scmd_t;
Packit Service 392537
Packit Service 392537
Packit Service 392537
#define	GSC_CMD		(('G' << 8) | 0)
Packit Service 392537
#define	GSC_SETDBG	(('G' << 8) | 1)
Packit Service 392537
Packit Service 392537
#ifdef	__cplusplus
Packit Service 392537
}
Packit Service 392537
#endif
Packit Service 392537
#endif	/* ! _gscdds_h */
Packit Service 392537
/*
Packit Service 392537
 * mode: c
Packit Service 392537
 * Local variables:
Packit Service 392537
 * c-indent-level: 4
Packit Service 392537
 * c-brace-imaginary-offset: 0
Packit Service 392537
 * c-brace-offset: -4
Packit Service 392537
 * c-argdecl-indent: 4
Packit Service 392537
 * c-label-offset: -4
Packit Service 392537
 * c-continued-statement-offset: 4
Packit Service 392537
 * c-continued-brace-offset: 0
Packit Service 392537
 * End:
Packit Service 392537
 */