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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1622 jcastillo
/*
2
 * PowerTec SCSI driver
3
 *
4
 * Copyright (C) 1997-1998 Russell King
5
 */
6
#ifndef POWERTECSCSI_H
7
#define POWERTECSCSI_H
8
 
9
extern int powertecscsi_detect (Scsi_Host_Template *);
10
extern int powertecscsi_release (struct Scsi_Host *);
11
extern const char *powertecscsi_info (struct Scsi_Host *);
12
extern int powertecscsi_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 POWERTECSCSI {                                                  \
42
        NULL,                                                           \
43
        NULL,                                                           \
44
        NULL,                                                           \
45
        powertecscsi_proc_info,                                         \
46
        "PowerTec SCSI",                                                \
47
        powertecscsi_detect,            /* detect               */      \
48
        powertecscsi_release,           /* release              */      \
49
        powertecscsi_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
typedef struct {
72
        FAS216_Info info;
73
 
74
        struct {
75
                unsigned int term_port;
76
                unsigned int terms;
77
        } control;
78
 
79
        /* other info... */
80
        dmasg_t         dmasg[NR_SG];   /* Scatter DMA list     */
81
} PowerTecScsi_Info;
82
 
83
#endif /* HOSTS_C */
84
 
85
#endif /* POWERTECSCSI_H */

powered by: WebSVN 2.1.0

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