eesox.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. /*
  2. * linux/drivers/acorn/scsi/eesox.c
  3. *
  4. * Copyright (C) 1997-2005 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This driver is based on experimentation. Hence, it may have made
  11. * assumptions about the particular card that I have available, and
  12. * may not be reliable!
  13. *
  14. * Changelog:
  15. * 01-10-1997 RMK Created, READONLY version
  16. * 15-02-1998 RMK READ/WRITE version
  17. * added DMA support and hardware definitions
  18. * 14-03-1998 RMK Updated DMA support
  19. * Added terminator control
  20. * 15-04-1998 RMK Only do PIO if FAS216 will allow it.
  21. * 27-06-1998 RMK Changed asm/delay.h to linux/delay.h
  22. * 02-04-2000 RMK 0.0.3 Fixed NO_IRQ/NO_DMA problem, updated for new
  23. * error handling code.
  24. */
  25. #include <linux/module.h>
  26. #include <linux/blkdev.h>
  27. #include <linux/kernel.h>
  28. #include <linux/string.h>
  29. #include <linux/ioport.h>
  30. #include <linux/proc_fs.h>
  31. #include <linux/delay.h>
  32. #include <linux/interrupt.h>
  33. #include <linux/init.h>
  34. #include <linux/dma-mapping.h>
  35. #include <asm/io.h>
  36. #include <asm/dma.h>
  37. #include <asm/ecard.h>
  38. #include <asm/pgtable.h>
  39. #include "../scsi.h"
  40. #include <scsi/scsi_host.h>
  41. #include "fas216.h"
  42. #include "scsi.h"
  43. #include <scsi/scsicam.h>
  44. #define EESOX_FAS216_OFFSET 0x3000
  45. #define EESOX_FAS216_SHIFT 5
  46. #define EESOX_DMASTAT 0x2800
  47. #define EESOX_STAT_INTR 0x01
  48. #define EESOX_STAT_DMA 0x02
  49. #define EESOX_CONTROL 0x2800
  50. #define EESOX_INTR_ENABLE 0x04
  51. #define EESOX_TERM_ENABLE 0x02
  52. #define EESOX_RESET 0x01
  53. #define EESOX_DMADATA 0x3800
  54. #define VERSION "1.10 (17/01/2003 2.5.59)"
  55. /*
  56. * Use term=0,1,0,0,0 to turn terminators on/off
  57. */
  58. static int term[MAX_ECARDS] = { 1, 1, 1, 1, 1, 1, 1, 1 };
  59. #define NR_SG 256
  60. struct eesoxscsi_info {
  61. FAS216_Info info;
  62. struct expansion_card *ec;
  63. void __iomem *base;
  64. void __iomem *ctl_port;
  65. unsigned int control;
  66. struct scatterlist sg[NR_SG]; /* Scatter DMA list */
  67. };
  68. /* Prototype: void eesoxscsi_irqenable(ec, irqnr)
  69. * Purpose : Enable interrupts on EESOX SCSI card
  70. * Params : ec - expansion card structure
  71. * : irqnr - interrupt number
  72. */
  73. static void
  74. eesoxscsi_irqenable(struct expansion_card *ec, int irqnr)
  75. {
  76. struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data;
  77. info->control |= EESOX_INTR_ENABLE;
  78. writeb(info->control, info->ctl_port);
  79. }
  80. /* Prototype: void eesoxscsi_irqdisable(ec, irqnr)
  81. * Purpose : Disable interrupts on EESOX SCSI card
  82. * Params : ec - expansion card structure
  83. * : irqnr - interrupt number
  84. */
  85. static void
  86. eesoxscsi_irqdisable(struct expansion_card *ec, int irqnr)
  87. {
  88. struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data;
  89. info->control &= ~EESOX_INTR_ENABLE;
  90. writeb(info->control, info->ctl_port);
  91. }
  92. static const expansioncard_ops_t eesoxscsi_ops = {
  93. .irqenable = eesoxscsi_irqenable,
  94. .irqdisable = eesoxscsi_irqdisable,
  95. };
  96. /* Prototype: void eesoxscsi_terminator_ctl(*host, on_off)
  97. * Purpose : Turn the EESOX SCSI terminators on or off
  98. * Params : host - card to turn on/off
  99. * : on_off - !0 to turn on, 0 to turn off
  100. */
  101. static void
  102. eesoxscsi_terminator_ctl(struct Scsi_Host *host, int on_off)
  103. {
  104. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  105. unsigned long flags;
  106. spin_lock_irqsave(host->host_lock, flags);
  107. if (on_off)
  108. info->control |= EESOX_TERM_ENABLE;
  109. else
  110. info->control &= ~EESOX_TERM_ENABLE;
  111. writeb(info->control, info->ctl_port);
  112. spin_unlock_irqrestore(host->host_lock, flags);
  113. }
  114. /* Prototype: void eesoxscsi_intr(irq, *dev_id, *regs)
  115. * Purpose : handle interrupts from EESOX SCSI card
  116. * Params : irq - interrupt number
  117. * dev_id - user-defined (Scsi_Host structure)
  118. */
  119. static irqreturn_t
  120. eesoxscsi_intr(int irq, void *dev_id)
  121. {
  122. struct eesoxscsi_info *info = dev_id;
  123. return fas216_intr(&info->info);
  124. }
  125. /* Prototype: fasdmatype_t eesoxscsi_dma_setup(host, SCpnt, direction, min_type)
  126. * Purpose : initialises DMA/PIO
  127. * Params : host - host
  128. * SCpnt - command
  129. * direction - DMA on to/off of card
  130. * min_type - minimum DMA support that we must have for this transfer
  131. * Returns : type of transfer to be performed
  132. */
  133. static fasdmatype_t
  134. eesoxscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp,
  135. fasdmadir_t direction, fasdmatype_t min_type)
  136. {
  137. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  138. struct device *dev = scsi_get_device(host);
  139. int dmach = info->info.scsi.dma;
  140. if (dmach != NO_DMA &&
  141. (min_type == fasdma_real_all || SCp->this_residual >= 512)) {
  142. int bufs, map_dir, dma_dir;
  143. bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG);
  144. if (direction == DMA_OUT)
  145. map_dir = DMA_TO_DEVICE,
  146. dma_dir = DMA_MODE_WRITE;
  147. else
  148. map_dir = DMA_FROM_DEVICE,
  149. dma_dir = DMA_MODE_READ;
  150. dma_map_sg(dev, info->sg, bufs, map_dir);
  151. disable_dma(dmach);
  152. set_dma_sg(dmach, info->sg, bufs);
  153. set_dma_mode(dmach, dma_dir);
  154. enable_dma(dmach);
  155. return fasdma_real_all;
  156. }
  157. /*
  158. * We don't do DMA, we only do slow PIO
  159. *
  160. * Some day, we will do Pseudo DMA
  161. */
  162. return fasdma_pseudo;
  163. }
  164. static void eesoxscsi_buffer_in(void *buf, int length, void __iomem *base)
  165. {
  166. const void __iomem *reg_fas = base + EESOX_FAS216_OFFSET;
  167. const void __iomem *reg_dmastat = base + EESOX_DMASTAT;
  168. const void __iomem *reg_dmadata = base + EESOX_DMADATA;
  169. register const unsigned long mask = 0xffff;
  170. do {
  171. unsigned int status;
  172. /*
  173. * Interrupt request?
  174. */
  175. status = readb(reg_fas + (REG_STAT << EESOX_FAS216_SHIFT));
  176. if (status & STAT_INT)
  177. break;
  178. /*
  179. * DMA request active?
  180. */
  181. status = readb(reg_dmastat);
  182. if (!(status & EESOX_STAT_DMA))
  183. continue;
  184. /*
  185. * Get number of bytes in FIFO
  186. */
  187. status = readb(reg_fas + (REG_CFIS << EESOX_FAS216_SHIFT)) & CFIS_CF;
  188. if (status > 16)
  189. status = 16;
  190. if (status > length)
  191. status = length;
  192. /*
  193. * Align buffer.
  194. */
  195. if (((u32)buf) & 2 && status >= 2) {
  196. *(u16 *)buf = readl(reg_dmadata);
  197. buf += 2;
  198. status -= 2;
  199. length -= 2;
  200. }
  201. if (status >= 8) {
  202. unsigned long l1, l2;
  203. l1 = readl(reg_dmadata) & mask;
  204. l1 |= readl(reg_dmadata) << 16;
  205. l2 = readl(reg_dmadata) & mask;
  206. l2 |= readl(reg_dmadata) << 16;
  207. *(u32 *)buf = l1;
  208. buf += 4;
  209. *(u32 *)buf = l2;
  210. buf += 4;
  211. length -= 8;
  212. continue;
  213. }
  214. if (status >= 4) {
  215. unsigned long l1;
  216. l1 = readl(reg_dmadata) & mask;
  217. l1 |= readl(reg_dmadata) << 16;
  218. *(u32 *)buf = l1;
  219. buf += 4;
  220. length -= 4;
  221. continue;
  222. }
  223. if (status >= 2) {
  224. *(u16 *)buf = readl(reg_dmadata);
  225. buf += 2;
  226. length -= 2;
  227. }
  228. } while (length);
  229. }
  230. static void eesoxscsi_buffer_out(void *buf, int length, void __iomem *base)
  231. {
  232. const void __iomem *reg_fas = base + EESOX_FAS216_OFFSET;
  233. const void __iomem *reg_dmastat = base + EESOX_DMASTAT;
  234. void __iomem *reg_dmadata = base + EESOX_DMADATA;
  235. do {
  236. unsigned int status;
  237. /*
  238. * Interrupt request?
  239. */
  240. status = readb(reg_fas + (REG_STAT << EESOX_FAS216_SHIFT));
  241. if (status & STAT_INT)
  242. break;
  243. /*
  244. * DMA request active?
  245. */
  246. status = readb(reg_dmastat);
  247. if (!(status & EESOX_STAT_DMA))
  248. continue;
  249. /*
  250. * Get number of bytes in FIFO
  251. */
  252. status = readb(reg_fas + (REG_CFIS << EESOX_FAS216_SHIFT)) & CFIS_CF;
  253. if (status > 16)
  254. status = 16;
  255. status = 16 - status;
  256. if (status > length)
  257. status = length;
  258. status &= ~1;
  259. /*
  260. * Align buffer.
  261. */
  262. if (((u32)buf) & 2 && status >= 2) {
  263. writel(*(u16 *)buf << 16, reg_dmadata);
  264. buf += 2;
  265. status -= 2;
  266. length -= 2;
  267. }
  268. if (status >= 8) {
  269. unsigned long l1, l2;
  270. l1 = *(u32 *)buf;
  271. buf += 4;
  272. l2 = *(u32 *)buf;
  273. buf += 4;
  274. writel(l1 << 16, reg_dmadata);
  275. writel(l1, reg_dmadata);
  276. writel(l2 << 16, reg_dmadata);
  277. writel(l2, reg_dmadata);
  278. length -= 8;
  279. continue;
  280. }
  281. if (status >= 4) {
  282. unsigned long l1;
  283. l1 = *(u32 *)buf;
  284. buf += 4;
  285. writel(l1 << 16, reg_dmadata);
  286. writel(l1, reg_dmadata);
  287. length -= 4;
  288. continue;
  289. }
  290. if (status >= 2) {
  291. writel(*(u16 *)buf << 16, reg_dmadata);
  292. buf += 2;
  293. length -= 2;
  294. }
  295. } while (length);
  296. }
  297. static void
  298. eesoxscsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp,
  299. fasdmadir_t dir, int transfer_size)
  300. {
  301. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  302. if (dir == DMA_IN) {
  303. eesoxscsi_buffer_in(SCp->ptr, SCp->this_residual, info->base);
  304. } else {
  305. eesoxscsi_buffer_out(SCp->ptr, SCp->this_residual, info->base);
  306. }
  307. }
  308. /* Prototype: int eesoxscsi_dma_stop(host, SCpnt)
  309. * Purpose : stops DMA/PIO
  310. * Params : host - host
  311. * SCpnt - command
  312. */
  313. static void
  314. eesoxscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp)
  315. {
  316. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  317. if (info->info.scsi.dma != NO_DMA)
  318. disable_dma(info->info.scsi.dma);
  319. }
  320. /* Prototype: const char *eesoxscsi_info(struct Scsi_Host * host)
  321. * Purpose : returns a descriptive string about this interface,
  322. * Params : host - driver host structure to return info for.
  323. * Returns : pointer to a static buffer containing null terminated string.
  324. */
  325. const char *eesoxscsi_info(struct Scsi_Host *host)
  326. {
  327. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  328. static char string[150];
  329. sprintf(string, "%s (%s) in slot %d v%s terminators o%s",
  330. host->hostt->name, info->info.scsi.type, info->ec->slot_no,
  331. VERSION, info->control & EESOX_TERM_ENABLE ? "n" : "ff");
  332. return string;
  333. }
  334. /* Prototype: int eesoxscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
  335. * Purpose : Set a driver specific function
  336. * Params : host - host to setup
  337. * : buffer - buffer containing string describing operation
  338. * : length - length of string
  339. * Returns : -EINVAL, or 0
  340. */
  341. static int
  342. eesoxscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
  343. {
  344. int ret = length;
  345. if (length >= 9 && strncmp(buffer, "EESOXSCSI", 9) == 0) {
  346. buffer += 9;
  347. length -= 9;
  348. if (length >= 5 && strncmp(buffer, "term=", 5) == 0) {
  349. if (buffer[5] == '1')
  350. eesoxscsi_terminator_ctl(host, 1);
  351. else if (buffer[5] == '0')
  352. eesoxscsi_terminator_ctl(host, 0);
  353. else
  354. ret = -EINVAL;
  355. } else
  356. ret = -EINVAL;
  357. } else
  358. ret = -EINVAL;
  359. return ret;
  360. }
  361. static int eesoxscsi_show_info(struct seq_file *m, struct Scsi_Host *host)
  362. {
  363. struct eesoxscsi_info *info;
  364. info = (struct eesoxscsi_info *)host->hostdata;
  365. seq_printf(m, "EESOX SCSI driver v%s\n", VERSION);
  366. fas216_print_host(&info->info, m);
  367. seq_printf(m, "Term : o%s\n",
  368. info->control & EESOX_TERM_ENABLE ? "n" : "ff");
  369. fas216_print_stats(&info->info, m);
  370. fas216_print_devices(&info->info, m);
  371. return 0;
  372. }
  373. static ssize_t eesoxscsi_show_term(struct device *dev, struct device_attribute *attr, char *buf)
  374. {
  375. struct expansion_card *ec = ECARD_DEV(dev);
  376. struct Scsi_Host *host = ecard_get_drvdata(ec);
  377. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  378. return sprintf(buf, "%d\n", info->control & EESOX_TERM_ENABLE ? 1 : 0);
  379. }
  380. static ssize_t eesoxscsi_store_term(struct device *dev, struct device_attribute *attr, const char *buf, size_t len)
  381. {
  382. struct expansion_card *ec = ECARD_DEV(dev);
  383. struct Scsi_Host *host = ecard_get_drvdata(ec);
  384. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  385. unsigned long flags;
  386. if (len > 1) {
  387. spin_lock_irqsave(host->host_lock, flags);
  388. if (buf[0] != '0') {
  389. info->control |= EESOX_TERM_ENABLE;
  390. } else {
  391. info->control &= ~EESOX_TERM_ENABLE;
  392. }
  393. writeb(info->control, info->ctl_port);
  394. spin_unlock_irqrestore(host->host_lock, flags);
  395. }
  396. return len;
  397. }
  398. static DEVICE_ATTR(bus_term, S_IRUGO | S_IWUSR,
  399. eesoxscsi_show_term, eesoxscsi_store_term);
  400. static struct scsi_host_template eesox_template = {
  401. .module = THIS_MODULE,
  402. .show_info = eesoxscsi_show_info,
  403. .write_info = eesoxscsi_set_proc_info,
  404. .name = "EESOX SCSI",
  405. .info = eesoxscsi_info,
  406. .queuecommand = fas216_queue_command,
  407. .eh_host_reset_handler = fas216_eh_host_reset,
  408. .eh_bus_reset_handler = fas216_eh_bus_reset,
  409. .eh_device_reset_handler = fas216_eh_device_reset,
  410. .eh_abort_handler = fas216_eh_abort,
  411. .can_queue = 1,
  412. .this_id = 7,
  413. .sg_tablesize = SG_MAX_SEGMENTS,
  414. .dma_boundary = IOMD_DMA_BOUNDARY,
  415. .use_clustering = DISABLE_CLUSTERING,
  416. .proc_name = "eesox",
  417. };
  418. static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
  419. {
  420. struct Scsi_Host *host;
  421. struct eesoxscsi_info *info;
  422. void __iomem *base;
  423. int ret;
  424. ret = ecard_request_resources(ec);
  425. if (ret)
  426. goto out;
  427. base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0);
  428. if (!base) {
  429. ret = -ENOMEM;
  430. goto out_region;
  431. }
  432. host = scsi_host_alloc(&eesox_template,
  433. sizeof(struct eesoxscsi_info));
  434. if (!host) {
  435. ret = -ENOMEM;
  436. goto out_region;
  437. }
  438. ecard_set_drvdata(ec, host);
  439. info = (struct eesoxscsi_info *)host->hostdata;
  440. info->ec = ec;
  441. info->base = base;
  442. info->ctl_port = base + EESOX_CONTROL;
  443. info->control = term[ec->slot_no] ? EESOX_TERM_ENABLE : 0;
  444. writeb(info->control, info->ctl_port);
  445. info->info.scsi.io_base = base + EESOX_FAS216_OFFSET;
  446. info->info.scsi.io_shift = EESOX_FAS216_SHIFT;
  447. info->info.scsi.irq = ec->irq;
  448. info->info.scsi.dma = ec->dma;
  449. info->info.ifcfg.clockrate = 40; /* MHz */
  450. info->info.ifcfg.select_timeout = 255;
  451. info->info.ifcfg.asyncperiod = 200; /* ns */
  452. info->info.ifcfg.sync_max_depth = 7;
  453. info->info.ifcfg.cntl3 = CNTL3_FASTSCSI | CNTL3_FASTCLK;
  454. info->info.ifcfg.disconnect_ok = 1;
  455. info->info.ifcfg.wide_max_size = 0;
  456. info->info.ifcfg.capabilities = FASCAP_PSEUDODMA;
  457. info->info.dma.setup = eesoxscsi_dma_setup;
  458. info->info.dma.pseudo = eesoxscsi_dma_pseudo;
  459. info->info.dma.stop = eesoxscsi_dma_stop;
  460. ec->irqaddr = base + EESOX_DMASTAT;
  461. ec->irqmask = EESOX_STAT_INTR;
  462. ecard_setirq(ec, &eesoxscsi_ops, info);
  463. device_create_file(&ec->dev, &dev_attr_bus_term);
  464. ret = fas216_init(host);
  465. if (ret)
  466. goto out_free;
  467. ret = request_irq(ec->irq, eesoxscsi_intr, 0, "eesoxscsi", info);
  468. if (ret) {
  469. printk("scsi%d: IRQ%d not free: %d\n",
  470. host->host_no, ec->irq, ret);
  471. goto out_remove;
  472. }
  473. if (info->info.scsi.dma != NO_DMA) {
  474. if (request_dma(info->info.scsi.dma, "eesox")) {
  475. printk("scsi%d: DMA%d not free, DMA disabled\n",
  476. host->host_no, info->info.scsi.dma);
  477. info->info.scsi.dma = NO_DMA;
  478. } else {
  479. set_dma_speed(info->info.scsi.dma, 180);
  480. info->info.ifcfg.capabilities |= FASCAP_DMA;
  481. info->info.ifcfg.cntl3 |= CNTL3_BS8;
  482. }
  483. }
  484. ret = fas216_add(host, &ec->dev);
  485. if (ret == 0)
  486. goto out;
  487. if (info->info.scsi.dma != NO_DMA)
  488. free_dma(info->info.scsi.dma);
  489. free_irq(ec->irq, host);
  490. out_remove:
  491. fas216_remove(host);
  492. out_free:
  493. device_remove_file(&ec->dev, &dev_attr_bus_term);
  494. scsi_host_put(host);
  495. out_region:
  496. ecard_release_resources(ec);
  497. out:
  498. return ret;
  499. }
  500. static void eesoxscsi_remove(struct expansion_card *ec)
  501. {
  502. struct Scsi_Host *host = ecard_get_drvdata(ec);
  503. struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
  504. ecard_set_drvdata(ec, NULL);
  505. fas216_remove(host);
  506. if (info->info.scsi.dma != NO_DMA)
  507. free_dma(info->info.scsi.dma);
  508. free_irq(ec->irq, info);
  509. device_remove_file(&ec->dev, &dev_attr_bus_term);
  510. fas216_release(host);
  511. scsi_host_put(host);
  512. ecard_release_resources(ec);
  513. }
  514. static const struct ecard_id eesoxscsi_cids[] = {
  515. { MANU_EESOX, PROD_EESOX_SCSI2 },
  516. { 0xffff, 0xffff },
  517. };
  518. static struct ecard_driver eesoxscsi_driver = {
  519. .probe = eesoxscsi_probe,
  520. .remove = eesoxscsi_remove,
  521. .id_table = eesoxscsi_cids,
  522. .drv = {
  523. .name = "eesoxscsi",
  524. },
  525. };
  526. static int __init eesox_init(void)
  527. {
  528. return ecard_register_driver(&eesoxscsi_driver);
  529. }
  530. static void __exit eesox_exit(void)
  531. {
  532. ecard_remove_driver(&eesoxscsi_driver);
  533. }
  534. module_init(eesox_init);
  535. module_exit(eesox_exit);
  536. MODULE_AUTHOR("Russell King");
  537. MODULE_DESCRIPTION("EESOX 'Fast' SCSI driver for Acorn machines");
  538. module_param_array(term, int, NULL, 0);
  539. MODULE_PARM_DESC(term, "SCSI bus termination");
  540. MODULE_LICENSE("GPL");