ide-cs.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. /*======================================================================
  2. A driver for PCMCIA IDE/ATA disk cards
  3. ide-cs.c 1.3 2002/10/26 05:45:31
  4. The contents of this file are subject to the Mozilla Public
  5. License Version 1.1 (the "License"); you may not use this file
  6. except in compliance with the License. You may obtain a copy of
  7. the License at http://www.mozilla.org/MPL/
  8. Software distributed under the License is distributed on an "AS
  9. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10. implied. See the License for the specific language governing
  11. rights and limitations under the License.
  12. The initial developer of the original code is David A. Hinds
  13. <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
  14. are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
  15. Alternatively, the contents of this file may be used under the
  16. terms of the GNU General Public License version 2 (the "GPL"), in
  17. which case the provisions of the GPL are applicable instead of the
  18. above. If you wish to allow the use of your version of this file
  19. only under the terms of the GPL and not to allow others to use
  20. your version of this file under the MPL, indicate your decision
  21. by deleting the provisions above and replace them with the notice
  22. and other provisions required by the GPL. If you do not delete
  23. the provisions above, a recipient may use your version of this
  24. file under either the MPL or the GPL.
  25. ======================================================================*/
  26. #include <linux/module.h>
  27. #include <linux/kernel.h>
  28. #include <linux/init.h>
  29. #include <linux/sched.h>
  30. #include <linux/ptrace.h>
  31. #include <linux/slab.h>
  32. #include <linux/string.h>
  33. #include <linux/timer.h>
  34. #include <linux/ioport.h>
  35. #include <linux/ide.h>
  36. #include <linux/hdreg.h>
  37. #include <linux/major.h>
  38. #include <linux/delay.h>
  39. #include <asm/io.h>
  40. #include <asm/system.h>
  41. #include <pcmcia/cs_types.h>
  42. #include <pcmcia/cs.h>
  43. #include <pcmcia/cistpl.h>
  44. #include <pcmcia/ds.h>
  45. #include <pcmcia/cisreg.h>
  46. #include <pcmcia/ciscode.h>
  47. /*====================================================================*/
  48. /* Module parameters */
  49. MODULE_AUTHOR("David Hinds <dahinds@users.sourceforge.net>");
  50. MODULE_DESCRIPTION("PCMCIA ATA/IDE card driver");
  51. MODULE_LICENSE("Dual MPL/GPL");
  52. #define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
  53. #ifdef PCMCIA_DEBUG
  54. INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG);
  55. #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
  56. static char *version =
  57. "ide-cs.c 1.3 2002/10/26 05:45:31 (David Hinds)";
  58. #else
  59. #define DEBUG(n, args...)
  60. #endif
  61. /*====================================================================*/
  62. static const char ide_major[] = {
  63. IDE0_MAJOR, IDE1_MAJOR, IDE2_MAJOR, IDE3_MAJOR,
  64. IDE4_MAJOR, IDE5_MAJOR
  65. };
  66. typedef struct ide_info_t {
  67. dev_link_t link;
  68. int ndev;
  69. dev_node_t node;
  70. int hd;
  71. } ide_info_t;
  72. static void ide_release(dev_link_t *);
  73. static int ide_event(event_t event, int priority,
  74. event_callback_args_t *args);
  75. static dev_info_t dev_info = "ide-cs";
  76. static dev_link_t *ide_attach(void);
  77. static void ide_detach(dev_link_t *);
  78. static dev_link_t *dev_list = NULL;
  79. /*======================================================================
  80. ide_attach() creates an "instance" of the driver, allocating
  81. local data structures for one device. The device is registered
  82. with Card Services.
  83. ======================================================================*/
  84. static dev_link_t *ide_attach(void)
  85. {
  86. ide_info_t *info;
  87. dev_link_t *link;
  88. client_reg_t client_reg;
  89. int ret;
  90. DEBUG(0, "ide_attach()\n");
  91. /* Create new ide device */
  92. info = kmalloc(sizeof(*info), GFP_KERNEL);
  93. if (!info) return NULL;
  94. memset(info, 0, sizeof(*info));
  95. link = &info->link; link->priv = info;
  96. link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
  97. link->io.Attributes2 = IO_DATA_PATH_WIDTH_8;
  98. link->io.IOAddrLines = 3;
  99. link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
  100. link->irq.IRQInfo1 = IRQ_LEVEL_ID;
  101. link->conf.Attributes = CONF_ENABLE_IRQ;
  102. link->conf.Vcc = 50;
  103. link->conf.IntType = INT_MEMORY_AND_IO;
  104. /* Register with Card Services */
  105. link->next = dev_list;
  106. dev_list = link;
  107. client_reg.dev_info = &dev_info;
  108. client_reg.Version = 0x0210;
  109. client_reg.event_callback_args.client_data = link;
  110. ret = pcmcia_register_client(&link->handle, &client_reg);
  111. if (ret != CS_SUCCESS) {
  112. cs_error(link->handle, RegisterClient, ret);
  113. ide_detach(link);
  114. return NULL;
  115. }
  116. return link;
  117. } /* ide_attach */
  118. /*======================================================================
  119. This deletes a driver "instance". The device is de-registered
  120. with Card Services. If it has been released, all local data
  121. structures are freed. Otherwise, the structures will be freed
  122. when the device is released.
  123. ======================================================================*/
  124. static void ide_detach(dev_link_t *link)
  125. {
  126. dev_link_t **linkp;
  127. int ret;
  128. DEBUG(0, "ide_detach(0x%p)\n", link);
  129. /* Locate device structure */
  130. for (linkp = &dev_list; *linkp; linkp = &(*linkp)->next)
  131. if (*linkp == link) break;
  132. if (*linkp == NULL)
  133. return;
  134. if (link->state & DEV_CONFIG)
  135. ide_release(link);
  136. if (link->handle) {
  137. ret = pcmcia_deregister_client(link->handle);
  138. if (ret != CS_SUCCESS)
  139. cs_error(link->handle, DeregisterClient, ret);
  140. }
  141. /* Unlink, free device structure */
  142. *linkp = link->next;
  143. kfree(link->priv);
  144. } /* ide_detach */
  145. static int idecs_register(unsigned long io, unsigned long ctl, unsigned long irq)
  146. {
  147. hw_regs_t hw;
  148. memset(&hw, 0, sizeof(hw));
  149. ide_init_hwif_ports(&hw, io, ctl, NULL);
  150. hw.irq = irq;
  151. hw.chipset = ide_pci;
  152. return ide_register_hw_with_fixup(&hw, NULL, ide_undecoded_slave);
  153. }
  154. /*======================================================================
  155. ide_config() is scheduled to run after a CARD_INSERTION event
  156. is received, to configure the PCMCIA socket, and to make the
  157. ide device available to the system.
  158. ======================================================================*/
  159. #define CS_CHECK(fn, ret) \
  160. do { last_fn = (fn); if ((last_ret = (ret)) != 0) goto cs_failed; } while (0)
  161. static void ide_config(dev_link_t *link)
  162. {
  163. client_handle_t handle = link->handle;
  164. ide_info_t *info = link->priv;
  165. tuple_t tuple;
  166. struct {
  167. u_short buf[128];
  168. cisparse_t parse;
  169. config_info_t conf;
  170. cistpl_cftable_entry_t dflt;
  171. } *stk = NULL;
  172. cistpl_cftable_entry_t *cfg;
  173. int i, pass, last_ret = 0, last_fn = 0, hd, is_kme = 0;
  174. unsigned long io_base, ctl_base;
  175. DEBUG(0, "ide_config(0x%p)\n", link);
  176. stk = kmalloc(sizeof(*stk), GFP_KERNEL);
  177. if (!stk) goto err_mem;
  178. memset(stk, 0, sizeof(*stk));
  179. cfg = &stk->parse.cftable_entry;
  180. tuple.TupleData = (cisdata_t *)&stk->buf;
  181. tuple.TupleOffset = 0;
  182. tuple.TupleDataMax = 255;
  183. tuple.Attributes = 0;
  184. tuple.DesiredTuple = CISTPL_CONFIG;
  185. CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(handle, &tuple));
  186. CS_CHECK(GetTupleData, pcmcia_get_tuple_data(handle, &tuple));
  187. CS_CHECK(ParseTuple, pcmcia_parse_tuple(handle, &tuple, &stk->parse));
  188. link->conf.ConfigBase = stk->parse.config.base;
  189. link->conf.Present = stk->parse.config.rmask[0];
  190. tuple.DesiredTuple = CISTPL_MANFID;
  191. if (!pcmcia_get_first_tuple(handle, &tuple) &&
  192. !pcmcia_get_tuple_data(handle, &tuple) &&
  193. !pcmcia_parse_tuple(handle, &tuple, &stk->parse))
  194. is_kme = ((stk->parse.manfid.manf == MANFID_KME) &&
  195. ((stk->parse.manfid.card == PRODID_KME_KXLC005_A) ||
  196. (stk->parse.manfid.card == PRODID_KME_KXLC005_B)));
  197. /* Configure card */
  198. link->state |= DEV_CONFIG;
  199. /* Not sure if this is right... look up the current Vcc */
  200. CS_CHECK(GetConfigurationInfo, pcmcia_get_configuration_info(handle, &stk->conf));
  201. link->conf.Vcc = stk->conf.Vcc;
  202. pass = io_base = ctl_base = 0;
  203. tuple.DesiredTuple = CISTPL_CFTABLE_ENTRY;
  204. tuple.Attributes = 0;
  205. CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(handle, &tuple));
  206. while (1) {
  207. if (pcmcia_get_tuple_data(handle, &tuple) != 0) goto next_entry;
  208. if (pcmcia_parse_tuple(handle, &tuple, &stk->parse) != 0) goto next_entry;
  209. /* Check for matching Vcc, unless we're desperate */
  210. if (!pass) {
  211. if (cfg->vcc.present & (1 << CISTPL_POWER_VNOM)) {
  212. if (stk->conf.Vcc != cfg->vcc.param[CISTPL_POWER_VNOM] / 10000)
  213. goto next_entry;
  214. } else if (stk->dflt.vcc.present & (1 << CISTPL_POWER_VNOM)) {
  215. if (stk->conf.Vcc != stk->dflt.vcc.param[CISTPL_POWER_VNOM] / 10000)
  216. goto next_entry;
  217. }
  218. }
  219. if (cfg->vpp1.present & (1 << CISTPL_POWER_VNOM))
  220. link->conf.Vpp1 = link->conf.Vpp2 =
  221. cfg->vpp1.param[CISTPL_POWER_VNOM] / 10000;
  222. else if (stk->dflt.vpp1.present & (1 << CISTPL_POWER_VNOM))
  223. link->conf.Vpp1 = link->conf.Vpp2 =
  224. stk->dflt.vpp1.param[CISTPL_POWER_VNOM] / 10000;
  225. if ((cfg->io.nwin > 0) || (stk->dflt.io.nwin > 0)) {
  226. cistpl_io_t *io = (cfg->io.nwin) ? &cfg->io : &stk->dflt.io;
  227. link->conf.ConfigIndex = cfg->index;
  228. link->io.BasePort1 = io->win[0].base;
  229. link->io.IOAddrLines = io->flags & CISTPL_IO_LINES_MASK;
  230. if (!(io->flags & CISTPL_IO_16BIT))
  231. link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
  232. if (io->nwin == 2) {
  233. link->io.NumPorts1 = 8;
  234. link->io.BasePort2 = io->win[1].base;
  235. link->io.NumPorts2 = (is_kme) ? 2 : 1;
  236. if (pcmcia_request_io(link->handle, &link->io) != 0)
  237. goto next_entry;
  238. io_base = link->io.BasePort1;
  239. ctl_base = link->io.BasePort2;
  240. } else if ((io->nwin == 1) && (io->win[0].len >= 16)) {
  241. link->io.NumPorts1 = io->win[0].len;
  242. link->io.NumPorts2 = 0;
  243. if (pcmcia_request_io(link->handle, &link->io) != 0)
  244. goto next_entry;
  245. io_base = link->io.BasePort1;
  246. ctl_base = link->io.BasePort1 + 0x0e;
  247. } else goto next_entry;
  248. /* If we've got this far, we're done */
  249. break;
  250. }
  251. next_entry:
  252. if (cfg->flags & CISTPL_CFTABLE_DEFAULT)
  253. memcpy(&stk->dflt, cfg, sizeof(stk->dflt));
  254. if (pass) {
  255. CS_CHECK(GetNextTuple, pcmcia_get_next_tuple(handle, &tuple));
  256. } else if (pcmcia_get_next_tuple(handle, &tuple) != 0) {
  257. CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(handle, &tuple));
  258. memset(&stk->dflt, 0, sizeof(stk->dflt));
  259. pass++;
  260. }
  261. }
  262. CS_CHECK(RequestIRQ, pcmcia_request_irq(handle, &link->irq));
  263. CS_CHECK(RequestConfiguration, pcmcia_request_configuration(handle, &link->conf));
  264. /* disable drive interrupts during IDE probe */
  265. outb(0x02, ctl_base);
  266. /* special setup for KXLC005 card */
  267. if (is_kme)
  268. outb(0x81, ctl_base+1);
  269. /* retry registration in case device is still spinning up */
  270. for (hd = -1, i = 0; i < 10; i++) {
  271. hd = idecs_register(io_base, ctl_base, link->irq.AssignedIRQ);
  272. if (hd >= 0) break;
  273. if (link->io.NumPorts1 == 0x20) {
  274. outb(0x02, ctl_base + 0x10);
  275. hd = idecs_register(io_base + 0x10, ctl_base + 0x10,
  276. link->irq.AssignedIRQ);
  277. if (hd >= 0) {
  278. io_base += 0x10;
  279. ctl_base += 0x10;
  280. break;
  281. }
  282. }
  283. msleep(100);
  284. }
  285. if (hd < 0) {
  286. printk(KERN_NOTICE "ide-cs: ide_register() at 0x%3lx & 0x%3lx"
  287. ", irq %u failed\n", io_base, ctl_base,
  288. link->irq.AssignedIRQ);
  289. goto failed;
  290. }
  291. info->ndev = 1;
  292. sprintf(info->node.dev_name, "hd%c", 'a' + (hd * 2));
  293. info->node.major = ide_major[hd];
  294. info->node.minor = 0;
  295. info->hd = hd;
  296. link->dev = &info->node;
  297. printk(KERN_INFO "ide-cs: %s: Vcc = %d.%d, Vpp = %d.%d\n",
  298. info->node.dev_name, link->conf.Vcc / 10, link->conf.Vcc % 10,
  299. link->conf.Vpp1 / 10, link->conf.Vpp1 % 10);
  300. link->state &= ~DEV_CONFIG_PENDING;
  301. kfree(stk);
  302. return;
  303. err_mem:
  304. printk(KERN_NOTICE "ide-cs: ide_config failed memory allocation\n");
  305. goto failed;
  306. cs_failed:
  307. cs_error(link->handle, last_fn, last_ret);
  308. failed:
  309. kfree(stk);
  310. ide_release(link);
  311. link->state &= ~DEV_CONFIG_PENDING;
  312. } /* ide_config */
  313. /*======================================================================
  314. After a card is removed, ide_release() will unregister the net
  315. device, and release the PCMCIA configuration. If the device is
  316. still open, this will be postponed until it is closed.
  317. ======================================================================*/
  318. void ide_release(dev_link_t *link)
  319. {
  320. ide_info_t *info = link->priv;
  321. DEBUG(0, "ide_release(0x%p)\n", link);
  322. if (info->ndev) {
  323. /* FIXME: if this fails we need to queue the cleanup somehow
  324. -- need to investigate the required PCMCIA magic */
  325. ide_unregister(info->hd);
  326. }
  327. info->ndev = 0;
  328. link->dev = NULL;
  329. pcmcia_release_configuration(link->handle);
  330. pcmcia_release_io(link->handle, &link->io);
  331. pcmcia_release_irq(link->handle, &link->irq);
  332. link->state &= ~DEV_CONFIG;
  333. } /* ide_release */
  334. /*======================================================================
  335. The card status event handler. Mostly, this schedules other
  336. stuff to run after an event is received. A CARD_REMOVAL event
  337. also sets some flags to discourage the ide drivers from
  338. talking to the ports.
  339. ======================================================================*/
  340. int ide_event(event_t event, int priority,
  341. event_callback_args_t *args)
  342. {
  343. dev_link_t *link = args->client_data;
  344. DEBUG(1, "ide_event(0x%06x)\n", event);
  345. switch (event) {
  346. case CS_EVENT_CARD_REMOVAL:
  347. link->state &= ~DEV_PRESENT;
  348. if (link->state & DEV_CONFIG)
  349. ide_release(link);
  350. break;
  351. case CS_EVENT_CARD_INSERTION:
  352. link->state |= DEV_PRESENT | DEV_CONFIG_PENDING;
  353. ide_config(link);
  354. break;
  355. case CS_EVENT_PM_SUSPEND:
  356. link->state |= DEV_SUSPEND;
  357. /* Fall through... */
  358. case CS_EVENT_RESET_PHYSICAL:
  359. if (link->state & DEV_CONFIG)
  360. pcmcia_release_configuration(link->handle);
  361. break;
  362. case CS_EVENT_PM_RESUME:
  363. link->state &= ~DEV_SUSPEND;
  364. /* Fall through... */
  365. case CS_EVENT_CARD_RESET:
  366. if (DEV_OK(link))
  367. pcmcia_request_configuration(link->handle, &link->conf);
  368. break;
  369. }
  370. return 0;
  371. } /* ide_event */
  372. static struct pcmcia_device_id ide_ids[] = {
  373. PCMCIA_DEVICE_FUNC_ID(4),
  374. PCMCIA_DEVICE_MANF_CARD(0x0032, 0x0704),
  375. PCMCIA_DEVICE_MANF_CARD(0x0045, 0x0401),
  376. PCMCIA_DEVICE_MANF_CARD(0x0098, 0x0000), /* Toshiba */
  377. PCMCIA_DEVICE_MANF_CARD(0x00a4, 0x002d),
  378. PCMCIA_DEVICE_MANF_CARD(0x00ce, 0x0000), /* Samsung */
  379. PCMCIA_DEVICE_MANF_CARD(0x2080, 0x0001),
  380. PCMCIA_DEVICE_MANF_CARD(0x4e01, 0x0200), /* Lexar */
  381. PCMCIA_DEVICE_PROD_ID123("Caravelle", "PSC-IDE ", "PSC000", 0x8c36137c, 0xd0693ab8, 0x2768a9f0),
  382. PCMCIA_DEVICE_PROD_ID123("CDROM", "IDE", "MCD-601p", 0x1b9179ca, 0xede88951, 0x0d902f74),
  383. PCMCIA_DEVICE_PROD_ID123("PCMCIA", "IDE CARD", "F1", 0x281f1c5d, 0x1907960c, 0xf7fde8b9),
  384. PCMCIA_DEVICE_PROD_ID12("ARGOSY", "CD-ROM", 0x78f308dc, 0x66536591),
  385. PCMCIA_DEVICE_PROD_ID12("ARGOSY", "PnPIDE", 0x78f308dc, 0x0c694728),
  386. PCMCIA_DEVICE_PROD_ID12("CNF CD-M", "CD-ROM", 0x7d93b852, 0x66536591),
  387. PCMCIA_DEVICE_PROD_ID12("Creative Technology Ltd.", "PCMCIA CD-ROM Interface Card", 0xff8c8a45, 0xfe8020c4),
  388. PCMCIA_DEVICE_PROD_ID12("Digital Equipment Corporation.", "Digital Mobile Media CD-ROM", 0x17692a66, 0xef1dcbde),
  389. PCMCIA_DEVICE_PROD_ID12("EXP", "CD+GAME", 0x6f58c983, 0x63c13aaf),
  390. PCMCIA_DEVICE_PROD_ID12("EXP ", "CD-ROM", 0x0a5c52fd, 0x66536591),
  391. PCMCIA_DEVICE_PROD_ID12("EXP ", "PnPIDE", 0x0a5c52fd, 0x0c694728),
  392. PCMCIA_DEVICE_PROD_ID12("FREECOM", "PCCARD-IDE", 0x5714cbf7, 0x48e0ab8e),
  393. PCMCIA_DEVICE_PROD_ID12("IBM", "IBM17JSSFP20", 0xb569a6e5, 0xf2508753),
  394. PCMCIA_DEVICE_PROD_ID12("IO DATA", "CBIDE2 ", 0x547e66dc, 0x8671043b),
  395. PCMCIA_DEVICE_PROD_ID12("IO DATA", "PCIDE", 0x547e66dc, 0x5c5ab149),
  396. PCMCIA_DEVICE_PROD_ID12("IO DATA", "PCIDEII", 0x547e66dc, 0xb3662674),
  397. PCMCIA_DEVICE_PROD_ID12("LOOKMEET", "CBIDE2 ", 0xe37be2b5, 0x8671043b),
  398. PCMCIA_DEVICE_PROD_ID12(" ", "NinjaATA-", 0x3b6e20c8, 0xebe0bd79),
  399. PCMCIA_DEVICE_PROD_ID12("PCMCIA", "CD-ROM", 0x281f1c5d, 0x66536591),
  400. PCMCIA_DEVICE_PROD_ID12("PCMCIA", "PnPIDE", 0x281f1c5d, 0x0c694728),
  401. PCMCIA_DEVICE_PROD_ID12("SHUTTLE TECHNOLOGY LTD.", "PCCARD-IDE/ATAPI Adapter", 0x4a3f0ba0, 0x322560e1),
  402. PCMCIA_DEVICE_PROD_ID12("TOSHIBA", "MK2001MPL", 0xb4585a1a, 0x3489e003),
  403. PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852),
  404. PCMCIA_DEVICE_PROD_ID1("STI Flash", 0xe4a13209),
  405. PCMCIA_DEVICE_PROD_ID12("STI", "Flash 5.0", 0xbf2df18d, 0x8cb57a0e),
  406. PCMCIA_MFC_DEVICE_PROD_ID12(1, "SanDisk", "ConnectPlus", 0x7a954bd9, 0x74be00c6),
  407. PCMCIA_DEVICE_NULL,
  408. };
  409. MODULE_DEVICE_TABLE(pcmcia, ide_ids);
  410. static struct pcmcia_driver ide_cs_driver = {
  411. .owner = THIS_MODULE,
  412. .drv = {
  413. .name = "ide-cs",
  414. },
  415. .attach = ide_attach,
  416. .event = ide_event,
  417. .detach = ide_detach,
  418. .id_table = ide_ids,
  419. };
  420. static int __init init_ide_cs(void)
  421. {
  422. return pcmcia_register_driver(&ide_cs_driver);
  423. }
  424. static void __exit exit_ide_cs(void)
  425. {
  426. pcmcia_unregister_driver(&ide_cs_driver);
  427. BUG_ON(dev_list != NULL);
  428. }
  429. late_initcall(init_ide_cs);
  430. module_exit(exit_ide_cs);