0001
0002 #ifndef A3000_H
0003 #define A3000_H
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <linux/types.h>
0014
0015 #ifndef CMD_PER_LUN
0016 #define CMD_PER_LUN 2
0017 #endif
0018
0019 #ifndef CAN_QUEUE
0020 #define CAN_QUEUE 16
0021 #endif
0022
0023
0024
0025
0026
0027 #define A3000_XFER_MASK (0x00000003)
0028
0029 struct a3000_scsiregs {
0030 unsigned char pad1[2];
0031 volatile unsigned short DAWR;
0032 volatile unsigned int WTC;
0033 unsigned char pad2[2];
0034 volatile unsigned short CNTR;
0035 volatile unsigned long ACR;
0036 unsigned char pad3[2];
0037 volatile unsigned short ST_DMA;
0038 unsigned char pad4[2];
0039 volatile unsigned short FLUSH;
0040 unsigned char pad5[2];
0041 volatile unsigned short CINT;
0042 unsigned char pad6[2];
0043 volatile unsigned short ISTR;
0044 unsigned char pad7[30];
0045 volatile unsigned short SP_DMA;
0046 unsigned char pad8;
0047 volatile unsigned char SASR;
0048 unsigned char pad9;
0049 volatile unsigned char SCMD;
0050 };
0051
0052 #define DAWR_A3000 (3)
0053
0054
0055 #define CNTR_TCEN (1<<5)
0056 #define CNTR_PREST (1<<4)
0057 #define CNTR_PDMD (1<<3)
0058 #define CNTR_INTEN (1<<2)
0059 #define CNTR_DDIR (1<<1)
0060 #define CNTR_IO_DX (1<<0)
0061
0062
0063 #define ISTR_INTX (1<<8)
0064 #define ISTR_INT_F (1<<7)
0065 #define ISTR_INTS (1<<6)
0066 #define ISTR_E_INT (1<<5)
0067 #define ISTR_INT_P (1<<4)
0068 #define ISTR_UE_INT (1<<3)
0069 #define ISTR_OE_INT (1<<2)
0070 #define ISTR_FF_FLG (1<<1)
0071 #define ISTR_FE_FLG (1<<0)
0072
0073 #endif