clean
[linux-2.4.21-pre4.git] / drivers / scsi / NCR_D700.h
1 /* -*- mode: c; c-basic-offset: 8 -*- */
2
3 /* NCR Dual 700 MCA SCSI Driver
4  *
5  * Copyright (C) 2001 by James.Bottomley@HansenPartnership.com
6  */
7
8 #ifndef _NCR_D700_H
9 #define _NCR_D700_H
10
11 /* Don't turn on debugging messages */
12 #undef NCR_D700_DEBUG
13
14 /* The MCA identifier */
15 #define NCR_D700_MCA_ID         0x0092
16
17 static int D700_detect(Scsi_Host_Template *);
18 static int D700_release(struct Scsi_Host *host);
19
20
21 /* Host template.  Note the name and proc_name are optional, all the
22  * remaining parameters shown below must be filled in.  The 53c700
23  * routine NCR_700_detect will fill in all of the missing routines */
24 #define NCR_D700_SCSI {                                         \
25         name:                           "NCR Dual 700 MCA",     \
26         proc_name:                      "NCR_D700",             \
27         detect:                         D700_detect,            \
28         release:                        D700_release,           \
29         this_id:                        7,                      \
30 }
31
32
33 /* Defines for the Board registers */
34 #define BOARD_RESET             0x80    /* board level reset */
35 #define ADD_PARENB              0x04    /* Address Parity Enabled */
36 #define DAT_PARENB              0x01    /* Data Parity Enabled */
37 #define SFBK_ENB                0x10    /* SFDBK Interrupt Enabled */
38 #define LED0GREEN               0x20    /* Led 0 (red 0; green 1) */
39 #define LED1GREEN               0x40    /* Led 1 (red 0; green 1) */
40 #define LED0RED                 0xDF    /* Led 0 (red 0; green 1) */
41 #define LED1RED                 0xBF    /* Led 1 (red 0; green 1) */
42
43 #define NCR_D700_CLOCK_MHZ      50
44
45 #endif