- Kai Germaschewski: ISDN update (including Makefiles)
[davej-history.git] / drivers / scsi / cyberstormII.h
blobc328b8bbb8b00ccfd539893bee90ee2a6b6e1f32
1 /* cyberstormII.h: Defines and structures for the CyberStorm SCSI Mk II driver.
3 * Copyright (C) 1996 Jesper Skov (jskov@cygnus.co.uk)
4 */
6 #include "NCR53C9x.h"
8 #ifndef CYBERII_ESP_H
9 #define CYBERII_ESP_H
11 /* The controller registers can be found in the Z2 config area at these
12 * offsets:
14 #define CYBERII_ESP_ADDR 0x1ff03
15 #define CYBERII_DMA_ADDR 0x1ff43
18 /* The CyberStorm II DMA interface */
19 struct cyberII_dma_registers {
20 volatile unsigned char cond_reg; /* DMA cond (ro) [0x000] */
21 #define ctrl_reg cond_reg /* DMA control (wo) [0x000] */
22 unsigned char dmapad4[0x3f];
23 volatile unsigned char dma_addr0; /* DMA address (MSB) [0x040] */
24 unsigned char dmapad1[3];
25 volatile unsigned char dma_addr1; /* DMA address [0x044] */
26 unsigned char dmapad2[3];
27 volatile unsigned char dma_addr2; /* DMA address [0x048] */
28 unsigned char dmapad3[3];
29 volatile unsigned char dma_addr3; /* DMA address (LSB) [0x04c] */
32 /* DMA control bits */
33 #define CYBERII_DMA_LED 0x02 /* HD led control 1 = on */
36 extern int cyberII_esp_detect(struct SHT *);
37 extern int cyberII_esp_release(struct Scsi_Host *);
38 extern const char *esp_info(struct Scsi_Host *);
39 extern int esp_queue(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
40 extern int esp_command(Scsi_Cmnd *);
41 extern int esp_abort(Scsi_Cmnd *);
42 extern int esp_reset(Scsi_Cmnd *, unsigned int);
43 extern int esp_proc_info(char *buffer, char **start, off_t offset, int length,
44 int hostno, int inout);
46 #define SCSI_CYBERSTORMII { proc_name: "esp-cyberstormII", \
47 proc_info: esp_proc_info, \
48 name: "CyberStorm Mk II SCSI", \
49 detect: cyberII_esp_detect, \
50 release: cyberII_esp_release, \
51 queuecommand: esp_queue, \
52 abort: esp_abort, \
53 reset: esp_reset, \
54 can_queue: 7, \
55 this_id: 7, \
56 sg_tablesize: SG_ALL, \
57 cmd_per_lun: 1, \
58 use_clustering: ENABLE_CLUSTERING }
60 #endif /* CYBERII_ESP_H */