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/] [cumana_1.h] - Blame information for rev 1782

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 CUMANA_NCR5380_H
39
#define CUMANA_NCR5380_H
40
 
41
#define CUMANASCSI_PUBLIC_RELEASE 1
42
 
43
 
44
#ifndef ASM
45
int cumanascsi_abort (Scsi_Cmnd *);
46
int cumanascsi_detect (Scsi_Host_Template *);
47
int cumanascsi_release (struct Scsi_Host *);
48
const char *cumanascsi_info (struct Scsi_Host *);
49
int cumanascsi_reset(Scsi_Cmnd *, unsigned int);
50
int cumanascsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
51
int cumanascsi_proc_info (char *buffer, char **start, off_t offset,
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
#include <scsi/scsicam.h>
67
 
68
#define CUMANA_NCR5380 {                                                \
69
        NULL,                                                           \
70
        NULL,                                                           \
71
        NULL,                                                           \
72
        NULL,                                                           \
73
        "Cumana 16-bit SCSI",                                           \
74
        cumanascsi_detect,                                              \
75
        cumanascsi_release,     /* Release */                           \
76
        cumanascsi_info,                                                \
77
        NULL,                                                           \
78
        cumanascsi_queue_command,                                       \
79
        cumanascsi_abort,                                               \
80
        cumanascsi_reset,                                               \
81
        NULL,                                                           \
82
        scsicam_bios_param,     /* biosparam */                         \
83
        CAN_QUEUE,              /* can queue */                         \
84
        7,                      /* id */                                \
85
        SG_ALL,                 /* sg_tablesize */                      \
86
        CMD_PER_LUN,            /* cmd per lun */                       \
87
        0,                       /* number of boards */                  \
88
        0,                       /* unchecked_isa_dma */                 \
89
        DISABLE_CLUSTERING                                              \
90
        }
91
 
92
#ifndef HOSTS_C
93
 
94
#define NCR5380_implementation_fields \
95
    int port, ctrl
96
 
97
#define NCR5380_local_declare() \
98
        struct Scsi_Host *_instance
99
 
100
#define NCR5380_setup(instance) \
101
        _instance = instance
102
 
103
#define NCR5380_read(reg) cumanascsi_read(_instance, reg)
104
#define NCR5380_write(reg, value) cumanascsi_write(_instance, reg, value)
105
 
106
#define NCR5380_intr cumanascsi_intr
107
#define NCR5380_queue_command cumanascsi_queue_command
108
#define NCR5380_abort cumanascsi_abort
109
#define NCR5380_reset cumanascsi_reset
110
#define NCR5380_proc_info cumanascsi_proc_info
111
 
112
#define BOARD_NORMAL    0
113
#define BOARD_NCR53C400 1
114
 
115
#endif /* ndef HOSTS_C */
116
#endif /* ndef ASM */
117
#endif /* CUMANA_NCR5380_H */
118
 

powered by: WebSVN 2.1.0

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