1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 #ifndef SYM53C8XX_H
28 #define SYM53C8XX_H
29
30
31
32
33
34
35
36
37
38
39 #define SYM_CONF_DMA_ADDRESSING_MODE CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE
40
41
42
43
44 #if 1
45 #define SYM_CONF_NVRAM_SUPPORT (1)
46 #endif
47
48
49
50
51 #if 1
52 #define SYM_LINUX_PROC_INFO_SUPPORT
53 #define SYM_LINUX_USER_COMMAND_SUPPORT
54 #define SYM_LINUX_USER_INFO_SUPPORT
55 #define SYM_LINUX_DEBUG_CONTROL_SUPPORT
56 #endif
57
58
59
60
61 #define SYM_CONF_GENERIC_SUPPORT (1)
62
63
64
65
66 #ifndef CONFIG_SCSI_SYM53C8XX_MAX_TAGS
67 #define CONFIG_SCSI_SYM53C8XX_MAX_TAGS (8)
68 #endif
69
70 #if CONFIG_SCSI_SYM53C8XX_MAX_TAGS < 2
71 #define SYM_CONF_MAX_TAG (2)
72 #elif CONFIG_SCSI_SYM53C8XX_MAX_TAGS > 256
73 #define SYM_CONF_MAX_TAG (256)
74 #else
75 #define SYM_CONF_MAX_TAG CONFIG_SCSI_SYM53C8XX_MAX_TAGS
76 #endif
77
78 #ifndef CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS
79 #define CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS SYM_CONF_MAX_TAG
80 #endif
81
82
83
84
85 #if SYM_CONF_MAX_TAG <= 64
86 #define SYM_CONF_MAX_TAG_ORDER (6)
87 #elif SYM_CONF_MAX_TAG <= 128
88 #define SYM_CONF_MAX_TAG_ORDER (7)
89 #else
90 #define SYM_CONF_MAX_TAG_ORDER (8)
91 #endif
92
93
94
95
96 #define SYM_CONF_MAX_SG (96)
97
98
99
100
101
102
103
104 struct sym_driver_setup {
105 u_short max_tag;
106 u_char burst_order;
107 u_char scsi_led;
108 u_char scsi_diff;
109 u_char irq_mode;
110 u_char scsi_bus_check;
111 u_char host_id;
112
113 u_char verbose;
114 u_char settle_delay;
115 u_char use_nvram;
116 u_long excludes[8];
117 };
118
119 #define SYM_SETUP_MAX_TAG sym_driver_setup.max_tag
120 #define SYM_SETUP_BURST_ORDER sym_driver_setup.burst_order
121 #define SYM_SETUP_SCSI_LED sym_driver_setup.scsi_led
122 #define SYM_SETUP_SCSI_DIFF sym_driver_setup.scsi_diff
123 #define SYM_SETUP_IRQ_MODE sym_driver_setup.irq_mode
124 #define SYM_SETUP_SCSI_BUS_CHECK sym_driver_setup.scsi_bus_check
125 #define SYM_SETUP_HOST_ID sym_driver_setup.host_id
126 #define boot_verbose sym_driver_setup.verbose
127
128
129
130
131
132
133 #define SYM_LINUX_DRIVER_SETUP { \
134 .max_tag = CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS, \
135 .burst_order = 7, \
136 .scsi_led = 1, \
137 .scsi_diff = 1, \
138 .irq_mode = 0, \
139 .scsi_bus_check = 1, \
140 .host_id = 7, \
141 .verbose = 0, \
142 .settle_delay = 3, \
143 .use_nvram = 1, \
144 }
145
146 extern struct sym_driver_setup sym_driver_setup;
147 extern unsigned int sym_debug_flags;
148 #define DEBUG_FLAGS sym_debug_flags
149
150
151
152
153
154 #ifndef SYM_CONF_MAX_TARGET
155 #define SYM_CONF_MAX_TARGET (16)
156 #endif
157
158
159
160
161
162
163
164
165 #ifndef SYM_CONF_MAX_LUN
166 #define SYM_CONF_MAX_LUN (64)
167 #endif
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191 #define SYM_CONF_IARB_MAX 3
192 #define SYM_CONF_SET_IARB_ON_ARB_LOST 1
193
194
195
196
197
198
199
200 #define SYM_SETUP_RESIDUAL_SUPPORT 1
201
202 #endif