Linux Audio

Check our new training course

Loading...
v3.1
 
 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
14#ifndef CMD_PER_LUN
15#define CMD_PER_LUN		2
16#endif
17
18#ifndef CAN_QUEUE
19#define CAN_QUEUE		16
20#endif
21
22/*
23 * if the transfer address ANDed with this results in a non-zero
24 * result, then we can't use DMA.
25 */
26#define A3000_XFER_MASK		(0x00000003)
27
28struct a3000_scsiregs {
29		 unsigned char	pad1[2];
30	volatile unsigned short	DAWR;
31	volatile unsigned int	WTC;
32		 unsigned char	pad2[2];
33	volatile unsigned short	CNTR;
34	volatile unsigned long	ACR;
35		 unsigned char	pad3[2];
36	volatile unsigned short	ST_DMA;
37		 unsigned char	pad4[2];
38	volatile unsigned short	FLUSH;
39		 unsigned char	pad5[2];
40	volatile unsigned short	CINT;
41		 unsigned char	pad6[2];
42	volatile unsigned short	ISTR;
43		 unsigned char	pad7[30];
44	volatile unsigned short	SP_DMA;
45		 unsigned char	pad8;
46	volatile unsigned char	SASR;
47		 unsigned char	pad9;
48	volatile unsigned char	SCMD;
49};
50
51#define DAWR_A3000		(3)
52
53/* CNTR bits. */
54#define CNTR_TCEN		(1<<5)
55#define CNTR_PREST		(1<<4)
56#define CNTR_PDMD		(1<<3)
57#define CNTR_INTEN		(1<<2)
58#define CNTR_DDIR		(1<<1)
59#define CNTR_IO_DX		(1<<0)
60
61/* ISTR bits. */
62#define ISTR_INTX		(1<<8)
63#define ISTR_INT_F		(1<<7)
64#define ISTR_INTS		(1<<6)
65#define ISTR_E_INT		(1<<5)
66#define ISTR_INT_P		(1<<4)
67#define ISTR_UE_INT		(1<<3)
68#define ISTR_OE_INT		(1<<2)
69#define ISTR_FF_FLG		(1<<1)
70#define ISTR_FE_FLG		(1<<0)
71
72#endif /* A3000_H */
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef A3000_H
 3#define A3000_H
 4
 5/* $Id: a3000.h,v 1.4 1997/01/19 23:07:10 davem Exp $
 6 *
 7 * Header file for the Amiga 3000 built-in SCSI controller for Linux
 8 *
 9 * Written and (C) 1993, Hamish Macdonald, see a3000.c for more info
10 *
11 */
12
13#include <linux/types.h>
14
15#ifndef CMD_PER_LUN
16#define CMD_PER_LUN		2
17#endif
18
19#ifndef CAN_QUEUE
20#define CAN_QUEUE		16
21#endif
22
23/*
24 * if the transfer address ANDed with this results in a non-zero
25 * result, then we can't use DMA.
26 */
27#define A3000_XFER_MASK		(0x00000003)
28
29struct a3000_scsiregs {
30		 unsigned char	pad1[2];
31	volatile unsigned short	DAWR;
32	volatile unsigned int	WTC;
33		 unsigned char	pad2[2];
34	volatile unsigned short	CNTR;
35	volatile unsigned long	ACR;
36		 unsigned char	pad3[2];
37	volatile unsigned short	ST_DMA;
38		 unsigned char	pad4[2];
39	volatile unsigned short	FLUSH;
40		 unsigned char	pad5[2];
41	volatile unsigned short	CINT;
42		 unsigned char	pad6[2];
43	volatile unsigned short	ISTR;
44		 unsigned char	pad7[30];
45	volatile unsigned short	SP_DMA;
46		 unsigned char	pad8;
47	volatile unsigned char	SASR;
48		 unsigned char	pad9;
49	volatile unsigned char	SCMD;
50};
51
52#define DAWR_A3000		(3)
53
54/* CNTR bits. */
55#define CNTR_TCEN		(1<<5)
56#define CNTR_PREST		(1<<4)
57#define CNTR_PDMD		(1<<3)
58#define CNTR_INTEN		(1<<2)
59#define CNTR_DDIR		(1<<1)
60#define CNTR_IO_DX		(1<<0)
61
62/* ISTR bits. */
63#define ISTR_INTX		(1<<8)
64#define ISTR_INT_F		(1<<7)
65#define ISTR_INTS		(1<<6)
66#define ISTR_E_INT		(1<<5)
67#define ISTR_INT_P		(1<<4)
68#define ISTR_UE_INT		(1<<3)
69#define ISTR_OE_INT		(1<<2)
70#define ISTR_FF_FLG		(1<<1)
71#define ISTR_FE_FLG		(1<<0)
72
73#endif /* A3000_H */