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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [drivers/] [scsi/] [oak.h] - Blame information for rev 1622

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1622 jcastillo
/*
2
 * Cumana Generic NCR5380 driver defines
3
 *
4
 * Copyright 1993, Drew Eckhardt
5
 *      Visionary Computing
6
 *      (Unix and Linux consulting and custom programming)
7
 *      drew@colorado.edu
8
 *      +1 (303) 440-4894
9
 *
10
 * ALPHA RELEASE 1.
11
 *
12
 * For more information, please consult
13
 *
14
 * NCR 5380 Family
15
 * SCSI Protocol Controller
16
 * Databook
17
 *
18
 * NCR Microelectronics
19
 * 1635 Aeroplaza Drive
20
 * Colorado Springs, CO 80916
21
 * 1+ (719) 578-3400
22
 * 1+ (800) 334-5454
23
 */
24
 
25
/*
26
 * $Log: not supported by cvs2svn $
27
 * Revision 1.1.1.1  2001/09/10 07:43:54  simons
28
 * Initial import
29
 *
30
 * Revision 1.1.1.1  2001/07/02 17:58:40  simons
31
 * Initial revision
32
 *
33
 * Revision 1.1.1.1  1999/11/15 13:42:32  vadim
34
 * Initial import
35
 *
36
 */
37
 
38
#ifndef OAK_NCR5380_H
39
#define OAK_NCR5380_H
40
 
41
#define OAKSCSI_PUBLIC_RELEASE 1
42
 
43
 
44
#ifndef ASM
45
int oakscsi_abort(Scsi_Cmnd *);
46
int oakscsi_detect(Scsi_Host_Template *);
47
int oakscsi_release(struct Scsi_Host *);
48
const char *oakscsi_info(struct Scsi_Host *);
49
int oakscsi_reset(Scsi_Cmnd *, unsigned int);
50
int oakscsi_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
51
int oakscsi_proc_info (char *buffer, char **start, off_t off,
52
                int length, int hostno, int inout);
53
 
54
#ifndef NULL
55
#define NULL 0
56
#endif
57
 
58
#ifndef CMD_PER_LUN
59
#define CMD_PER_LUN 2
60
#endif
61
 
62
#ifndef CAN_QUEUE
63
#define CAN_QUEUE 16
64
#endif
65
 
66
#define OAK_NCR5380 {                                           \
67
        NULL,                   /* ptr for modules */           \
68
        NULL,                   /* usage count for modules */   \
69
        NULL,                                                   \
70
        oakscsi_proc_info,                                      \
71
        "Oak 16-bit SCSI",                                      \
72
        oakscsi_detect,                                         \
73
        oakscsi_release,        /* Release */                   \
74
        oakscsi_info,                                           \
75
        NULL,                                                   \
76
        oakscsi_queue_command,                                  \
77
        oakscsi_abort,                                          \
78
        oakscsi_reset,                                          \
79
        NULL,                                                   \
80
        NULL,                   /* Biosparam */                 \
81
        CAN_QUEUE,              /* can queue */                 \
82
        7,                      /* id */                        \
83
        SG_ALL,                 /* sg_tablesize */              \
84
        CMD_PER_LUN,            /* cmd per lun */               \
85
        0,                       /* number of boards */          \
86
        0,                       /* unchecked isa dma */         \
87
        DISABLE_CLUSTERING                                      \
88
        }
89
 
90
#ifndef HOSTS_C
91
#define NCR5380_implementation_fields \
92
        int port, ctrl
93
 
94
#define NCR5380_local_declare() \
95
        struct Scsi_Host *_instance
96
 
97
#define NCR5380_setup(instance) \
98
        _instance = instance
99
 
100
#define NCR5380_read(reg)               oakscsi_read(_instance, reg)
101
#define NCR5380_write(reg, value)       oakscsi_write(_instance, reg, value)
102
#define NCR5380_intr                    oakscsi_intr
103
#define NCR5380_queue_command           oakscsi_queue_command
104
#define NCR5380_abort                   oakscsi_abort
105
#define NCR5380_reset                   oakscsi_reset
106
#define NCR5380_proc_info               oakscsi_proc_info
107
 
108
#define BOARD_NORMAL    0
109
#define BOARD_NCR53C400 1
110
 
111
#endif /* else def HOSTS_C */
112
#endif /* ndef ASM */
113
#endif /* OAK_NCR5380_H */
114
 

powered by: WebSVN 2.1.0

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