patch-1.3.98 linux/drivers/scsi/sg.h
Next file: linux/drivers/scsi/sr.c
Previous file: linux/drivers/scsi/sg.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Thu Jan 1 02:00:00 1970
- Orig file:
v1.3.97/linux/drivers/scsi/sg.h
- Orig date:
Thu Jun 29 11:19:13 1995
diff -u --recursive --new-file v1.3.97/linux/drivers/scsi/sg.h linux/drivers/scsi/sg.h
@@ -1,36 +0,0 @@
-/*
- History:
- Started: Aug 9 by Lawrence Foard (entropy@world.std.com), to allow user
- process control of SCSI devices.
- Development Sponsored by Killy Corp. NY NY
-*/
-
-/*
- An SG device is accessed by writing "packets" to it, the replies
- are then read using the read call. The same header is used for
- reply, just ignore reply_len field.
-*/
-
-struct sg_header
- {
- int pack_len; /* length of incoming packet <4096 (including header) */
- int reply_len; /* maximum length <4096 of expected reply */
- int pack_id; /* id number of packet */
- int result; /* 0==ok, otherwise refer to errno codes */
- unsigned int twelve_byte:1; /* Force 12 byte command length for group 6 & 7 commands */
- unsigned int other_flags:31; /* for future use */
- unsigned char sense_buffer[16]; /* used only by reads */
- /* command follows then data for command */
- };
-
-/* ioctl's */
-#define SG_SET_TIMEOUT 0x2201 /* set timeout *(int *)arg==timeout */
-#define SG_GET_TIMEOUT 0x2202 /* get timeout return timeout */
-
-#define SG_DEFAULT_TIMEOUT (60*HZ) /* 1 minute timeout */
-#define SG_DEFAULT_RETRIES 1
-
-#define SG_MAX_QUEUE 4 /* maximum outstanding request, arbitrary, may be
- changed if sufficient DMA buffer room available */
-
-#define SG_BIG_BUFF 32768
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this