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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * Cumana SCSI II driver
3
 *
4
 * Copyright (C) 1997-1998 Russell King
5
 */
6
#ifndef CUMANA_2_H
7
#define CUMANA_2_H
8
 
9
extern int cumanascsi_2_detect (Scsi_Host_Template *);
10
extern int cumanascsi_2_release (struct Scsi_Host *);
11
extern const char *cumanascsi_2_info (struct Scsi_Host *);
12
extern int cumanascsi_2_proc_info (char *buffer, char **start, off_t offset,
13
                                        int length, int hostno, int inout);
14
 
15
#ifndef NULL
16
#define NULL ((void *)0)
17
#endif
18
 
19
#ifndef CAN_QUEUE
20
/*
21
 * Default queue size
22
 */
23
#define CAN_QUEUE       1
24
#endif
25
 
26
#ifndef SCSI_ID
27
/*
28
 * Default SCSI host ID
29
 */
30
#define SCSI_ID         7
31
#endif
32
 
33
#include <scsi/scsicam.h>
34
 
35
#ifndef HOSTS_C
36
#include "fas216.h"
37
#endif
38
 
39
#define CUMANASCSI_2 {                                                  \
40
        NULL,                                                           \
41
        NULL,                                                           \
42
        NULL,                                                           \
43
        cumanascsi_2_proc_info,                                         \
44
        "Cumana SCSI II",                                               \
45
        cumanascsi_2_detect,            /* detect               */      \
46
        cumanascsi_2_release,           /* release              */      \
47
        cumanascsi_2_info,              /* info                 */      \
48
        fas216_command,                 /* command              */      \
49
        fas216_queue_command,           /* queuecommand         */      \
50
        fas216_abort,                   /* abort                */      \
51
        fas216_reset,                   /* reset                */      \
52
        NULL,                                                           \
53
        scsicam_bios_param,             /* biosparam            */      \
54
        CAN_QUEUE,                      /* can queue            */      \
55
        SCSI_ID,                        /* scsi host id         */      \
56
        SG_ALL,                         /* sg_tablesize         */      \
57
        CAN_QUEUE,                      /* cmd per lun          */      \
58
        0,                               /* number of boards     */      \
59
        0,                               /* unchecked isa dma    */      \
60
        DISABLE_CLUSTERING                                              \
61
        }
62
 
63
#ifndef HOSTS_C
64
 
65
#include <asm/dma.h>
66
 
67
#define NR_SG   256
68
 
69
typedef struct {
70
        FAS216_Info info;
71
 
72
        /* other info... */
73
        unsigned int    status;         /* card status register */
74
        unsigned int    alatch;         /* Control register     */
75
        unsigned int    terms;          /* Terminator state     */
76
        unsigned int    dmaarea;        /* Pseudo DMA area      */
77
        dmasg_t         dmasg[NR_SG];   /* Scatter DMA list     */
78
} CumanaScsi2_Info;
79
 
80
#define CSTATUS_IRQ     (1 << 0)
81
#define CSTATUS_DRQ     (1 << 1)
82
 
83
#endif /* HOSTS_C */
84
 
85
#endif /* CUMANASCSI_2_H */

powered by: WebSVN 2.1.0

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