| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef GVP11_H | 
|  | 2 |  | 
|  | 3 | /* $Id: gvp11.h,v 1.4 1997/01/19 23:07:12 davem Exp $ | 
|  | 4 | * | 
|  | 5 | * Header file for the GVP Series II SCSI controller for Linux | 
|  | 6 | * | 
|  | 7 | * Written and (C) 1993, Ralf Baechle, see gvp11.c for more info | 
|  | 8 | * based on a2091.h (C) 1993 by Hamish Macdonald | 
|  | 9 | * | 
|  | 10 | */ | 
|  | 11 |  | 
|  | 12 | #include <linux/types.h> | 
|  | 13 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #ifndef CMD_PER_LUN | 
| Geert Uytterhoeven | bb17b78 | 2010-04-04 11:00:33 +0200 | [diff] [blame] | 15 | #define CMD_PER_LUN		2 | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #endif | 
|  | 17 |  | 
|  | 18 | #ifndef CAN_QUEUE | 
| Geert Uytterhoeven | bb17b78 | 2010-04-04 11:00:33 +0200 | [diff] [blame] | 19 | #define CAN_QUEUE		16 | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #endif | 
|  | 21 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | /* | 
|  | 23 | * if the transfer address ANDed with this results in a non-zero | 
|  | 24 | * result, then we can't use DMA. | 
|  | 25 | */ | 
| Geert Uytterhoeven | bb17b78 | 2010-04-04 11:00:33 +0200 | [diff] [blame] | 26 | #define GVP11_XFER_MASK		(0xff000001) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 |  | 
| Geert Uytterhoeven | 349d65f | 2009-05-17 21:05:55 +0200 | [diff] [blame] | 28 | struct gvp11_scsiregs { | 
| Geert Uytterhoeven | bb17b78 | 2010-04-04 11:00:33 +0200 | [diff] [blame] | 29 | unsigned char	pad1[64]; | 
|  | 30 | volatile unsigned short	CNTR; | 
|  | 31 | unsigned char	pad2[31]; | 
|  | 32 | volatile unsigned char	SASR; | 
|  | 33 | unsigned char	pad3; | 
|  | 34 | volatile unsigned char	SCMD; | 
|  | 35 | unsigned char	pad4[4]; | 
|  | 36 | volatile unsigned short	BANK; | 
|  | 37 | unsigned char	pad5[6]; | 
|  | 38 | volatile unsigned long	ACR; | 
|  | 39 | volatile unsigned short	secret1; /* store 0 here */ | 
|  | 40 | volatile unsigned short	ST_DMA; | 
|  | 41 | volatile unsigned short	SP_DMA; | 
|  | 42 | volatile unsigned short	secret2; /* store 1 here */ | 
|  | 43 | volatile unsigned short	secret3; /* store 15 here */ | 
| Geert Uytterhoeven | 349d65f | 2009-05-17 21:05:55 +0200 | [diff] [blame] | 44 | }; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 |  | 
|  | 46 | /* bits in CNTR */ | 
|  | 47 | #define GVP11_DMAC_BUSY		(1<<0) | 
|  | 48 | #define GVP11_DMAC_INT_PENDING	(1<<1) | 
|  | 49 | #define GVP11_DMAC_INT_ENABLE	(1<<3) | 
|  | 50 | #define GVP11_DMAC_DIR_WRITE	(1<<4) | 
|  | 51 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | #endif /* GVP11_H */ |