patch-1.3.5 linux/drivers/scsi/aha152x.h
Next file: linux/drivers/scsi/aha1542.c
Previous file: linux/drivers/scsi/aha152x.c
Back to the patch index
Back to the overall index
- Lines: 101
- Date:
Thu Jun 29 11:19:12 1995
- Orig file:
v1.3.4/linux/drivers/scsi/aha152x.h
- Orig date:
Sun Mar 19 12:54:09 1995
diff -u --recursive --new-file v1.3.4/linux/drivers/scsi/aha152x.h linux/drivers/scsi/aha152x.h
@@ -18,6 +18,8 @@
int aha152x_reset(Scsi_Cmnd *);
int aha152x_biosparam(Disk *, int, int*);
+extern int generic_proc_info(char *, char **, off_t, int, int, int);
+
/* number of queueable commands
(unless we support more than 1 cmd_per_lun this should do) */
#define AHA152X_MAXQUEUE 7
@@ -27,22 +29,25 @@
/* Initial value of Scsi_Host entry */
#define AHA152X { /* next */ NULL, \
/* usage_count */ NULL, \
+ generic_proc_info, \
+ "aha152x", \
+ PROC_SCSI_AHA152X, \
/* name */ AHA152X_REVID, \
/* detect */ aha152x_detect, \
/* release */ NULL, \
- /* info */ NULL, \
+ /* info */ NULL, \
/* command */ aha152x_command, \
/* queuecommand */ aha152x_queue, \
- /* abort */ aha152x_abort, \
- /* reset */ aha152x_reset, \
- /* slave_attach */ /* NULL */ 0, \
- /* bios_param */ aha152x_biosparam, \
+ /* abort */ aha152x_abort, \
+ /* reset */ aha152x_reset, \
+ /* slave_attach */ /* NULL */ 0, \
+ /* bios_param */ aha152x_biosparam, \
/* can_queue */ 1, \
- /* this_id */ 7, \
- /* sg_tablesize */ SG_ALL, \
- /* cmd_per_lun */ 1, \
- /* present */ 0, \
- /* unchecked_isa_dma */ 0, \
+ /* this_id */ 7, \
+ /* sg_tablesize */ SG_ALL, \
+ /* cmd_per_lun */ 1, \
+ /* present */ 0, \
+ /* unchecked_isa_dma */ 0, \
/* use_clustering */ DISABLE_CLUSTERING }
#endif
@@ -150,12 +155,12 @@
/* SCSI transfer count */
#define GETSTCNT() ( (GETPORT(STCNT2)<<16) \
- + (GETPORT(STCNT1)<< 8) \
- + GETPORT(STCNT0) )
+ + (GETPORT(STCNT1)<< 8) \
+ + GETPORT(STCNT0) )
#define SETSTCNT(X) { SETPORT(STCNT2, ((X) & 0xFF0000) >> 16); \
- SETPORT(STCNT1, ((X) & 0x00FF00) >> 8); \
- SETPORT(STCNT0, ((X) & 0x0000FF) ); }
+ SETPORT(STCNT1, ((X) & 0x00FF00) >> 8); \
+ SETPORT(STCNT0, ((X) & 0x0000FF) ); }
/* SCSI interrupt status */
#define TARGET 0x80
@@ -339,22 +344,22 @@
#ifdef DEBUG_AHA152X
enum {
- debug_skipports =0x0001,
- debug_queue =0x0002,
- debug_intr =0x0004,
- debug_selection =0x0008,
- debug_msgo =0x0010,
- debug_msgi =0x0020,
- debug_status =0x0040,
- debug_cmd =0x0080,
- debug_datai =0x0100,
- debug_datao =0x0200,
- debug_abort =0x0400,
- debug_done =0x0800,
- debug_biosparam =0x1000,
- debug_phases =0x2000,
- debug_queues =0x4000,
- debug_reset =0x8000,
+ debug_skipports =0x0001,
+ debug_queue =0x0002,
+ debug_intr =0x0004,
+ debug_selection =0x0008,
+ debug_msgo =0x0010,
+ debug_msgi =0x0020,
+ debug_status =0x0040,
+ debug_cmd =0x0080,
+ debug_datai =0x0100,
+ debug_datao =0x0200,
+ debug_abort =0x0400,
+ debug_done =0x0800,
+ debug_biosparam =0x1000,
+ debug_phases =0x2000,
+ debug_queues =0x4000,
+ debug_reset =0x8000,
};
#endif
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