Import 2.3.18pre1
[davej-history.git] / drivers / scsi / sun3x_esp.h
blobe00cd850d1deb61a8fb5f92dece4fbd90f591480
1 /* sun3x_esp.h: Defines and structures for the Sun3x ESP
3 * (C) 1995 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
4 */
6 #ifndef _SUN3X_ESP_H
7 #define _SUN3X_ESP_H
9 /* For dvma controller register definitions. */
10 #include <asm/dvma.h>
12 extern int sun3x_esp_detect(struct SHT *);
13 extern const char *esp_info(struct Scsi_Host *);
14 extern int esp_queue(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
15 extern int esp_command(Scsi_Cmnd *);
16 extern int esp_abort(Scsi_Cmnd *);
17 extern int esp_reset(Scsi_Cmnd *, unsigned int);
18 extern int esp_proc_info(char *buffer, char **start, off_t offset, int length,
19 int hostno, int inout);
21 extern struct proc_dir_entry proc_scsi_esp;
23 #define DMA_PORTS_P (dregs->cond_reg & DMA_INT_ENAB)
25 #define SCSI_SUN3X_ESP { \
26 proc_dir: &proc_scsi_esp, \
27 proc_info: &esp_proc_info, \
28 name: "Sun ESP 100/100a/200", \
29 detect: sun3x_esp_detect, \
30 info: esp_info, \
31 command: esp_command, \
32 queuecommand: esp_queue, \
33 abort: esp_abort, \
34 reset: esp_reset, \
35 can_queue: 7, \
36 this_id: 7, \
37 sg_tablesize: SG_ALL, \
38 cmd_per_lun: 1, \
39 use_clustering: DISABLE_CLUSTERING, }
41 #endif /* !(_SUN3X_ESP_H) */