diff options
Diffstat (limited to 'drivers/scsi/sun3x_esp.h')
-rw-r--r-- | drivers/scsi/sun3x_esp.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/scsi/sun3x_esp.h b/drivers/scsi/sun3x_esp.h new file mode 100644 index 000000000..e00cd850d --- /dev/null +++ b/drivers/scsi/sun3x_esp.h @@ -0,0 +1,41 @@ +/* sun3x_esp.h: Defines and structures for the Sun3x ESP + * + * (C) 1995 Thomas Bogendoerfer (tsbogend@alpha.franken.de) + */ + +#ifndef _SUN3X_ESP_H +#define _SUN3X_ESP_H + +/* For dvma controller register definitions. */ +#include <asm/dvma.h> + +extern int sun3x_esp_detect(struct SHT *); +extern const char *esp_info(struct Scsi_Host *); +extern int esp_queue(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); +extern int esp_command(Scsi_Cmnd *); +extern int esp_abort(Scsi_Cmnd *); +extern int esp_reset(Scsi_Cmnd *, unsigned int); +extern int esp_proc_info(char *buffer, char **start, off_t offset, int length, + int hostno, int inout); + +extern struct proc_dir_entry proc_scsi_esp; + +#define DMA_PORTS_P (dregs->cond_reg & DMA_INT_ENAB) + +#define SCSI_SUN3X_ESP { \ + proc_dir: &proc_scsi_esp, \ + proc_info: &esp_proc_info, \ + name: "Sun ESP 100/100a/200", \ + detect: sun3x_esp_detect, \ + info: esp_info, \ + command: esp_command, \ + queuecommand: esp_queue, \ + abort: esp_abort, \ + reset: esp_reset, \ + can_queue: 7, \ + this_id: 7, \ + sg_tablesize: SG_ALL, \ + cmd_per_lun: 1, \ + use_clustering: DISABLE_CLUSTERING, } + +#endif /* !(_SUN3X_ESP_H) */ |