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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [armnommu/] [drivers/] [scsi/] [ecoscsi.h] - Blame information for rev 199

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

Line No. Rev Author Line
1 199 simons
/*
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/07/02 17:58:40  simons
24
 * Initial revision
25
 *
26
 * Revision 1.1.1.1  1999/11/15 13:42:32  vadim
27
 * Initial import
28
 *
29
 */
30
 
31
#ifndef ECOSCSI_NCR5380_H
32
#define ECOSCSI_NCR5380_H
33
 
34
#define ECOSCSI_PUBLIC_RELEASE 1
35
 
36
 
37
#ifndef ASM
38
int ecoscsi_abort (Scsi_Cmnd *);
39
int ecoscsi_detect (Scsi_Host_Template *);
40
int ecoscsi_release (struct Scsi_Host *);
41
const char *ecoscsi_info (struct Scsi_Host *);
42
int ecoscsi_reset(Scsi_Cmnd *, unsigned int);
43
int ecoscsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
44
int ecoscsi_proc_info (char *buffer, char **start, off_t offset,
45
                        int length, int hostno, int inout);
46
 
47
#ifndef NULL
48
#define NULL 0
49
#endif
50
 
51
#ifndef CMD_PER_LUN
52
#define CMD_PER_LUN 2
53
#endif
54
 
55
#ifndef CAN_QUEUE
56
#define CAN_QUEUE 16
57
#endif
58
 
59
#define ECOSCSI_NCR5380 {                                       \
60
        NULL,                                                   \
61
        NULL,                                                   \
62
        NULL,                                                   \
63
        NULL,                                                   \
64
        "Serial Port EcoSCSI NCR5380",                          \
65
        ecoscsi_detect,                                         \
66
        ecoscsi_release,                                        \
67
        ecoscsi_info,                                           \
68
        NULL,                                                   \
69
        ecoscsi_queue_command,                                  \
70
        ecoscsi_abort,                                          \
71
        ecoscsi_reset,                                          \
72
        NULL,                                                   \
73
        NULL,                                                   \
74
        CAN_QUEUE,                      /* can queue */         \
75
        7,                              /* id */                \
76
        SG_ALL,                                                 \
77
        CMD_PER_LUN,                    /* cmd per lun */       \
78
        0,                                                       \
79
        0,                                                       \
80
        DISABLE_CLUSTERING                                      \
81
        }
82
 
83
#ifndef HOSTS_C
84
#define NCR5380_implementation_fields \
85
    int port, ctrl
86
 
87
#define NCR5380_local_declare() \
88
        struct Scsi_Host *_instance
89
 
90
#define NCR5380_setup(instance) \
91
        _instance = instance
92
 
93
#define NCR5380_read(reg) ecoscsi_read(_instance, reg)
94
#define NCR5380_write(reg, value) ecoscsi_write(_instance, reg, value)
95
 
96
#define NCR5380_intr ecoscsi_intr
97
#define NCR5380_queue_command ecoscsi_queue_command
98
#define NCR5380_abort ecoscsi_abort
99
#define NCR5380_reset ecoscsi_reset
100
#define NCR5380_proc_info ecoscsi_proc_info
101
 
102
#define BOARD_NORMAL    0
103
#define BOARD_NCR53C400 1
104
 
105
#endif /* ndef HOSTS_C */
106
#endif /* ndef ASM */
107
#endif /* ECOSCSI_NCR5380_H */
108
 

powered by: WebSVN 2.1.0

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