1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef _ULTRASTOR_H
14 #define _ULTRASTOR_H
15
16 int ultrastor_detect(Scsi_Host_Template *);
17 const char *ultrastor_info(struct Scsi_Host * shpnt);
18 int ultrastor_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
19 int ultrastor_abort(Scsi_Cmnd *);
20 int ultrastor_reset(Scsi_Cmnd *);
21 int ultrastor_biosparam(Disk *, int, int *);
22
23 #define ULTRASTOR_14F_MAX_SG 16
24 #define ULTRASTOR_24F_MAX_SG 33
25
26 #define ULTRASTOR_MAX_CMDS_PER_LUN 5
27 #define ULTRASTOR_MAX_CMDS 16
28
29 #define ULTRASTOR_24F_PORT 0xC80
30
31
32 #define ULTRASTOR_14F { NULL, NULL, \
33 "UltraStor 14F/24F/34F", \
34 ultrastor_detect, \
35 NULL, \
36 ultrastor_info, \
37 0, \
38 ultrastor_queuecommand, \
39 ultrastor_abort, \
40 ultrastor_reset, \
41 0, \
42 ultrastor_biosparam, \
43 ULTRASTOR_MAX_CMDS, \
44 0, \
45 ULTRASTOR_14F_MAX_SG, \
46 ULTRASTOR_MAX_CMDS_PER_LUN, \
47 0, \
48 1, \
49 ENABLE_CLUSTERING }
50
51
52 #ifdef ULTRASTOR_PRIVATE
53
54 #define UD_ABORT 0x0001
55 #define UD_COMMAND 0x0002
56 #define UD_DETECT 0x0004
57 #define UD_INTERRUPT 0x0008
58 #define UD_RESET 0x0010
59 #define UD_MULTI_CMD 0x0020
60 #define UD_CSIR 0x0040
61 #define UD_ERROR 0x0080
62
63
64
65
66 #define US14F_PRODUCT_ID_0 0x56
67 #define US14F_PRODUCT_ID_1 0x40
68
69 #define US24F_PRODUCT_ID_0 0x56
70 #define US24F_PRODUCT_ID_1 0x63
71 #define US24F_PRODUCT_ID_2 0x02
72
73
74 #define U14F 0
75 #define U34F 1
76
77
78
79
80 #define OP_HOST_ADAPTER 0x1
81 #define OP_SCSI 0x2
82 #define OP_RESET 0x4
83
84
85 #define DTD_SCSI 0x0
86 #define DTD_IN 0x1
87 #define DTD_OUT 0x2
88 #define DTD_NONE 0x3
89
90
91 #define HA_CMD_INQUIRY 0x1
92 #define HA_CMD_SELF_DIAG 0x2
93 #define HA_CMD_READ_BUFF 0x3
94 #define HA_CMD_WRITE_BUFF 0x4
95
96 #endif
97
98 #endif