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/] [ecoscsi.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 1995, Russell King
5
 *
6
 * ALPHA RELEASE 1.
7
 *
8
 * For more information, please consult
9
 *
10
 * NCR 5380 Family
11
 * SCSI Protocol Controller
12
 * Databook
13
 *
14
 * NCR Microelectronics
15
 * 1635 Aeroplaza Drive
16
 * Colorado Springs, CO 80916
17
 * 1+ (719) 578-3400
18
 * 1+ (800) 334-5454
19
 */
20
 
21
/*
22
 * $Log: not supported by cvs2svn $
23
 * Revision 1.1.1.1  2001/09/10 07:43:54  simons
24
 * Initial import
25
 *
26
 * Revision 1.1.1.1  2001/07/02 17:58:40  simons
27
 * Initial revision
28
 *
29
 * Revision 1.1.1.1  1999/11/15 13:42:32  vadim
30
 * Initial import
31
 *
32
 */
33
 
34
#ifndef ECOSCSI_NCR5380_H
35
#define ECOSCSI_NCR5380_H
36
 
37
#define ECOSCSI_PUBLIC_RELEASE 1
38
 
39
 
40
#ifndef ASM
41
int ecoscsi_abort (Scsi_Cmnd *);
42
int ecoscsi_detect (Scsi_Host_Template *);
43
int ecoscsi_release (struct Scsi_Host *);
44
const char *ecoscsi_info (struct Scsi_Host *);
45
int ecoscsi_reset(Scsi_Cmnd *, unsigned int);
46
int ecoscsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
47
int ecoscsi_proc_info (char *buffer, char **start, off_t offset,
48
                        int length, int hostno, int inout);
49
 
50
#ifndef NULL
51
#define NULL 0
52
#endif
53
 
54
#ifndef CMD_PER_LUN
55
#define CMD_PER_LUN 2
56
#endif
57
 
58
#ifndef CAN_QUEUE
59
#define CAN_QUEUE 16
60
#endif
61
 
62
#define ECOSCSI_NCR5380 {                                       \
63
        NULL,                                                   \
64
        NULL,                                                   \
65
        NULL,                                                   \
66
        NULL,                                                   \
67
        "Serial Port EcoSCSI NCR5380",                          \
68
        ecoscsi_detect,                                         \
69
        ecoscsi_release,                                        \
70
        ecoscsi_info,                                           \
71
        NULL,                                                   \
72
        ecoscsi_queue_command,                                  \
73
        ecoscsi_abort,                                          \
74
        ecoscsi_reset,                                          \
75
        NULL,                                                   \
76
        NULL,                                                   \
77
        CAN_QUEUE,                      /* can queue */         \
78
        7,                              /* id */                \
79
        SG_ALL,                                                 \
80
        CMD_PER_LUN,                    /* cmd per lun */       \
81
        0,                                                       \
82
        0,                                                       \
83
        DISABLE_CLUSTERING                                      \
84
        }
85
 
86
#ifndef HOSTS_C
87
#define NCR5380_implementation_fields \
88
    int port, ctrl
89
 
90
#define NCR5380_local_declare() \
91
        struct Scsi_Host *_instance
92
 
93
#define NCR5380_setup(instance) \
94
        _instance = instance
95
 
96
#define NCR5380_read(reg) ecoscsi_read(_instance, reg)
97
#define NCR5380_write(reg, value) ecoscsi_write(_instance, reg, value)
98
 
99
#define NCR5380_intr ecoscsi_intr
100
#define NCR5380_queue_command ecoscsi_queue_command
101
#define NCR5380_abort ecoscsi_abort
102
#define NCR5380_reset ecoscsi_reset
103
#define NCR5380_proc_info ecoscsi_proc_info
104
 
105
#define BOARD_NORMAL    0
106
#define BOARD_NCR53C400 1
107
 
108
#endif /* ndef HOSTS_C */
109
#endif /* ndef ASM */
110
#endif /* ECOSCSI_NCR5380_H */
111
 

powered by: WebSVN 2.1.0

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