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
|
/* sparc_esp.h: Defines and structures for the Sparc ESP (Enhanced SCSI
¤ * Processor) driver under Linux.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/
#ifndef _SPARC_ESP_H
#define _SPARC_ESP_H
/* For dvma controller register definitions. */
#include <asm/dma.h>
extern int 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_SPARC_ESP { \
/* struct SHT *next */ NULL, \
/* long *usage_count */ NULL, \
/* struct proc_dir_entry *proc_dir */ &proc_scsi_esp, \
/* int (*proc_info)(char *, char **, off_t, int, int, int) */ &esp_proc_info, \
/* const char *name */ "Sun ESP 100/100a/200", \
/* int detect(struct SHT *) */ esp_detect, \
/* int release(struct Scsi_Host *) */ NULL, \
/* const char *info(struct Scsi_Host *) */ esp_info, \
/* int command(Scsi_Cmnd *) */ esp_command, \
/* int queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)) */ esp_queue, \
/* int abort(Scsi_Cmnd *) */ esp_abort, \
/* int reset(Scsi_Cmnd *, int) */ esp_reset, \
/* int slave_attach(int, int) */ NULL, \
/* int bios_param(Disk *, kdev_t, int[]) */ NULL, \
/* int can_queue */ 7, \
/* int this_id */ 7, \
/* short unsigned int sg_tablesize */ SG_ALL, \
/* short cmd_per_lun */ 1, \
/* unsigned char present */ 0, \
/* unsigned unchecked_isa_dma:1 */ 0, \
/* unsigned use_clustering:1 */ DISABLE_CLUSTERING, }
#endif /* !(_SPARC_ESP_H) */
|