* better
[mascara-docs.git] / i386 / linux-2.3.21 / drivers / acorn / scsi / cumana_2.h
blob66b3740192c4817d21f10ecb0cc03a6335279a19
1 /*
2 * Cumana SCSI II driver
4 * Copyright (C) 1997-1998 Russell King
5 */
6 #ifndef CUMANA_2_H
7 #define CUMANA_2_H
9 extern int cumanascsi_2_detect (Scsi_Host_Template *);
10 extern int cumanascsi_2_release (struct Scsi_Host *);
11 extern const char *cumanascsi_2_info (struct Scsi_Host *);
12 extern int cumanascsi_2_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 SCSI_ID
28 * Default SCSI host ID
30 #define SCSI_ID 7
31 #endif
33 #include <scsi/scsicam.h>
35 #ifndef HOSTS_C
36 #include "fas216.h"
37 #endif
39 #define CUMANASCSI_2 { \
40 proc_info: cumanascsi_2_proc_info, \
41 name: "Cumana SCSI II", \
42 detect: cumanascsi_2_detect, /* detect */ \
43 release: cumanascsi_2_release, /* release */ \
44 info: cumanascsi_2_info, /* info */ \
45 command: fas216_command, /* command */ \
46 queuecommand: fas216_queue_command, /* queuecommand */ \
47 abort: fas216_abort, /* abort */ \
48 reset: fas216_reset, /* reset */ \
49 bios_param: scsicam_bios_param, /* biosparam */ \
50 can_queue: CAN_QUEUE, /* can queue */ \
51 this_id: SCSI_ID, /* scsi host id */ \
52 sg_tablesize: SG_ALL, /* sg_tablesize */ \
53 cmd_per_lun: CAN_QUEUE, /* cmd per lun */ \
54 unchecked_isa_dma: 0, /* unchecked isa dma */ \
55 use_clustering: DISABLE_CLUSTERING \
58 #ifndef HOSTS_C
60 #include <asm/dma.h>
62 #define NR_SG 256
64 typedef struct {
65 FAS216_Info info;
67 /* other info... */
68 unsigned int status; /* card status register */
69 unsigned int alatch; /* Control register */
70 unsigned int terms; /* Terminator state */
71 unsigned int dmaarea; /* Pseudo DMA area */
72 dmasg_t dmasg[NR_SG]; /* Scatter DMA list */
73 } CumanaScsi2_Info;
75 #define CSTATUS_IRQ (1 << 0)
76 #define CSTATUS_DRQ (1 << 1)
78 #endif /* HOSTS_C */
80 #endif /* CUMANASCSI_2_H */