dasd_fba.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. /*
  2. * File...........: linux/drivers/s390/block/dasd_fba.c
  3. * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
  4. * Bugreports.to..: <Linux390@de.ibm.com>
  5. * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000
  6. *
  7. */
  8. #include <linux/config.h>
  9. #include <linux/stddef.h>
  10. #include <linux/kernel.h>
  11. #include <asm/debug.h>
  12. #include <linux/slab.h>
  13. #include <linux/hdreg.h> /* HDIO_GETGEO */
  14. #include <linux/bio.h>
  15. #include <linux/module.h>
  16. #include <linux/init.h>
  17. #include <asm/idals.h>
  18. #include <asm/ebcdic.h>
  19. #include <asm/io.h>
  20. #include <asm/todclk.h>
  21. #include <asm/ccwdev.h>
  22. #include "dasd_int.h"
  23. #include "dasd_fba.h"
  24. #ifdef PRINTK_HEADER
  25. #undef PRINTK_HEADER
  26. #endif /* PRINTK_HEADER */
  27. #define PRINTK_HEADER "dasd(fba):"
  28. #define DASD_FBA_CCW_WRITE 0x41
  29. #define DASD_FBA_CCW_READ 0x42
  30. #define DASD_FBA_CCW_LOCATE 0x43
  31. #define DASD_FBA_CCW_DEFINE_EXTENT 0x63
  32. MODULE_LICENSE("GPL");
  33. static struct dasd_discipline dasd_fba_discipline;
  34. struct dasd_fba_private {
  35. struct dasd_fba_characteristics rdc_data;
  36. };
  37. static struct ccw_device_id dasd_fba_ids[] = {
  38. { CCW_DEVICE_DEVTYPE (0x6310, 0, 0x9336, 0), driver_info: 0x1},
  39. { CCW_DEVICE_DEVTYPE (0x3880, 0, 0x3370, 0), driver_info: 0x2},
  40. { /* end of list */ },
  41. };
  42. MODULE_DEVICE_TABLE(ccw, dasd_fba_ids);
  43. static struct ccw_driver dasd_fba_driver; /* see below */
  44. static int
  45. dasd_fba_probe(struct ccw_device *cdev)
  46. {
  47. return dasd_generic_probe(cdev, &dasd_fba_discipline);
  48. }
  49. static int
  50. dasd_fba_set_online(struct ccw_device *cdev)
  51. {
  52. return dasd_generic_set_online(cdev, &dasd_fba_discipline);
  53. }
  54. static struct ccw_driver dasd_fba_driver = {
  55. .name = "dasd-fba",
  56. .owner = THIS_MODULE,
  57. .ids = dasd_fba_ids,
  58. .probe = dasd_fba_probe,
  59. .remove = dasd_generic_remove,
  60. .set_offline = dasd_generic_set_offline,
  61. .set_online = dasd_fba_set_online,
  62. .notify = dasd_generic_notify,
  63. };
  64. static inline void
  65. define_extent(struct ccw1 * ccw, struct DE_fba_data *data, int rw,
  66. int blksize, int beg, int nr)
  67. {
  68. ccw->cmd_code = DASD_FBA_CCW_DEFINE_EXTENT;
  69. ccw->flags = 0;
  70. ccw->count = 16;
  71. ccw->cda = (__u32) __pa(data);
  72. memset(data, 0, sizeof (struct DE_fba_data));
  73. if (rw == WRITE)
  74. (data->mask).perm = 0x0;
  75. else if (rw == READ)
  76. (data->mask).perm = 0x1;
  77. else
  78. data->mask.perm = 0x2;
  79. data->blk_size = blksize;
  80. data->ext_loc = beg;
  81. data->ext_end = nr - 1;
  82. }
  83. static inline void
  84. locate_record(struct ccw1 * ccw, struct LO_fba_data *data, int rw,
  85. int block_nr, int block_ct)
  86. {
  87. ccw->cmd_code = DASD_FBA_CCW_LOCATE;
  88. ccw->flags = 0;
  89. ccw->count = 8;
  90. ccw->cda = (__u32) __pa(data);
  91. memset(data, 0, sizeof (struct LO_fba_data));
  92. if (rw == WRITE)
  93. data->operation.cmd = 0x5;
  94. else if (rw == READ)
  95. data->operation.cmd = 0x6;
  96. else
  97. data->operation.cmd = 0x8;
  98. data->blk_nr = block_nr;
  99. data->blk_ct = block_ct;
  100. }
  101. static int
  102. dasd_fba_check_characteristics(struct dasd_device *device)
  103. {
  104. struct dasd_fba_private *private;
  105. struct ccw_device *cdev = device->cdev;
  106. void *rdc_data;
  107. int rc;
  108. private = (struct dasd_fba_private *) device->private;
  109. if (private == NULL) {
  110. private = kzalloc(sizeof(struct dasd_fba_private), GFP_KERNEL);
  111. if (private == NULL) {
  112. DEV_MESSAGE(KERN_WARNING, device, "%s",
  113. "memory allocation failed for private "
  114. "data");
  115. return -ENOMEM;
  116. }
  117. device->private = (void *) private;
  118. }
  119. /* Read Device Characteristics */
  120. rdc_data = (void *) &(private->rdc_data);
  121. rc = read_dev_chars(device->cdev, &rdc_data, 32);
  122. if (rc) {
  123. DEV_MESSAGE(KERN_WARNING, device,
  124. "Read device characteristics returned error %d",
  125. rc);
  126. return rc;
  127. }
  128. DEV_MESSAGE(KERN_INFO, device,
  129. "%04X/%02X(CU:%04X/%02X) %dMB at(%d B/blk)",
  130. cdev->id.dev_type,
  131. cdev->id.dev_model,
  132. cdev->id.cu_type,
  133. cdev->id.cu_model,
  134. ((private->rdc_data.blk_bdsa *
  135. (private->rdc_data.blk_size >> 9)) >> 11),
  136. private->rdc_data.blk_size);
  137. return 0;
  138. }
  139. static int
  140. dasd_fba_do_analysis(struct dasd_device *device)
  141. {
  142. struct dasd_fba_private *private;
  143. int sb, rc;
  144. private = (struct dasd_fba_private *) device->private;
  145. rc = dasd_check_blocksize(private->rdc_data.blk_size);
  146. if (rc) {
  147. DEV_MESSAGE(KERN_INFO, device, "unknown blocksize %d",
  148. private->rdc_data.blk_size);
  149. return rc;
  150. }
  151. device->blocks = private->rdc_data.blk_bdsa;
  152. device->bp_block = private->rdc_data.blk_size;
  153. device->s2b_shift = 0; /* bits to shift 512 to get a block */
  154. for (sb = 512; sb < private->rdc_data.blk_size; sb = sb << 1)
  155. device->s2b_shift++;
  156. return 0;
  157. }
  158. static int
  159. dasd_fba_fill_geometry(struct dasd_device *device, struct hd_geometry *geo)
  160. {
  161. if (dasd_check_blocksize(device->bp_block) != 0)
  162. return -EINVAL;
  163. geo->cylinders = (device->blocks << device->s2b_shift) >> 10;
  164. geo->heads = 16;
  165. geo->sectors = 128 >> device->s2b_shift;
  166. return 0;
  167. }
  168. static dasd_era_t
  169. dasd_fba_examine_error(struct dasd_ccw_req * cqr, struct irb * irb)
  170. {
  171. struct dasd_device *device;
  172. struct ccw_device *cdev;
  173. device = (struct dasd_device *) cqr->device;
  174. if (irb->scsw.cstat == 0x00 &&
  175. irb->scsw.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END))
  176. return dasd_era_none;
  177. cdev = device->cdev;
  178. switch (cdev->id.dev_type) {
  179. case 0x3370:
  180. return dasd_3370_erp_examine(cqr, irb);
  181. case 0x9336:
  182. return dasd_9336_erp_examine(cqr, irb);
  183. default:
  184. return dasd_era_recover;
  185. }
  186. }
  187. static dasd_erp_fn_t
  188. dasd_fba_erp_action(struct dasd_ccw_req * cqr)
  189. {
  190. return dasd_default_erp_action;
  191. }
  192. static dasd_erp_fn_t
  193. dasd_fba_erp_postaction(struct dasd_ccw_req * cqr)
  194. {
  195. if (cqr->function == dasd_default_erp_action)
  196. return dasd_default_erp_postaction;
  197. DEV_MESSAGE(KERN_WARNING, cqr->device, "unknown ERP action %p",
  198. cqr->function);
  199. return NULL;
  200. }
  201. static struct dasd_ccw_req *
  202. dasd_fba_build_cp(struct dasd_device * device, struct request *req)
  203. {
  204. struct dasd_fba_private *private;
  205. unsigned long *idaws;
  206. struct LO_fba_data *LO_data;
  207. struct dasd_ccw_req *cqr;
  208. struct ccw1 *ccw;
  209. struct bio *bio;
  210. struct bio_vec *bv;
  211. char *dst;
  212. int count, cidaw, cplength, datasize;
  213. sector_t recid, first_rec, last_rec;
  214. unsigned int blksize, off;
  215. unsigned char cmd;
  216. int i;
  217. private = (struct dasd_fba_private *) device->private;
  218. if (rq_data_dir(req) == READ) {
  219. cmd = DASD_FBA_CCW_READ;
  220. } else if (rq_data_dir(req) == WRITE) {
  221. cmd = DASD_FBA_CCW_WRITE;
  222. } else
  223. return ERR_PTR(-EINVAL);
  224. blksize = device->bp_block;
  225. /* Calculate record id of first and last block. */
  226. first_rec = req->sector >> device->s2b_shift;
  227. last_rec = (req->sector + req->nr_sectors - 1) >> device->s2b_shift;
  228. /* Check struct bio and count the number of blocks for the request. */
  229. count = 0;
  230. cidaw = 0;
  231. rq_for_each_bio(bio, req) {
  232. bio_for_each_segment(bv, bio, i) {
  233. if (bv->bv_len & (blksize - 1))
  234. /* Fba can only do full blocks. */
  235. return ERR_PTR(-EINVAL);
  236. count += bv->bv_len >> (device->s2b_shift + 9);
  237. #if defined(CONFIG_64BIT)
  238. if (idal_is_needed (page_address(bv->bv_page),
  239. bv->bv_len))
  240. cidaw += bv->bv_len / blksize;
  241. #endif
  242. }
  243. }
  244. /* Paranoia. */
  245. if (count != last_rec - first_rec + 1)
  246. return ERR_PTR(-EINVAL);
  247. /* 1x define extent + 1x locate record + number of blocks */
  248. cplength = 2 + count;
  249. /* 1x define extent + 1x locate record */
  250. datasize = sizeof(struct DE_fba_data) + sizeof(struct LO_fba_data) +
  251. cidaw * sizeof(unsigned long);
  252. /*
  253. * Find out number of additional locate record ccws if the device
  254. * can't do data chaining.
  255. */
  256. if (private->rdc_data.mode.bits.data_chain == 0) {
  257. cplength += count - 1;
  258. datasize += (count - 1)*sizeof(struct LO_fba_data);
  259. }
  260. /* Allocate the ccw request. */
  261. cqr = dasd_smalloc_request(dasd_fba_discipline.name,
  262. cplength, datasize, device);
  263. if (IS_ERR(cqr))
  264. return cqr;
  265. ccw = cqr->cpaddr;
  266. /* First ccw is define extent. */
  267. define_extent(ccw++, cqr->data, rq_data_dir(req),
  268. device->bp_block, req->sector, req->nr_sectors);
  269. /* Build locate_record + read/write ccws. */
  270. idaws = (unsigned long *) (cqr->data + sizeof(struct DE_fba_data));
  271. LO_data = (struct LO_fba_data *) (idaws + cidaw);
  272. /* Locate record for all blocks for smart devices. */
  273. if (private->rdc_data.mode.bits.data_chain != 0) {
  274. ccw[-1].flags |= CCW_FLAG_CC;
  275. locate_record(ccw++, LO_data++, rq_data_dir(req), 0, count);
  276. }
  277. recid = first_rec;
  278. rq_for_each_bio(bio, req) bio_for_each_segment(bv, bio, i) {
  279. dst = page_address(bv->bv_page) + bv->bv_offset;
  280. if (dasd_page_cache) {
  281. char *copy = kmem_cache_alloc(dasd_page_cache,
  282. SLAB_DMA | __GFP_NOWARN);
  283. if (copy && rq_data_dir(req) == WRITE)
  284. memcpy(copy + bv->bv_offset, dst, bv->bv_len);
  285. if (copy)
  286. dst = copy + bv->bv_offset;
  287. }
  288. for (off = 0; off < bv->bv_len; off += blksize) {
  289. /* Locate record for stupid devices. */
  290. if (private->rdc_data.mode.bits.data_chain == 0) {
  291. ccw[-1].flags |= CCW_FLAG_CC;
  292. locate_record(ccw, LO_data++,
  293. rq_data_dir(req),
  294. recid - first_rec, 1);
  295. ccw->flags = CCW_FLAG_CC;
  296. ccw++;
  297. } else {
  298. if (recid > first_rec)
  299. ccw[-1].flags |= CCW_FLAG_DC;
  300. else
  301. ccw[-1].flags |= CCW_FLAG_CC;
  302. }
  303. ccw->cmd_code = cmd;
  304. ccw->count = device->bp_block;
  305. if (idal_is_needed(dst, blksize)) {
  306. ccw->cda = (__u32)(addr_t) idaws;
  307. ccw->flags = CCW_FLAG_IDA;
  308. idaws = idal_create_words(idaws, dst, blksize);
  309. } else {
  310. ccw->cda = (__u32)(addr_t) dst;
  311. ccw->flags = 0;
  312. }
  313. ccw++;
  314. dst += blksize;
  315. recid++;
  316. }
  317. }
  318. if (req->flags & REQ_FAILFAST)
  319. set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags);
  320. cqr->device = device;
  321. cqr->expires = 5 * 60 * HZ; /* 5 minutes */
  322. cqr->retries = 32;
  323. cqr->buildclk = get_clock();
  324. cqr->status = DASD_CQR_FILLED;
  325. return cqr;
  326. }
  327. static int
  328. dasd_fba_free_cp(struct dasd_ccw_req *cqr, struct request *req)
  329. {
  330. struct dasd_fba_private *private;
  331. struct ccw1 *ccw;
  332. struct bio *bio;
  333. struct bio_vec *bv;
  334. char *dst, *cda;
  335. unsigned int blksize, off;
  336. int i, status;
  337. if (!dasd_page_cache)
  338. goto out;
  339. private = (struct dasd_fba_private *) cqr->device->private;
  340. blksize = cqr->device->bp_block;
  341. ccw = cqr->cpaddr;
  342. /* Skip over define extent & locate record. */
  343. ccw++;
  344. if (private->rdc_data.mode.bits.data_chain != 0)
  345. ccw++;
  346. rq_for_each_bio(bio, req) bio_for_each_segment(bv, bio, i) {
  347. dst = page_address(bv->bv_page) + bv->bv_offset;
  348. for (off = 0; off < bv->bv_len; off += blksize) {
  349. /* Skip locate record. */
  350. if (private->rdc_data.mode.bits.data_chain == 0)
  351. ccw++;
  352. if (dst) {
  353. if (ccw->flags & CCW_FLAG_IDA)
  354. cda = *((char **)((addr_t) ccw->cda));
  355. else
  356. cda = (char *)((addr_t) ccw->cda);
  357. if (dst != cda) {
  358. if (rq_data_dir(req) == READ)
  359. memcpy(dst, cda, bv->bv_len);
  360. kmem_cache_free(dasd_page_cache,
  361. (void *)((addr_t)cda & PAGE_MASK));
  362. }
  363. dst = NULL;
  364. }
  365. ccw++;
  366. }
  367. }
  368. out:
  369. status = cqr->status == DASD_CQR_DONE;
  370. dasd_sfree_request(cqr, cqr->device);
  371. return status;
  372. }
  373. static int
  374. dasd_fba_fill_info(struct dasd_device * device,
  375. struct dasd_information2_t * info)
  376. {
  377. info->label_block = 1;
  378. info->FBA_layout = 1;
  379. info->format = DASD_FORMAT_LDL;
  380. info->characteristics_size = sizeof(struct dasd_fba_characteristics);
  381. memcpy(info->characteristics,
  382. &((struct dasd_fba_private *) device->private)->rdc_data,
  383. sizeof (struct dasd_fba_characteristics));
  384. info->confdata_size = 0;
  385. return 0;
  386. }
  387. static void
  388. dasd_fba_dump_sense(struct dasd_device *device, struct dasd_ccw_req * req,
  389. struct irb *irb)
  390. {
  391. char *page;
  392. struct ccw1 *act, *end, *last;
  393. int len, sl, sct, count;
  394. page = (char *) get_zeroed_page(GFP_ATOMIC);
  395. if (page == NULL) {
  396. DEV_MESSAGE(KERN_ERR, device, " %s",
  397. "No memory to dump sense data");
  398. return;
  399. }
  400. len = sprintf(page, KERN_ERR PRINTK_HEADER
  401. " I/O status report for device %s:\n",
  402. device->cdev->dev.bus_id);
  403. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  404. " in req: %p CS: 0x%02X DS: 0x%02X\n", req,
  405. irb->scsw.cstat, irb->scsw.dstat);
  406. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  407. " device %s: Failing CCW: %p\n",
  408. device->cdev->dev.bus_id,
  409. (void *) (addr_t) irb->scsw.cpa);
  410. if (irb->esw.esw0.erw.cons) {
  411. for (sl = 0; sl < 4; sl++) {
  412. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  413. " Sense(hex) %2d-%2d:",
  414. (8 * sl), ((8 * sl) + 7));
  415. for (sct = 0; sct < 8; sct++) {
  416. len += sprintf(page + len, " %02x",
  417. irb->ecw[8 * sl + sct]);
  418. }
  419. len += sprintf(page + len, "\n");
  420. }
  421. } else {
  422. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  423. " SORRY - NO VALID SENSE AVAILABLE\n");
  424. }
  425. MESSAGE_LOG(KERN_ERR, "%s",
  426. page + sizeof(KERN_ERR PRINTK_HEADER));
  427. /* dump the Channel Program */
  428. /* print first CCWs (maximum 8) */
  429. act = req->cpaddr;
  430. for (last = act; last->flags & (CCW_FLAG_CC | CCW_FLAG_DC); last++);
  431. end = min(act + 8, last);
  432. len = sprintf(page, KERN_ERR PRINTK_HEADER
  433. " Related CP in req: %p\n", req);
  434. while (act <= end) {
  435. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  436. " CCW %p: %08X %08X DAT:",
  437. act, ((int *) act)[0], ((int *) act)[1]);
  438. for (count = 0; count < 32 && count < act->count;
  439. count += sizeof(int))
  440. len += sprintf(page + len, " %08X",
  441. ((int *) (addr_t) act->cda)
  442. [(count>>2)]);
  443. len += sprintf(page + len, "\n");
  444. act++;
  445. }
  446. MESSAGE_LOG(KERN_ERR, "%s",
  447. page + sizeof(KERN_ERR PRINTK_HEADER));
  448. /* print failing CCW area */
  449. len = 0;
  450. if (act < ((struct ccw1 *)(addr_t) irb->scsw.cpa) - 2) {
  451. act = ((struct ccw1 *)(addr_t) irb->scsw.cpa) - 2;
  452. len += sprintf(page + len, KERN_ERR PRINTK_HEADER "......\n");
  453. }
  454. end = min((struct ccw1 *)(addr_t) irb->scsw.cpa + 2, last);
  455. while (act <= end) {
  456. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  457. " CCW %p: %08X %08X DAT:",
  458. act, ((int *) act)[0], ((int *) act)[1]);
  459. for (count = 0; count < 32 && count < act->count;
  460. count += sizeof(int))
  461. len += sprintf(page + len, " %08X",
  462. ((int *) (addr_t) act->cda)
  463. [(count>>2)]);
  464. len += sprintf(page + len, "\n");
  465. act++;
  466. }
  467. /* print last CCWs */
  468. if (act < last - 2) {
  469. act = last - 2;
  470. len += sprintf(page + len, KERN_ERR PRINTK_HEADER "......\n");
  471. }
  472. while (act <= last) {
  473. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  474. " CCW %p: %08X %08X DAT:",
  475. act, ((int *) act)[0], ((int *) act)[1]);
  476. for (count = 0; count < 32 && count < act->count;
  477. count += sizeof(int))
  478. len += sprintf(page + len, " %08X",
  479. ((int *) (addr_t) act->cda)
  480. [(count>>2)]);
  481. len += sprintf(page + len, "\n");
  482. act++;
  483. }
  484. if (len > 0)
  485. MESSAGE_LOG(KERN_ERR, "%s",
  486. page + sizeof(KERN_ERR PRINTK_HEADER));
  487. free_page((unsigned long) page);
  488. }
  489. /*
  490. * max_blocks is dependent on the amount of storage that is available
  491. * in the static io buffer for each device. Currently each device has
  492. * 8192 bytes (=2 pages). For 64 bit one dasd_mchunkt_t structure has
  493. * 24 bytes, the struct dasd_ccw_req has 136 bytes and each block can use
  494. * up to 16 bytes (8 for the ccw and 8 for the idal pointer). In
  495. * addition we have one define extent ccw + 16 bytes of data and a
  496. * locate record ccw for each block (stupid devices!) + 16 bytes of data.
  497. * That makes:
  498. * (8192 - 24 - 136 - 8 - 16) / 40 = 200.2 blocks at maximum.
  499. * We want to fit two into the available memory so that we can immediately
  500. * start the next request if one finishes off. That makes 100.1 blocks
  501. * for one request. Give a little safety and the result is 96.
  502. */
  503. static struct dasd_discipline dasd_fba_discipline = {
  504. .owner = THIS_MODULE,
  505. .name = "FBA ",
  506. .ebcname = "FBA ",
  507. .max_blocks = 96,
  508. .check_device = dasd_fba_check_characteristics,
  509. .do_analysis = dasd_fba_do_analysis,
  510. .fill_geometry = dasd_fba_fill_geometry,
  511. .start_IO = dasd_start_IO,
  512. .term_IO = dasd_term_IO,
  513. .examine_error = dasd_fba_examine_error,
  514. .erp_action = dasd_fba_erp_action,
  515. .erp_postaction = dasd_fba_erp_postaction,
  516. .build_cp = dasd_fba_build_cp,
  517. .free_cp = dasd_fba_free_cp,
  518. .dump_sense = dasd_fba_dump_sense,
  519. .fill_info = dasd_fba_fill_info,
  520. };
  521. static int __init
  522. dasd_fba_init(void)
  523. {
  524. ASCEBC(dasd_fba_discipline.ebcname, 4);
  525. return ccw_driver_register(&dasd_fba_driver);
  526. }
  527. static void __exit
  528. dasd_fba_cleanup(void)
  529. {
  530. ccw_driver_unregister(&dasd_fba_driver);
  531. }
  532. module_init(dasd_fba_init);
  533. module_exit(dasd_fba_cleanup);