3 /* $Id: a2091.h,v 1.4 1997/01/19 23:07:09 davem Exp $
5 * Header file for the Commodore A2091 Zorro II SCSI controller for Linux
7 * Written and (C) 1993, Hamish Macdonald, see a2091.c for more info
11 #include <linux/types.h>
13 int a2091_detect(Scsi_Host_Template
*);
14 int a2091_release(struct Scsi_Host
*);
15 const char *wd33c93_info(void);
16 int wd33c93_queuecommand(Scsi_Cmnd
*, void (*done
)(Scsi_Cmnd
*));
17 int wd33c93_abort(Scsi_Cmnd
*);
18 int wd33c93_reset(Scsi_Cmnd
*, unsigned int);
34 #define A2091_SCSI { proc_name: "A2901", \
35 name: "Commodore A2091/A590 SCSI", \
36 detect: a2091_detect, \
37 release: a2091_release, \
38 queuecommand: wd33c93_queuecommand, \
39 abort: wd33c93_abort, \
40 reset: wd33c93_reset, \
41 can_queue: CAN_QUEUE, \
43 sg_tablesize: SG_ALL, \
44 cmd_per_lun: CMD_PER_LUN, \
45 use_clustering: DISABLE_CLUSTERING }
49 * if the transfer address ANDed with this results in a non-zero
50 * result, then we can't use DMA.
52 #define A2091_XFER_MASK (0xff000001)
55 unsigned char pad1
[64];
56 volatile unsigned short ISTR
;
57 volatile unsigned short CNTR
;
58 unsigned char pad2
[60];
59 volatile unsigned int WTC
;
60 volatile unsigned long ACR
;
61 unsigned char pad3
[6];
62 volatile unsigned short DAWR
;
64 volatile unsigned char SASR
;
66 volatile unsigned char SCMD
;
67 unsigned char pad6
[76];
68 volatile unsigned short ST_DMA
;
69 volatile unsigned short SP_DMA
;
70 volatile unsigned short CINT
;
71 unsigned char pad7
[2];
72 volatile unsigned short FLUSH
;
75 #define DAWR_A2091 (3)
78 #define CNTR_TCEN (1<<7)
79 #define CNTR_PREST (1<<6)
80 #define CNTR_PDMD (1<<5)
81 #define CNTR_INTEN (1<<4)
82 #define CNTR_DDIR (1<<3)
85 #define ISTR_INTX (1<<8)
86 #define ISTR_INT_F (1<<7)
87 #define ISTR_INTS (1<<6)
88 #define ISTR_E_INT (1<<5)
89 #define ISTR_INT_P (1<<4)
90 #define ISTR_UE_INT (1<<3)
91 #define ISTR_OE_INT (1<<2)
92 #define ISTR_FF_FLG (1<<1)
93 #define ISTR_FE_FLG (1<<0)
95 #endif /* else def HOSTS_C */