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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [drivers/] [scsi/] [oktagon_esp.h] - Blame information for rev 1275

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

Line No. Rev Author Line
1 1275 phoenix
/* oktagon_esp.h: Defines and structures for the CyberStorm SCSI Mk II driver.
2
 *
3
 * Copyright (C) 1996 Jesper Skov (jskov@cs.auc.dk)
4
 */
5
 
6
#include "NCR53C9x.h"
7
 
8
#ifndef OKTAGON_ESP_H
9
#define OKTAGON_ESP_H
10
 
11
/* The controller registers can be found in the Z2 config area at these
12
 * offsets:
13
 */
14
#define OKTAGON_ESP_ADDR 0x03000
15
#define OKTAGON_DMA_ADDR 0x01000
16
 
17
 
18
/* The CyberStorm II DMA interface */
19
struct oktagon_dma_registers {
20
        volatile unsigned char cond_reg;        /* DMA cond    (ro)  [0x000] */
21
#define ctrl_reg  cond_reg                      /* DMA control (wo)  [0x000] */
22
        unsigned char dmapad4[0x3f];
23
        volatile unsigned char dma_addr0;       /* DMA address (MSB) [0x040] */
24
        unsigned char dmapad1[3];
25
        volatile unsigned char dma_addr1;       /* DMA address       [0x044] */
26
        unsigned char dmapad2[3];
27
        volatile unsigned char dma_addr2;       /* DMA address       [0x048] */
28
        unsigned char dmapad3[3];
29
        volatile unsigned char dma_addr3;       /* DMA address (LSB) [0x04c] */
30
};
31
 
32
extern int oktagon_esp_detect(struct SHT *);
33
extern int oktagon_esp_release(struct Scsi_Host *);
34
extern const char *esp_info(struct Scsi_Host *);
35
extern int esp_queue(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
36
extern int esp_command(Scsi_Cmnd *);
37
extern int esp_abort(Scsi_Cmnd *);
38
extern int esp_reset(Scsi_Cmnd *, unsigned int);
39
extern int esp_proc_info(char *buffer, char **start, off_t offset, int length,
40
                        int hostno, int inout);
41
 
42
#define SCSI_OKTAGON_ESP {                       \
43
   proc_name:           "esp-oktagon",           \
44
   proc_info:           &esp_proc_info,          \
45
   name:                "BSC Oktagon SCSI",      \
46
   detect:              oktagon_esp_detect,      \
47
   release:             oktagon_esp_release,     \
48
   queuecommand:        esp_queue,               \
49
   abort:               esp_abort,               \
50
   reset:               esp_reset,               \
51
   can_queue:           7,                       \
52
   this_id:             7,                       \
53
   sg_tablesize:        SG_ALL,                  \
54
   cmd_per_lun:         1,                       \
55
   use_clustering:      ENABLE_CLUSTERING }
56
 
57
#endif /* OKTAGON_ESP_H */

powered by: WebSVN 2.1.0

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