OpenCores
URL https://opencores.org/ocsvn/or1k_soc_on_altera_embedded_dev_kit/or1k_soc_on_altera_embedded_dev_kit/trunk

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [drivers/] [scsi/] [a2091.h] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 xianfeng
#ifndef A2091_H
2
#define A2091_H
3
 
4
/* $Id: a2091.h,v 1.4 1997/01/19 23:07:09 davem Exp $
5
 *
6
 * Header file for the Commodore A2091 Zorro II SCSI controller for Linux
7
 *
8
 * Written and (C) 1993, Hamish Macdonald, see a2091.c for more info
9
 *
10
 */
11
 
12
#include <linux/types.h>
13
 
14
int a2091_detect(struct scsi_host_template *);
15
int a2091_release(struct Scsi_Host *);
16
 
17
#ifndef CMD_PER_LUN
18
#define CMD_PER_LUN 2
19
#endif
20
 
21
#ifndef CAN_QUEUE
22
#define CAN_QUEUE 16
23
#endif
24
 
25
/*
26
 * if the transfer address ANDed with this results in a non-zero
27
 * result, then we can't use DMA.
28
 */
29
#define A2091_XFER_MASK  (0xff000001)
30
 
31
typedef struct {
32
             unsigned char      pad1[64];
33
    volatile unsigned short     ISTR;
34
    volatile unsigned short     CNTR;
35
             unsigned char      pad2[60];
36
    volatile unsigned int       WTC;
37
    volatile unsigned long      ACR;
38
             unsigned char      pad3[6];
39
    volatile unsigned short     DAWR;
40
             unsigned char      pad4;
41
    volatile unsigned char      SASR;
42
             unsigned char      pad5;
43
    volatile unsigned char      SCMD;
44
             unsigned char      pad6[76];
45
    volatile unsigned short     ST_DMA;
46
    volatile unsigned short     SP_DMA;
47
    volatile unsigned short     CINT;
48
             unsigned char      pad7[2];
49
    volatile unsigned short     FLUSH;
50
} a2091_scsiregs;
51
 
52
#define DAWR_A2091              (3)
53
 
54
/* CNTR bits. */
55
#define CNTR_TCEN               (1<<7)
56
#define CNTR_PREST              (1<<6)
57
#define CNTR_PDMD               (1<<5)
58
#define CNTR_INTEN              (1<<4)
59
#define CNTR_DDIR               (1<<3)
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 /* A2091_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.