summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/dc390.h
blob: 88ae90f28d38f64b85a0638b32037ebf3ea31816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/***********************************************************************
 *	FILE NAME : DC390.H					       *
 *	     BY   : C.L. Huang					       *
 *	Description: Device Driver for Tekram DC-390(T) PCI SCSI       *
 *		     Bus Master Host Adapter			       *
 ***********************************************************************/

#include <linux/version.h>

/*
 * AMD 53C974 driver, header file
 */

#ifndef DC390_H
#define DC390_H

#if defined(HOSTS_C) || defined(MODULE)

#include <scsi/scsicam.h>

extern int DC390_detect(Scsi_Host_Template *psht);
extern int DC390_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *));
extern int DC390_abort(Scsi_Cmnd *cmd);
extern int DC390_reset(Scsi_Cmnd *cmd, unsigned int resetFlags);
extern int DC390_bios_param(Disk *disk, kdev_t devno, int geom[]);

#ifdef MODULE
static int DC390_release(struct Scsi_Host *);
#else
# define DC390_release NULL
#endif

extern struct proc_dir_entry proc_scsi_tmscsim;
extern int tmscsim_proc_info(char *buffer, char **start, off_t offset, int length, int hostno, int inout);

#define DC390_T    {			          \
   proc_dir:       &proc_scsi_tmscsim,            \
   proc_info:      tmscsim_proc_info,             \
   name:           "Tekram DC390(T) V1.12 Feb-25-1998",\
   detect:         DC390_detect,   		  \
   release:        DC390_release,		  \
   queuecommand:   DC390_queue_command,	          \
   abort:          DC390_abort,    		  \
   reset:          DC390_reset,    		  \
   bios_param:     DC390_bios_param,		  \
   can_queue:      10,                 	          \
   this_id:        7,                             \
   sg_tablesize:   SG_ALL,            		  \
   cmd_per_lun:    2,                 		  \
   use_clustering: DISABLE_CLUSTERING 		  \
   }

#endif /* defined(HOSTS_C) || defined(MODULE) */

#endif /* DC390_H */