patch-2.2.14 linux/drivers/scsi/gdth_ioctl.h
Next file: linux/drivers/scsi/gdth_proc.c
Previous file: linux/drivers/scsi/gdth.h
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
Tue Jan 4 10:12:20 2000
- Orig file:
v2.2.13/linux/drivers/scsi/gdth_ioctl.h
- Orig date:
Mon Jan 11 10:17:20 1999
diff -u --recursive --new-file v2.2.13/linux/drivers/scsi/gdth_ioctl.h linux/drivers/scsi/gdth_ioctl.h
@@ -2,7 +2,7 @@
#define _GDTH_IOCTL_H
/* gdth_ioctl.h
- * $Id: gdth_ioctl.h,v 1.2 1998/12/17 15:42:49 achim Exp $
+ * $Id: gdth_ioctl.h,v 1.3 1999/05/26 11:49:57 achim Exp $
*/
/* IOCTLs */
@@ -11,10 +11,13 @@
#define GDTIOCTL_DRVERS (GDTIOCTL_MASK | 1) /* get driver version */
#define GDTIOCTL_CTRTYPE (GDTIOCTL_MASK | 2) /* get controller type */
#define GDTIOCTL_OSVERS (GDTIOCTL_MASK | 3) /* get OS version */
+#define GDTIOCTL_HDRLIST (GDTIOCTL_MASK | 4) /* get host drive list */
#define GDTIOCTL_CTRCNT (GDTIOCTL_MASK | 5) /* get controller count */
#define GDTIOCTL_LOCKDRV (GDTIOCTL_MASK | 6) /* lock host drive */
#define GDTIOCTL_LOCKCHN (GDTIOCTL_MASK | 7) /* lock channel */
#define GDTIOCTL_EVENT (GDTIOCTL_MASK | 8) /* read controller events */
+#define GDTIOCTL_SCSI (GDTIOCTL_MASK | 9) /* SCSI command */
+#define GDTIOCTL_RESET_BUS (GDTIOCTL_MASK |10) /* reset SCSI bus */
#define GDTIOCTL_MAGIC 0xaffe0001UL
@@ -45,6 +48,13 @@
int handle;
unchar evt[34]; /* event structure */
} event;
+ struct {
+ unchar bus; /* SCSI bus */
+ unchar target; /* target ID */
+ unchar lun; /* LUN */
+ unchar cmd_len; /* command length */
+ unchar cmd[12]; /* SCSI command */
+ } scsi;
} iu;
} gdth_iowr_str;
@@ -79,6 +89,12 @@
int handle;
unchar evt[34]; /* event structure */
} event;
+ struct {
+ unchar bus; /* SCSI bus, 0xff: invalid */
+ unchar target; /* target ID */
+ unchar lun; /* LUN */
+ unchar cluster_type; /* cluster properties */
+ } hdr_list[35]; /* index is host drive number */
} iu;
} gdth_iord_str;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)