update atp870u driver to 0.78 from D-Link source
[linux-2.4.git] / drivers / scsi / sym53c416.h
1 /*
2  *  sym53c416.h
3  * 
4  *  Copyright (C) 1998 Lieven Willems (lw_linux@hotmail.com)
5  *
6  *  This program is free software; you can redistribute it and/or modify it
7  *  under the terms of the GNU General Public License as published by the
8  *  Free Software Foundation; either version 2, or (at your option) any
9  *  later version.
10  *
11  *  This program is distributed in the hope that it will be useful, but
12  *  WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *  General Public License for more details.
15  *
16  */
17
18 #ifndef _SYM53C416_H
19 #define _SYM53C416_H
20
21 #if !defined(LINUX_VERSION_CODE)
22 #include <linux/version.h>
23 #endif
24
25 #ifndef LinuxVersionCode
26 #define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s))
27 #endif
28
29 #include <linux/types.h>
30 #include <linux/kdev_t.h>
31
32 #define SYM53C416_SCSI_ID 7
33
34 static int sym53c416_detect(Scsi_Host_Template *);
35 static const char *sym53c416_info(struct Scsi_Host *);
36 static int sym53c416_command(Scsi_Cmnd *);
37 static int sym53c416_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
38 static int sym53c416_abort(Scsi_Cmnd *);
39 static int sym53c416_reset(Scsi_Cmnd *, unsigned int);
40 static int sym53c416_bios_param(Disk *, kdev_t, int *);
41 static void sym53c416_setup(char *str, int *ints);
42
43 #define SYM53C416 {                                          \
44                   proc_name:         "sym53c416",   \
45                   name:              "Symbios Logic 53c416", \
46                   detect:            sym53c416_detect,       \
47                   info:              sym53c416_info,         \
48                   command:           sym53c416_command,      \
49                   queuecommand:      sym53c416_queuecommand, \
50                   abort:             sym53c416_abort,        \
51                   reset:             sym53c416_reset,        \
52                   bios_param:        sym53c416_bios_param,   \
53                   can_queue:         1,                      \
54                   this_id:           SYM53C416_SCSI_ID,      \
55                   sg_tablesize:      32,                     \
56                   cmd_per_lun:       1,                      \
57                   unchecked_isa_dma: 1,                      \
58                   use_clustering:    ENABLE_CLUSTERING       \
59                   }
60 #endif