summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/NCR53c406a.h
blob: 0ef6c67ba6a758e824d82b0b751077f168d60b7f (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef _NCR53C406A_H
#define _NCR53C406A_H

/*
 *  NCR53c406a.h
 * 
 *  Copyright (C) 1994 Normunds Saumanis (normunds@rx.tech.swh.lv)
 *
 *  This program is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License as published by the
 *  Free Software Foundation; either version 2, or (at your option) any
 *  later version.
 *
 *  This program is distributed in the hope that it will be useful, but
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  General Public License for more details.
 *
 */

#ifndef NULL
#define NULL 0
#endif

/* NOTE:  scatter-gather support only works in PIO mode.
 * Use SG_NONE if DMA mode is enabled!
 */
#define NCR53c406a { \
     proc_name:         "NCR53c406a"		/* proc_name */,        \
     name:              "NCR53c406a"		/* name */,             \
     detect:            NCR53c406a_detect	/* detect */,           \
     info:              NCR53c406a_info		/* info */,             \
     command:           NCR53c406a_command	/* command */,          \
     queuecommand:      NCR53c406a_queue	/* queuecommand */,     \
     abort:             NCR53c406a_abort	/* abort */,            \
     reset:             NCR53c406a_reset	/* reset */,            \
     bios_param:        NCR53c406a_biosparm	/* biosparm */,         \
     can_queue:         1			/* can_queue */,        \
     this_id:           7			/* SCSI ID of the chip */, \
     sg_tablesize:      32			/*SG_ALL*/ /*SG_NONE*/, \
     cmd_per_lun:       1			/* commands per lun */, \
     unchecked_isa_dma: 1			/* unchecked_isa_dma */, \
     use_clustering:    ENABLE_CLUSTERING                               \
}

int NCR53c406a_detect(Scsi_Host_Template *);
const char* NCR53c406a_info(struct Scsi_Host *);

int NCR53c406a_command(Scsi_Cmnd *);
int NCR53c406a_queue(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int NCR53c406a_abort(Scsi_Cmnd *);
int NCR53c406a_reset(Scsi_Cmnd *, unsigned int);
int NCR53c406a_biosparm(Disk *, kdev_t, int []);

#endif /* _NCR53C406A_H */

/*
 * Overrides for Emacs so that we get a uniform tabbing style.
 * Emacs will notice this stuff at the end of the file and automatically
 * adjust the settings for this buffer only.  This must remain at the end
 * of the file.
 * ---------------------------------------------------------------------------
 * Local variables:
 * c-indent-level: 4
 * c-brace-imaginary-offset: 0
 * c-brace-offset: -4
 * c-argdecl-indent: 4
 * c-label-offset: -4
 * c-continued-statement-offset: 4
 * c-continued-brace-offset: 0
 * indent-tabs-mode: nil
 * tab-width: 8
 * End:
 */