aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/a3000.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/scsi/a3000.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/scsi/a3000.h')
-rw-r--r--drivers/scsi/a3000.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/drivers/scsi/a3000.h b/drivers/scsi/a3000.h
new file mode 100644
index 000000000000..b1eda731877d
--- /dev/null
+++ b/drivers/scsi/a3000.h
@@ -0,0 +1,79 @@
1#ifndef A3000_H
2#define A3000_H
3
4/* $Id: a3000.h,v 1.4 1997/01/19 23:07:10 davem Exp $
5 *
6 * Header file for the Amiga 3000 built-in SCSI controller for Linux
7 *
8 * Written and (C) 1993, Hamish Macdonald, see a3000.c for more info
9 *
10 */
11
12#include <linux/types.h>
13
14int a3000_detect(Scsi_Host_Template *);
15int a3000_release(struct Scsi_Host *);
16const char *wd33c93_info(void);
17int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
18int wd33c93_abort(Scsi_Cmnd *);
19int wd33c93_reset(Scsi_Cmnd *, unsigned int);
20
21#ifndef CMD_PER_LUN
22#define CMD_PER_LUN 2
23#endif
24
25#ifndef CAN_QUEUE
26#define CAN_QUEUE 16
27#endif
28
29/*
30 * if the transfer address ANDed with this results in a non-zero
31 * result, then we can't use DMA.
32 */
33#define A3000_XFER_MASK (0x00000003)
34
35typedef struct {
36 unsigned char pad1[2];
37 volatile unsigned short DAWR;
38 volatile unsigned int WTC;
39 unsigned char pad2[2];
40 volatile unsigned short CNTR;
41 volatile unsigned long ACR;
42 unsigned char pad3[2];
43 volatile unsigned short ST_DMA;
44 unsigned char pad4[2];
45 volatile unsigned short FLUSH;
46 unsigned char pad5[2];
47 volatile unsigned short CINT;
48 unsigned char pad6[2];
49 volatile unsigned short ISTR;
50 unsigned char pad7[30];
51 volatile unsigned short SP_DMA;
52 unsigned char pad8;
53 volatile unsigned char SASR;
54 unsigned char pad9;
55 volatile unsigned char SCMD;
56} a3000_scsiregs;
57
58#define DAWR_A3000 (3)
59
60/* CNTR bits. */
61#define CNTR_TCEN (1<<5)
62#define CNTR_PREST (1<<4)
63#define CNTR_PDMD (1<<3)
64#define CNTR_INTEN (1<<2)
65#define CNTR_DDIR (1<<1)
66#define CNTR_IO_DX (1<<0)
67
68/* ISTR bits. */
69#define ISTR_INTX (1<<8)
70#define ISTR_INT_F (1<<7)
71#define ISTR_INTS (1<<6)
72#define ISTR_E_INT (1<<5)
73#define ISTR_INT_P (1<<4)
74#define ISTR_UE_INT (1<<3)
75#define ISTR_OE_INT (1<<2)
76#define ISTR_FF_FLG (1<<1)
77#define ISTR_FE_FLG (1<<0)
78
79#endif /* A3000_H */