Revert last change. Bug noticed by Linus.
[linux-2.6/linux-mips.git] / drivers / acorn / scsi / eesox.h
blob05433fd6b14f6b5e1a39fb2c3cff20185cc6afb8
1 /*
2 * EESOX SCSI driver
4 * Copyright (C) 1997-2000 Russell King
5 */
6 #ifndef EESOXSCSI_H
7 #define EESOXSCSI_H
9 extern int eesoxscsi_detect (Scsi_Host_Template *);
10 extern int eesoxscsi_release (struct Scsi_Host *);
11 extern const char *eesoxscsi_info (struct Scsi_Host *);
12 extern int eesoxscsi_proc_info (char *buffer, char **start, off_t offset,
13 int length, int hostno, int inout);
15 #ifndef NULL
16 #define NULL ((void *)0)
17 #endif
19 #ifndef CAN_QUEUE
21 * Default queue size
23 #define CAN_QUEUE 1
24 #endif
26 #ifndef CMD_PER_LUN
27 #define CMD_PER_LUN 1
28 #endif
30 #ifndef SCSI_ID
32 * Default SCSI host ID
34 #define SCSI_ID 7
35 #endif
37 #include <scsi/scsicam.h>
39 #include "fas216.h"
41 #define EESOXSCSI { \
42 proc_info: eesoxscsi_proc_info, \
43 name: "EESOX SCSI", \
44 detect: eesoxscsi_detect, \
45 release: eesoxscsi_release, \
46 info: eesoxscsi_info, \
47 bios_param: scsicam_bios_param, \
48 can_queue: CAN_QUEUE, \
49 this_id: SCSI_ID, \
50 sg_tablesize: SG_ALL, \
51 cmd_per_lun: CAN_QUEUE, \
52 use_clustering: DISABLE_CLUSTERING, \
53 command: fas216_command, \
54 queuecommand: fas216_queue_command, \
55 eh_host_reset_handler: fas216_eh_host_reset, \
56 eh_bus_reset_handler: fas216_eh_bus_reset, \
57 eh_device_reset_handler: fas216_eh_device_reset, \
58 eh_abort_handler: fas216_eh_abort, \
59 use_new_eh_code: 1 \
62 #ifndef HOSTS_C
64 #include <asm/dma.h>
66 #define NR_SG 256
68 struct control {
69 unsigned int io_port;
70 unsigned int control;
73 typedef struct {
74 FAS216_Info info;
76 struct control control;
78 unsigned int dmaarea; /* Pseudo DMA area */
79 dmasg_t dmasg[NR_SG]; /* Scatter DMA list */
80 } EESOXScsi_Info;
82 #endif /* HOSTS_C */
84 #endif /* EESOXSCSI_H */