3 /* $Id: gvp11.h,v 1.4 1997/01/19 23:07:12 davem Exp $
5 * Header file for the GVP Series II SCSI controller for Linux
7 * Written and (C) 1993, Ralf Baechle, see gvp11.c for more info
8 * based on a2091.h (C) 1993 by Hamish Macdonald
12 #include <linux/types.h>
14 int gvp11_detect(Scsi_Host_Template
*);
15 int gvp11_release(struct Scsi_Host
*);
16 const char *wd33c93_info(void);
17 int wd33c93_queuecommand(Scsi_Cmnd
*, void (*done
)(Scsi_Cmnd
*));
18 int wd33c93_abort(Scsi_Cmnd
*);
19 int wd33c93_reset(Scsi_Cmnd
*, unsigned int);
35 #define GVP11_SCSI { proc_name: "GVP11", \
36 name: "GVP Series II SCSI", \
37 detect: gvp11_detect, \
38 release: gvp11_release, \
39 queuecommand: wd33c93_queuecommand, \
40 abort: wd33c93_abort, \
41 reset: wd33c93_reset, \
42 can_queue: CAN_QUEUE, \
44 sg_tablesize: SG_ALL, \
45 cmd_per_lun: CMD_PER_LUN, \
46 use_clustering: DISABLE_CLUSTERING }
50 * if the transfer address ANDed with this results in a non-zero
51 * result, then we can't use DMA.
53 #define GVP11_XFER_MASK (0xff000001)
56 unsigned char pad1
[64];
57 volatile unsigned short CNTR
;
58 unsigned char pad2
[31];
59 volatile unsigned char SASR
;
61 volatile unsigned char SCMD
;
62 unsigned char pad4
[4];
63 volatile unsigned short BANK
;
64 unsigned char pad5
[6];
65 volatile unsigned long ACR
;
66 volatile unsigned short secret1
; /* store 0 here */
67 volatile unsigned short ST_DMA
;
68 volatile unsigned short SP_DMA
;
69 volatile unsigned short secret2
; /* store 1 here */
70 volatile unsigned short secret3
; /* store 15 here */
74 #define GVP11_DMAC_BUSY (1<<0)
75 #define GVP11_DMAC_INT_PENDING (1<<1)
76 #define GVP11_DMAC_INT_ENABLE (1<<3)
77 #define GVP11_DMAC_DIR_WRITE (1<<4)
79 #endif /* else def HOSTS_C */