Linux 2.4.0-test7pre1
[davej-history.git] / drivers / scsi / wd7000.h
blobd941fdf2ce28797329a9aa5127a453f3bf6d31a8
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 int wd7000_set_info (char *buffer, int length, struct Scsi_Host *host);
18 int wd7000_proc_info (char *buffer, char **start, off_t offset, int length, int hostno, int inout);
19 int wd7000_detect (Scsi_Host_Template *);
20 int wd7000_command (Scsi_Cmnd *);
21 int wd7000_queuecommand (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
22 int wd7000_abort (Scsi_Cmnd *);
23 int wd7000_reset (Scsi_Cmnd *, unsigned int);
24 int wd7000_biosparam (Disk *, kdev_t, int *);
26 #ifndef NULL
27 #define NULL 0L
28 #endif
31 * In this version, sg_tablesize now defaults to WD7000_SG, and will
32 * be set to SG_NONE for older boards. This is the reverse of the
33 * previous default, and was changed so that the driver-level
34 * Scsi_Host_Template would reflect the driver's support for scatter/
35 * gather.
37 * Also, it has been reported that boards at Revision 6 support scatter/
38 * gather, so the new definition of an "older" board has been changed
39 * accordingly.
41 #define WD7000_Q 16
42 #define WD7000_SG 16
44 #define WD7000 { \
45 proc_name: "wd7000", \
46 proc_info: wd7000_proc_info, \
47 name: "Western Digital WD-7000", \
48 detect: wd7000_detect, \
49 command: wd7000_command, \
50 queuecommand: wd7000_queuecommand, \
51 abort: wd7000_abort, \
52 reset: wd7000_reset, \
53 bios_param: wd7000_biosparam, \
54 can_queue: WD7000_Q, \
55 this_id: 7, \
56 sg_tablesize: WD7000_SG, \
57 cmd_per_lun: 1, \
58 unchecked_isa_dma: 1, \
59 use_clustering: ENABLE_CLUSTERING, \
60 use_new_eh_code: 0 \
62 #endif