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