Import 2.3.18pre1
[davej-history.git] / drivers / scsi / wd7000.h
blob73679c24a4da4fd8f82667854451ec644acf4257
1 #ifndef _WD7000_H
3 /* $Id: $
5 * Header file for the WD-7000 driver for Linux
7 * John Boyd <boyd@cis.ohio-state.edu> Jan 1994:
8 * This file has been reduced to only the definitions needed for the
9 * WD7000 host structure.
11 * Revision by Miroslav Zagorac <zaga@fly.cc.fer.hr> Jun 1997.
14 #include <linux/types.h>
15 #include <linux/kdev_t.h>
17 extern struct proc_dir_entry proc_scsi_wd7000;
20 int wd7000_set_info (char *buffer, int length, struct Scsi_Host *host);
21 int wd7000_proc_info (char *buffer, char **start, off_t offset, int length, int hostno, int inout);
22 int wd7000_detect (Scsi_Host_Template *);
23 int wd7000_command (Scsi_Cmnd *);
24 int wd7000_queuecommand (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
25 int wd7000_abort (Scsi_Cmnd *);
26 int wd7000_reset (Scsi_Cmnd *, unsigned int);
27 int wd7000_biosparam (Disk *, kdev_t, int *);
29 #ifndef NULL
30 #define NULL 0L
31 #endif
34 * In this version, sg_tablesize now defaults to WD7000_SG, and will
35 * be set to SG_NONE for older boards. This is the reverse of the
36 * previous default, and was changed so that the driver-level
37 * Scsi_Host_Template would reflect the driver's support for scatter/
38 * gather.
40 * Also, it has been reported that boards at Revision 6 support scatter/
41 * gather, so the new definition of an "older" board has been changed
42 * accordingly.
44 #define WD7000_Q 16
45 #define WD7000_SG 16
47 #define WD7000 { \
48 proc_dir: &proc_scsi_wd7000, \
49 proc_info: wd7000_proc_info, \
50 name: "Western Digital WD-7000", \
51 detect: wd7000_detect, \
52 command: wd7000_command, \
53 queuecommand: wd7000_queuecommand, \
54 abort: wd7000_abort, \
55 reset: wd7000_reset, \
56 bios_param: wd7000_biosparam, \
57 can_queue: WD7000_Q, \
58 this_id: 7, \
59 sg_tablesize: WD7000_SG, \
60 cmd_per_lun: 1, \
61 unchecked_isa_dma: 1, \
62 use_clustering: ENABLE_CLUSTERING, \
63 use_new_eh_code: 0 \
65 #endif