eesox.c 16 KB

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