pata_icside.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. #include <linux/kernel.h>
  2. #include <linux/module.h>
  3. #include <linux/init.h>
  4. #include <linux/blkdev.h>
  5. #include <linux/gfp.h>
  6. #include <scsi/scsi_host.h>
  7. #include <linux/ata.h>
  8. #include <linux/libata.h>
  9. #include <asm/dma.h>
  10. #include <asm/ecard.h>
  11. #define DRV_NAME "pata_icside"
  12. #define ICS_IDENT_OFFSET 0x2280
  13. #define ICS_ARCIN_V5_INTRSTAT 0x0000
  14. #define ICS_ARCIN_V5_INTROFFSET 0x0004
  15. #define ICS_ARCIN_V6_INTROFFSET_1 0x2200
  16. #define ICS_ARCIN_V6_INTRSTAT_1 0x2290
  17. #define ICS_ARCIN_V6_INTROFFSET_2 0x3200
  18. #define ICS_ARCIN_V6_INTRSTAT_2 0x3290
  19. struct portinfo {
  20. unsigned int dataoffset;
  21. unsigned int ctrloffset;
  22. unsigned int stepping;
  23. };
  24. static const struct portinfo pata_icside_portinfo_v5 = {
  25. .dataoffset = 0x2800,
  26. .ctrloffset = 0x2b80,
  27. .stepping = 6,
  28. };
  29. static const struct portinfo pata_icside_portinfo_v6_1 = {
  30. .dataoffset = 0x2000,
  31. .ctrloffset = 0x2380,
  32. .stepping = 6,
  33. };
  34. static const struct portinfo pata_icside_portinfo_v6_2 = {
  35. .dataoffset = 0x3000,
  36. .ctrloffset = 0x3380,
  37. .stepping = 6,
  38. };
  39. struct pata_icside_state {
  40. void __iomem *irq_port;
  41. void __iomem *ioc_base;
  42. unsigned int type;
  43. unsigned int dma;
  44. struct {
  45. u8 port_sel;
  46. u8 disabled;
  47. unsigned int speed[ATA_MAX_DEVICES];
  48. } port[2];
  49. };
  50. struct pata_icside_info {
  51. struct pata_icside_state *state;
  52. struct expansion_card *ec;
  53. void __iomem *base;
  54. void __iomem *irqaddr;
  55. unsigned int irqmask;
  56. const expansioncard_ops_t *irqops;
  57. unsigned int mwdma_mask;
  58. unsigned int nr_ports;
  59. const struct portinfo *port[2];
  60. unsigned long raw_base;
  61. unsigned long raw_ioc_base;
  62. };
  63. #define ICS_TYPE_A3IN 0
  64. #define ICS_TYPE_A3USER 1
  65. #define ICS_TYPE_V6 3
  66. #define ICS_TYPE_V5 15
  67. #define ICS_TYPE_NOTYPE ((unsigned int)-1)
  68. /* ---------------- Version 5 PCB Support Functions --------------------- */
  69. /* Prototype: pata_icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr)
  70. * Purpose : enable interrupts from card
  71. */
  72. static void pata_icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr)
  73. {
  74. struct pata_icside_state *state = ec->irq_data;
  75. writeb(0, state->irq_port + ICS_ARCIN_V5_INTROFFSET);
  76. }
  77. /* Prototype: pata_icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr)
  78. * Purpose : disable interrupts from card
  79. */
  80. static void pata_icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr)
  81. {
  82. struct pata_icside_state *state = ec->irq_data;
  83. readb(state->irq_port + ICS_ARCIN_V5_INTROFFSET);
  84. }
  85. static const expansioncard_ops_t pata_icside_ops_arcin_v5 = {
  86. .irqenable = pata_icside_irqenable_arcin_v5,
  87. .irqdisable = pata_icside_irqdisable_arcin_v5,
  88. };
  89. /* ---------------- Version 6 PCB Support Functions --------------------- */
  90. /* Prototype: pata_icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr)
  91. * Purpose : enable interrupts from card
  92. */
  93. static void pata_icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr)
  94. {
  95. struct pata_icside_state *state = ec->irq_data;
  96. void __iomem *base = state->irq_port;
  97. if (!state->port[0].disabled)
  98. writeb(0, base + ICS_ARCIN_V6_INTROFFSET_1);
  99. if (!state->port[1].disabled)
  100. writeb(0, base + ICS_ARCIN_V6_INTROFFSET_2);
  101. }
  102. /* Prototype: pata_icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr)
  103. * Purpose : disable interrupts from card
  104. */
  105. static void pata_icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr)
  106. {
  107. struct pata_icside_state *state = ec->irq_data;
  108. readb(state->irq_port + ICS_ARCIN_V6_INTROFFSET_1);
  109. readb(state->irq_port + ICS_ARCIN_V6_INTROFFSET_2);
  110. }
  111. /* Prototype: pata_icside_irqprobe(struct expansion_card *ec)
  112. * Purpose : detect an active interrupt from card
  113. */
  114. static int pata_icside_irqpending_arcin_v6(struct expansion_card *ec)
  115. {
  116. struct pata_icside_state *state = ec->irq_data;
  117. return readb(state->irq_port + ICS_ARCIN_V6_INTRSTAT_1) & 1 ||
  118. readb(state->irq_port + ICS_ARCIN_V6_INTRSTAT_2) & 1;
  119. }
  120. static const expansioncard_ops_t pata_icside_ops_arcin_v6 = {
  121. .irqenable = pata_icside_irqenable_arcin_v6,
  122. .irqdisable = pata_icside_irqdisable_arcin_v6,
  123. .irqpending = pata_icside_irqpending_arcin_v6,
  124. };
  125. /*
  126. * SG-DMA support.
  127. *
  128. * Similar to the BM-DMA, but we use the RiscPCs IOMD DMA controllers.
  129. * There is only one DMA controller per card, which means that only
  130. * one drive can be accessed at one time. NOTE! We do not enforce that
  131. * here, but we rely on the main IDE driver spotting that both
  132. * interfaces use the same IRQ, which should guarantee this.
  133. */
  134. /*
  135. * Configure the IOMD to give the appropriate timings for the transfer
  136. * mode being requested. We take the advice of the ATA standards, and
  137. * calculate the cycle time based on the transfer mode, and the EIDE
  138. * MW DMA specs that the drive provides in the IDENTIFY command.
  139. *
  140. * We have the following IOMD DMA modes to choose from:
  141. *
  142. * Type Active Recovery Cycle
  143. * A 250 (250) 312 (550) 562 (800)
  144. * B 187 (200) 250 (550) 437 (750)
  145. * C 125 (125) 125 (375) 250 (500)
  146. * D 62 (50) 125 (375) 187 (425)
  147. *
  148. * (figures in brackets are actual measured timings on DIOR/DIOW)
  149. *
  150. * However, we also need to take care of the read/write active and
  151. * recovery timings:
  152. *
  153. * Read Write
  154. * Mode Active -- Recovery -- Cycle IOMD type
  155. * MW0 215 50 215 480 A
  156. * MW1 80 50 50 150 C
  157. * MW2 70 25 25 120 C
  158. */
  159. static void pata_icside_set_dmamode(struct ata_port *ap, struct ata_device *adev)
  160. {
  161. struct pata_icside_state *state = ap->host->private_data;
  162. struct ata_timing t;
  163. unsigned int cycle;
  164. char iomd_type;
  165. /*
  166. * DMA is based on a 16MHz clock
  167. */
  168. if (ata_timing_compute(adev, adev->dma_mode, &t, 1000, 1))
  169. return;
  170. /*
  171. * Choose the IOMD cycle timing which ensure that the interface
  172. * satisfies the measured active, recovery and cycle times.
  173. */
  174. if (t.active <= 50 && t.recover <= 375 && t.cycle <= 425)
  175. iomd_type = 'D', cycle = 187;
  176. else if (t.active <= 125 && t.recover <= 375 && t.cycle <= 500)
  177. iomd_type = 'C', cycle = 250;
  178. else if (t.active <= 200 && t.recover <= 550 && t.cycle <= 750)
  179. iomd_type = 'B', cycle = 437;
  180. else
  181. iomd_type = 'A', cycle = 562;
  182. ata_dev_info(adev, "timings: act %dns rec %dns cyc %dns (%c)\n",
  183. t.active, t.recover, t.cycle, iomd_type);
  184. state->port[ap->port_no].speed[adev->devno] = cycle;
  185. }
  186. static void pata_icside_bmdma_setup(struct ata_queued_cmd *qc)
  187. {
  188. struct ata_port *ap = qc->ap;
  189. struct pata_icside_state *state = ap->host->private_data;
  190. unsigned int write = qc->tf.flags & ATA_TFLAG_WRITE;
  191. /*
  192. * We are simplex; BUG if we try to fiddle with DMA
  193. * while it's active.
  194. */
  195. BUG_ON(dma_channel_active(state->dma));
  196. /*
  197. * Route the DMA signals to the correct interface
  198. */
  199. writeb(state->port[ap->port_no].port_sel, state->ioc_base);
  200. set_dma_speed(state->dma, state->port[ap->port_no].speed[qc->dev->devno]);
  201. set_dma_sg(state->dma, qc->sg, qc->n_elem);
  202. set_dma_mode(state->dma, write ? DMA_MODE_WRITE : DMA_MODE_READ);
  203. /* issue r/w command */
  204. ap->ops->sff_exec_command(ap, &qc->tf);
  205. }
  206. static void pata_icside_bmdma_start(struct ata_queued_cmd *qc)
  207. {
  208. struct ata_port *ap = qc->ap;
  209. struct pata_icside_state *state = ap->host->private_data;
  210. BUG_ON(dma_channel_active(state->dma));
  211. enable_dma(state->dma);
  212. }
  213. static void pata_icside_bmdma_stop(struct ata_queued_cmd *qc)
  214. {
  215. struct ata_port *ap = qc->ap;
  216. struct pata_icside_state *state = ap->host->private_data;
  217. disable_dma(state->dma);
  218. /* see ata_bmdma_stop */
  219. ata_sff_dma_pause(ap);
  220. }
  221. static u8 pata_icside_bmdma_status(struct ata_port *ap)
  222. {
  223. struct pata_icside_state *state = ap->host->private_data;
  224. void __iomem *irq_port;
  225. irq_port = state->irq_port + (ap->port_no ? ICS_ARCIN_V6_INTRSTAT_2 :
  226. ICS_ARCIN_V6_INTRSTAT_1);
  227. return readb(irq_port) & 1 ? ATA_DMA_INTR : 0;
  228. }
  229. static int icside_dma_init(struct pata_icside_info *info)
  230. {
  231. struct pata_icside_state *state = info->state;
  232. struct expansion_card *ec = info->ec;
  233. int i;
  234. for (i = 0; i < ATA_MAX_DEVICES; i++) {
  235. state->port[0].speed[i] = 480;
  236. state->port[1].speed[i] = 480;
  237. }
  238. if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) {
  239. state->dma = ec->dma;
  240. info->mwdma_mask = ATA_MWDMA2;
  241. }
  242. return 0;
  243. }
  244. static struct scsi_host_template pata_icside_sht = {
  245. ATA_BASE_SHT(DRV_NAME),
  246. .sg_tablesize = SCSI_MAX_SG_CHAIN_SEGMENTS,
  247. .dma_boundary = IOMD_DMA_BOUNDARY,
  248. };
  249. static void pata_icside_postreset(struct ata_link *link, unsigned int *classes)
  250. {
  251. struct ata_port *ap = link->ap;
  252. struct pata_icside_state *state = ap->host->private_data;
  253. if (classes[0] != ATA_DEV_NONE || classes[1] != ATA_DEV_NONE)
  254. return ata_sff_postreset(link, classes);
  255. state->port[ap->port_no].disabled = 1;
  256. if (state->type == ICS_TYPE_V6) {
  257. /*
  258. * Disable interrupts from this port, otherwise we
  259. * receive spurious interrupts from the floating
  260. * interrupt line.
  261. */
  262. void __iomem *irq_port = state->irq_port +
  263. (ap->port_no ? ICS_ARCIN_V6_INTROFFSET_2 : ICS_ARCIN_V6_INTROFFSET_1);
  264. readb(irq_port);
  265. }
  266. }
  267. static struct ata_port_operations pata_icside_port_ops = {
  268. .inherits = &ata_bmdma_port_ops,
  269. /* no need to build any PRD tables for DMA */
  270. .qc_prep = ata_noop_qc_prep,
  271. .sff_data_xfer = ata_sff_data_xfer_noirq,
  272. .bmdma_setup = pata_icside_bmdma_setup,
  273. .bmdma_start = pata_icside_bmdma_start,
  274. .bmdma_stop = pata_icside_bmdma_stop,
  275. .bmdma_status = pata_icside_bmdma_status,
  276. .cable_detect = ata_cable_40wire,
  277. .set_dmamode = pata_icside_set_dmamode,
  278. .postreset = pata_icside_postreset,
  279. .port_start = ATA_OP_NULL, /* don't need PRD table */
  280. };
  281. static void pata_icside_setup_ioaddr(struct ata_port *ap, void __iomem *base,
  282. struct pata_icside_info *info,
  283. const struct portinfo *port)
  284. {
  285. struct ata_ioports *ioaddr = &ap->ioaddr;
  286. void __iomem *cmd = base + port->dataoffset;
  287. ioaddr->cmd_addr = cmd;
  288. ioaddr->data_addr = cmd + (ATA_REG_DATA << port->stepping);
  289. ioaddr->error_addr = cmd + (ATA_REG_ERR << port->stepping);
  290. ioaddr->feature_addr = cmd + (ATA_REG_FEATURE << port->stepping);
  291. ioaddr->nsect_addr = cmd + (ATA_REG_NSECT << port->stepping);
  292. ioaddr->lbal_addr = cmd + (ATA_REG_LBAL << port->stepping);
  293. ioaddr->lbam_addr = cmd + (ATA_REG_LBAM << port->stepping);
  294. ioaddr->lbah_addr = cmd + (ATA_REG_LBAH << port->stepping);
  295. ioaddr->device_addr = cmd + (ATA_REG_DEVICE << port->stepping);
  296. ioaddr->status_addr = cmd + (ATA_REG_STATUS << port->stepping);
  297. ioaddr->command_addr = cmd + (ATA_REG_CMD << port->stepping);
  298. ioaddr->ctl_addr = base + port->ctrloffset;
  299. ioaddr->altstatus_addr = ioaddr->ctl_addr;
  300. ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx",
  301. info->raw_base + port->dataoffset,
  302. info->raw_base + port->ctrloffset);
  303. if (info->raw_ioc_base)
  304. ata_port_desc(ap, "iocbase 0x%lx", info->raw_ioc_base);
  305. }
  306. static int pata_icside_register_v5(struct pata_icside_info *info)
  307. {
  308. struct pata_icside_state *state = info->state;
  309. void __iomem *base;
  310. base = ecardm_iomap(info->ec, ECARD_RES_MEMC, 0, 0);
  311. if (!base)
  312. return -ENOMEM;
  313. state->irq_port = base;
  314. info->base = base;
  315. info->irqaddr = base + ICS_ARCIN_V5_INTRSTAT;
  316. info->irqmask = 1;
  317. info->irqops = &pata_icside_ops_arcin_v5;
  318. info->nr_ports = 1;
  319. info->port[0] = &pata_icside_portinfo_v5;
  320. info->raw_base = ecard_resource_start(info->ec, ECARD_RES_MEMC);
  321. return 0;
  322. }
  323. static int pata_icside_register_v6(struct pata_icside_info *info)
  324. {
  325. struct pata_icside_state *state = info->state;
  326. struct expansion_card *ec = info->ec;
  327. void __iomem *ioc_base, *easi_base;
  328. unsigned int sel = 0;
  329. ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0);
  330. if (!ioc_base)
  331. return -ENOMEM;
  332. easi_base = ioc_base;
  333. if (ecard_resource_flags(ec, ECARD_RES_EASI)) {
  334. easi_base = ecardm_iomap(ec, ECARD_RES_EASI, 0, 0);
  335. if (!easi_base)
  336. return -ENOMEM;
  337. /*
  338. * Enable access to the EASI region.
  339. */
  340. sel = 1 << 5;
  341. }
  342. writeb(sel, ioc_base);
  343. state->irq_port = easi_base;
  344. state->ioc_base = ioc_base;
  345. state->port[0].port_sel = sel;
  346. state->port[1].port_sel = sel | 1;
  347. info->base = easi_base;
  348. info->irqops = &pata_icside_ops_arcin_v6;
  349. info->nr_ports = 2;
  350. info->port[0] = &pata_icside_portinfo_v6_1;
  351. info->port[1] = &pata_icside_portinfo_v6_2;
  352. info->raw_base = ecard_resource_start(ec, ECARD_RES_EASI);
  353. info->raw_ioc_base = ecard_resource_start(ec, ECARD_RES_IOCFAST);
  354. return icside_dma_init(info);
  355. }
  356. static int pata_icside_add_ports(struct pata_icside_info *info)
  357. {
  358. struct expansion_card *ec = info->ec;
  359. struct ata_host *host;
  360. int i;
  361. if (info->irqaddr) {
  362. ec->irqaddr = info->irqaddr;
  363. ec->irqmask = info->irqmask;
  364. }
  365. if (info->irqops)
  366. ecard_setirq(ec, info->irqops, info->state);
  367. /*
  368. * Be on the safe side - disable interrupts
  369. */
  370. ec->ops->irqdisable(ec, ec->irq);
  371. host = ata_host_alloc(&ec->dev, info->nr_ports);
  372. if (!host)
  373. return -ENOMEM;
  374. host->private_data = info->state;
  375. host->flags = ATA_HOST_SIMPLEX;
  376. for (i = 0; i < info->nr_ports; i++) {
  377. struct ata_port *ap = host->ports[i];
  378. ap->pio_mask = ATA_PIO4;
  379. ap->mwdma_mask = info->mwdma_mask;
  380. ap->flags |= ATA_FLAG_SLAVE_POSS;
  381. ap->ops = &pata_icside_port_ops;
  382. pata_icside_setup_ioaddr(ap, info->base, info, info->port[i]);
  383. }
  384. return ata_host_activate(host, ec->irq, ata_bmdma_interrupt, 0,
  385. &pata_icside_sht);
  386. }
  387. static int pata_icside_probe(struct expansion_card *ec,
  388. const struct ecard_id *id)
  389. {
  390. struct pata_icside_state *state;
  391. struct pata_icside_info info;
  392. void __iomem *idmem;
  393. int ret;
  394. ret = ecard_request_resources(ec);
  395. if (ret)
  396. goto out;
  397. state = devm_kzalloc(&ec->dev, sizeof(*state), GFP_KERNEL);
  398. if (!state) {
  399. ret = -ENOMEM;
  400. goto release;
  401. }
  402. state->type = ICS_TYPE_NOTYPE;
  403. state->dma = NO_DMA;
  404. idmem = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0);
  405. if (idmem) {
  406. unsigned int type;
  407. type = readb(idmem + ICS_IDENT_OFFSET) & 1;
  408. type |= (readb(idmem + ICS_IDENT_OFFSET + 4) & 1) << 1;
  409. type |= (readb(idmem + ICS_IDENT_OFFSET + 8) & 1) << 2;
  410. type |= (readb(idmem + ICS_IDENT_OFFSET + 12) & 1) << 3;
  411. ecardm_iounmap(ec, idmem);
  412. state->type = type;
  413. }
  414. memset(&info, 0, sizeof(info));
  415. info.state = state;
  416. info.ec = ec;
  417. switch (state->type) {
  418. case ICS_TYPE_A3IN:
  419. dev_warn(&ec->dev, "A3IN unsupported\n");
  420. ret = -ENODEV;
  421. break;
  422. case ICS_TYPE_A3USER:
  423. dev_warn(&ec->dev, "A3USER unsupported\n");
  424. ret = -ENODEV;
  425. break;
  426. case ICS_TYPE_V5:
  427. ret = pata_icside_register_v5(&info);
  428. break;
  429. case ICS_TYPE_V6:
  430. ret = pata_icside_register_v6(&info);
  431. break;
  432. default:
  433. dev_warn(&ec->dev, "unknown interface type\n");
  434. ret = -ENODEV;
  435. break;
  436. }
  437. if (ret == 0)
  438. ret = pata_icside_add_ports(&info);
  439. if (ret == 0)
  440. goto out;
  441. release:
  442. ecard_release_resources(ec);
  443. out:
  444. return ret;
  445. }
  446. static void pata_icside_shutdown(struct expansion_card *ec)
  447. {
  448. struct ata_host *host = ecard_get_drvdata(ec);
  449. unsigned long flags;
  450. /*
  451. * Disable interrupts from this card. We need to do
  452. * this before disabling EASI since we may be accessing
  453. * this register via that region.
  454. */
  455. local_irq_save(flags);
  456. ec->ops->irqdisable(ec, ec->irq);
  457. local_irq_restore(flags);
  458. /*
  459. * Reset the ROM pointer so that we can read the ROM
  460. * after a soft reboot. This also disables access to
  461. * the IDE taskfile via the EASI region.
  462. */
  463. if (host) {
  464. struct pata_icside_state *state = host->private_data;
  465. if (state->ioc_base)
  466. writeb(0, state->ioc_base);
  467. }
  468. }
  469. static void pata_icside_remove(struct expansion_card *ec)
  470. {
  471. struct ata_host *host = ecard_get_drvdata(ec);
  472. struct pata_icside_state *state = host->private_data;
  473. ata_host_detach(host);
  474. pata_icside_shutdown(ec);
  475. /*
  476. * don't NULL out the drvdata - devres/libata wants it
  477. * to free the ata_host structure.
  478. */
  479. if (state->dma != NO_DMA)
  480. free_dma(state->dma);
  481. ecard_release_resources(ec);
  482. }
  483. static const struct ecard_id pata_icside_ids[] = {
  484. { MANU_ICS, PROD_ICS_IDE },
  485. { MANU_ICS2, PROD_ICS2_IDE },
  486. { 0xffff, 0xffff }
  487. };
  488. static struct ecard_driver pata_icside_driver = {
  489. .probe = pata_icside_probe,
  490. .remove = pata_icside_remove,
  491. .shutdown = pata_icside_shutdown,
  492. .id_table = pata_icside_ids,
  493. .drv = {
  494. .name = DRV_NAME,
  495. },
  496. };
  497. static int __init pata_icside_init(void)
  498. {
  499. return ecard_register_driver(&pata_icside_driver);
  500. }
  501. static void __exit pata_icside_exit(void)
  502. {
  503. ecard_remove_driver(&pata_icside_driver);
  504. }
  505. MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>");
  506. MODULE_LICENSE("GPL");
  507. MODULE_DESCRIPTION("ICS PATA driver");
  508. module_init(pata_icside_init);
  509. module_exit(pata_icside_exit);