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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [armnommu/] [drivers/] [scsi/] [eesox.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
 * EESOX SCSI driver
3
 *
4
 * Copyright (C) 1997-1998 Russell King
5
 */
6
#ifndef EESOXSCSI_H
7
#define EESOXSCSI_H
8
 
9
extern int eesoxscsi_detect (Scsi_Host_Template *);
10
extern int eesoxscsi_release (struct Scsi_Host *);
11
extern const char *eesoxscsi_info (struct Scsi_Host *);
12
extern int eesoxscsi_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 CMD_PER_LUN
27
#define CMD_PER_LUN     1
28
#endif
29
 
30
#ifndef SCSI_ID
31
/*
32
 * Default SCSI host ID
33
 */
34
#define SCSI_ID         7
35
#endif
36
 
37
#include <scsi/scsicam.h>
38
 
39
#include "fas216.h"
40
 
41
#define EESOXSCSI {                                                     \
42
        NULL,                                                           \
43
        NULL,                                                           \
44
        NULL,                                                           \
45
        eesoxscsi_proc_info,                                            \
46
        "EESOX SCSI",                                           \
47
        eesoxscsi_detect,               /* detect               */      \
48
        eesoxscsi_release,              /* release              */      \
49
        eesoxscsi_info,                 /* info                 */      \
50
        fas216_command,                 /* command              */      \
51
        fas216_queue_command,           /* queuecommand         */      \
52
        fas216_abort,                   /* abort                */      \
53
        fas216_reset,                   /* reset                */      \
54
        NULL,                                                           \
55
        scsicam_bios_param,             /* biosparam            */      \
56
        CAN_QUEUE,                      /* can queue            */      \
57
        SCSI_ID,                        /* scsi host id         */      \
58
        SG_ALL,                         /* sg_tablesize         */      \
59
        CMD_PER_LUN,                    /* cmd per lun          */      \
60
        0,                               /* number of boards     */      \
61
        0,                               /* unchecked isa dma    */      \
62
        DISABLE_CLUSTERING                                              \
63
        }
64
 
65
#ifndef HOSTS_C
66
 
67
#include <asm/dma.h>
68
 
69
#define NR_SG   256
70
 
71
struct control {
72
        unsigned int    io_port;
73
        unsigned int    control;
74
};
75
 
76
typedef struct {
77
        FAS216_Info info;
78
 
79
        struct control control;
80
 
81
        unsigned int    dmaarea;        /* Pseudo DMA area      */
82
        dmasg_t         dmasg[NR_SG];   /* Scatter DMA list     */
83
} EESOXScsi_Info;
84
 
85
#endif /* HOSTS_C */
86
 
87
#endif /* EESOXSCSI_H */

powered by: WebSVN 2.1.0

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