33 #define BLS (&aic7xxx_buffer[size])
35 " 0 - 4K 4 - 16K 16 - 64K 64 - 256K 256K - 1M 1M+"
52 # define proc_debug(fmt, args...)
55 static int aic7xxx_buffer_size = 0;
56 static char *aic7xxx_buffer =
NULL;
69 proc_debug(
"aic7xxx_set_info(): %s\n", buffer);
92 for(p=first_aic7xxx; p && p->
host != HBAptr; p=p->
next)
97 size +=
sprintf(buffer,
"Can't find adapter for host number %d\n", HBAptr->
host_no);
110 return (aic7xxx_set_info(buffer, length, HBAptr));
130 if (aic7xxx_buffer_size != size)
132 if (aic7xxx_buffer !=
NULL)
134 kfree(aic7xxx_buffer);
135 aic7xxx_buffer_size = 0;
139 if (aic7xxx_buffer ==
NULL)
141 size =
sprintf(buffer,
"AIC7xxx - kmalloc error at line %d\n",
145 aic7xxx_buffer_size =
size;
148 size +=
sprintf(
BLS,
"Adaptec AIC7xxx driver version: ");
152 size +=
sprintf(
BLS,
"Adapter Configuration:\n");
156 size +=
sprintf(
BLS,
" Twin Channel Controller ");
161 char *
wide =
"Narrow ";
164 channel =
" Channel A";
176 ultra =
"Ultra-160/m LVD/SE ";
179 ultra =
"Ultra-3 LVD/SE ";
184 ultra =
"Ultra-2 LVD/SE ";
188 ultra, wide, channel);
215 size +=
sprintf(
BLS,
" Adapter SEEPROM Config: %s\n",
218 "SEEPROM not found, using leftover BIOS values.") );
219 size +=
sprintf(
BLS,
" Adaptec SCSI BIOS: %s\n",
222 size +=
sprintf(
BLS,
" SCBs: Active %d, Max Active %d,\n",
228 size +=
sprintf(
BLS,
" Using External SCB SRAM\n");
233 (p->
pause &
IRQMS) ?
"(Level Sensitive)" :
"(Edge Triggered)");
239 size +=
sprintf(
BLS,
" BIOS Control Word: 0x%04x\n",
241 size +=
sprintf(
BLS,
" Adapter Control Word: 0x%04x\n",
243 size +=
sprintf(
BLS,
" Extended Translation: %sabled\n",
250 size +=
sprintf(
BLS,
"Default Tag Queue Depth: %d\n", aic7xxx_default_queue_depth);
251 size +=
sprintf(
BLS,
" Tagged Queue By Device array for aic7xxx host "
262 sdptr = aic_dev->
SDptr;
263 tindex = sdptr->
channel << 3 | sdptr->
id;
270 "Sync transfers at " :
"Async transfers.\n" );
273 struct aic7xxx_syncrate *sync_rate;
279 sync_rate = aic7xxx_find_syncrate(p, &period, 0, &options);
280 if (sync_rate !=
NULL)
282 size +=
sprintf(
BLS,
"%s MByte/sec, offset %d\n",
283 sync_rate->rate[rate],
288 size +=
sprintf(
BLS,
"3.3 MByte/sec, offset %d\n",
292 size +=
sprintf(
BLS,
" Transinfo settings: ");
293 size +=
sprintf(
BLS,
"current(%d/%d/%d/%d), ",
313 size +=
sprintf(
BLS,
" Total transfers %ld:\n (%ld/%ld/%ld/%ld reads/writes/REQ_BARRIER/Ordered Tags)\n",
317 size +=
sprintf(
BLS,
" Total transfers %ld:\n (%ld/%ld reads/writes)\n",
334 if (size >= aic7xxx_buffer_size)
339 if (offset > size - 1)
341 kfree(aic7xxx_buffer);
342 aic7xxx_buffer =
NULL;
343 aic7xxx_buffer_size = length = 0;
349 length =
min_t(
int, length, size - offset);
350 memcpy(buffer, &aic7xxx_buffer[offset], length);