device_ops.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  1. /*
  2. * drivers/s390/cio/device_ops.c
  3. *
  4. * Copyright (C) 2002 IBM Deutschland Entwicklung GmbH,
  5. * IBM Corporation
  6. * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
  7. * Cornelia Huck (cornelia.huck@de.ibm.com)
  8. */
  9. #include <linux/module.h>
  10. #include <linux/init.h>
  11. #include <linux/errno.h>
  12. #include <linux/slab.h>
  13. #include <linux/list.h>
  14. #include <linux/device.h>
  15. #include <linux/delay.h>
  16. #include <asm/ccwdev.h>
  17. #include <asm/idals.h>
  18. #include <asm/chpid.h>
  19. #include "cio.h"
  20. #include "cio_debug.h"
  21. #include "css.h"
  22. #include "chsc.h"
  23. #include "device.h"
  24. #include "chp.h"
  25. /**
  26. * ccw_device_set_options_mask() - set some options and unset the rest
  27. * @cdev: device for which the options are to be set
  28. * @flags: options to be set
  29. *
  30. * All flags specified in @flags are set, all flags not specified in @flags
  31. * are cleared.
  32. * Returns:
  33. * %0 on success, -%EINVAL on an invalid flag combination.
  34. */
  35. int ccw_device_set_options_mask(struct ccw_device *cdev, unsigned long flags)
  36. {
  37. /*
  38. * The flag usage is mutal exclusive ...
  39. */
  40. if ((flags & CCWDEV_EARLY_NOTIFICATION) &&
  41. (flags & CCWDEV_REPORT_ALL))
  42. return -EINVAL;
  43. cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0;
  44. cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0;
  45. cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0;
  46. cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0;
  47. return 0;
  48. }
  49. /**
  50. * ccw_device_set_options() - set some options
  51. * @cdev: device for which the options are to be set
  52. * @flags: options to be set
  53. *
  54. * All flags specified in @flags are set, the remainder is left untouched.
  55. * Returns:
  56. * %0 on success, -%EINVAL if an invalid flag combination would ensue.
  57. */
  58. int ccw_device_set_options(struct ccw_device *cdev, unsigned long flags)
  59. {
  60. /*
  61. * The flag usage is mutal exclusive ...
  62. */
  63. if (((flags & CCWDEV_EARLY_NOTIFICATION) &&
  64. (flags & CCWDEV_REPORT_ALL)) ||
  65. ((flags & CCWDEV_EARLY_NOTIFICATION) &&
  66. cdev->private->options.repall) ||
  67. ((flags & CCWDEV_REPORT_ALL) &&
  68. cdev->private->options.fast))
  69. return -EINVAL;
  70. cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0;
  71. cdev->private->options.repall |= (flags & CCWDEV_REPORT_ALL) != 0;
  72. cdev->private->options.pgroup |= (flags & CCWDEV_DO_PATHGROUP) != 0;
  73. cdev->private->options.force |= (flags & CCWDEV_ALLOW_FORCE) != 0;
  74. return 0;
  75. }
  76. /**
  77. * ccw_device_clear_options() - clear some options
  78. * @cdev: device for which the options are to be cleared
  79. * @flags: options to be cleared
  80. *
  81. * All flags specified in @flags are cleared, the remainder is left untouched.
  82. */
  83. void ccw_device_clear_options(struct ccw_device *cdev, unsigned long flags)
  84. {
  85. cdev->private->options.fast &= (flags & CCWDEV_EARLY_NOTIFICATION) == 0;
  86. cdev->private->options.repall &= (flags & CCWDEV_REPORT_ALL) == 0;
  87. cdev->private->options.pgroup &= (flags & CCWDEV_DO_PATHGROUP) == 0;
  88. cdev->private->options.force &= (flags & CCWDEV_ALLOW_FORCE) == 0;
  89. }
  90. /**
  91. * ccw_device_clear() - terminate I/O request processing
  92. * @cdev: target ccw device
  93. * @intparm: interruption parameter; value is only used if no I/O is
  94. * outstanding, otherwise the intparm associated with the I/O request
  95. * is returned
  96. *
  97. * ccw_device_clear() calls csch on @cdev's subchannel.
  98. * Returns:
  99. * %0 on success,
  100. * -%ENODEV on device not operational,
  101. * -%EINVAL on invalid device state.
  102. * Context:
  103. * Interrupts disabled, ccw device lock held
  104. */
  105. int ccw_device_clear(struct ccw_device *cdev, unsigned long intparm)
  106. {
  107. struct subchannel *sch;
  108. int ret;
  109. if (!cdev)
  110. return -ENODEV;
  111. if (cdev->private->state == DEV_STATE_NOT_OPER)
  112. return -ENODEV;
  113. if (cdev->private->state != DEV_STATE_ONLINE &&
  114. cdev->private->state != DEV_STATE_W4SENSE)
  115. return -EINVAL;
  116. sch = to_subchannel(cdev->dev.parent);
  117. if (!sch)
  118. return -ENODEV;
  119. ret = cio_clear(sch);
  120. if (ret == 0)
  121. cdev->private->intparm = intparm;
  122. return ret;
  123. }
  124. /**
  125. * ccw_device_start_key() - start a s390 channel program with key
  126. * @cdev: target ccw device
  127. * @cpa: logical start address of channel program
  128. * @intparm: user specific interruption parameter; will be presented back to
  129. * @cdev's interrupt handler. Allows a device driver to associate
  130. * the interrupt with a particular I/O request.
  131. * @lpm: defines the channel path to be used for a specific I/O request. A
  132. * value of 0 will make cio use the opm.
  133. * @key: storage key to be used for the I/O
  134. * @flags: additional flags; defines the action to be performed for I/O
  135. * processing.
  136. *
  137. * Start a S/390 channel program. When the interrupt arrives, the
  138. * IRQ handler is called, either immediately, delayed (dev-end missing,
  139. * or sense required) or never (no IRQ handler registered).
  140. * Returns:
  141. * %0, if the operation was successful;
  142. * -%EBUSY, if the device is busy, or status pending;
  143. * -%EACCES, if no path specified in @lpm is operational;
  144. * -%ENODEV, if the device is not operational.
  145. * Context:
  146. * Interrupts disabled, ccw device lock held
  147. */
  148. int ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa,
  149. unsigned long intparm, __u8 lpm, __u8 key,
  150. unsigned long flags)
  151. {
  152. struct subchannel *sch;
  153. int ret;
  154. if (!cdev)
  155. return -ENODEV;
  156. sch = to_subchannel(cdev->dev.parent);
  157. if (!sch)
  158. return -ENODEV;
  159. if (cdev->private->state == DEV_STATE_NOT_OPER)
  160. return -ENODEV;
  161. if (cdev->private->state == DEV_STATE_VERIFY ||
  162. cdev->private->state == DEV_STATE_CLEAR_VERIFY) {
  163. /* Remember to fake irb when finished. */
  164. if (!cdev->private->flags.fake_irb) {
  165. cdev->private->flags.fake_irb = 1;
  166. cdev->private->intparm = intparm;
  167. return 0;
  168. } else
  169. /* There's already a fake I/O around. */
  170. return -EBUSY;
  171. }
  172. if (cdev->private->state != DEV_STATE_ONLINE ||
  173. ((sch->schib.scsw.stctl & SCSW_STCTL_PRIM_STATUS) &&
  174. !(sch->schib.scsw.stctl & SCSW_STCTL_SEC_STATUS)) ||
  175. cdev->private->flags.doverify)
  176. return -EBUSY;
  177. ret = cio_set_options (sch, flags);
  178. if (ret)
  179. return ret;
  180. /* Adjust requested path mask to excluded varied off paths. */
  181. if (lpm) {
  182. lpm &= sch->opm;
  183. if (lpm == 0)
  184. return -EACCES;
  185. }
  186. ret = cio_start_key (sch, cpa, lpm, key);
  187. switch (ret) {
  188. case 0:
  189. cdev->private->intparm = intparm;
  190. break;
  191. case -EACCES:
  192. case -ENODEV:
  193. dev_fsm_event(cdev, DEV_EVENT_VERIFY);
  194. break;
  195. }
  196. return ret;
  197. }
  198. /**
  199. * ccw_device_start_timeout_key() - start a s390 channel program with timeout and key
  200. * @cdev: target ccw device
  201. * @cpa: logical start address of channel program
  202. * @intparm: user specific interruption parameter; will be presented back to
  203. * @cdev's interrupt handler. Allows a device driver to associate
  204. * the interrupt with a particular I/O request.
  205. * @lpm: defines the channel path to be used for a specific I/O request. A
  206. * value of 0 will make cio use the opm.
  207. * @key: storage key to be used for the I/O
  208. * @flags: additional flags; defines the action to be performed for I/O
  209. * processing.
  210. * @expires: timeout value in jiffies
  211. *
  212. * Start a S/390 channel program. When the interrupt arrives, the
  213. * IRQ handler is called, either immediately, delayed (dev-end missing,
  214. * or sense required) or never (no IRQ handler registered).
  215. * This function notifies the device driver if the channel program has not
  216. * completed during the time specified by @expires. If a timeout occurs, the
  217. * channel program is terminated via xsch, hsch or csch, and the device's
  218. * interrupt handler will be called with an irb containing ERR_PTR(-%ETIMEDOUT).
  219. * Returns:
  220. * %0, if the operation was successful;
  221. * -%EBUSY, if the device is busy, or status pending;
  222. * -%EACCES, if no path specified in @lpm is operational;
  223. * -%ENODEV, if the device is not operational.
  224. * Context:
  225. * Interrupts disabled, ccw device lock held
  226. */
  227. int ccw_device_start_timeout_key(struct ccw_device *cdev, struct ccw1 *cpa,
  228. unsigned long intparm, __u8 lpm, __u8 key,
  229. unsigned long flags, int expires)
  230. {
  231. int ret;
  232. if (!cdev)
  233. return -ENODEV;
  234. ccw_device_set_timeout(cdev, expires);
  235. ret = ccw_device_start_key(cdev, cpa, intparm, lpm, key, flags);
  236. if (ret != 0)
  237. ccw_device_set_timeout(cdev, 0);
  238. return ret;
  239. }
  240. /**
  241. * ccw_device_start() - start a s390 channel program
  242. * @cdev: target ccw device
  243. * @cpa: logical start address of channel program
  244. * @intparm: user specific interruption parameter; will be presented back to
  245. * @cdev's interrupt handler. Allows a device driver to associate
  246. * the interrupt with a particular I/O request.
  247. * @lpm: defines the channel path to be used for a specific I/O request. A
  248. * value of 0 will make cio use the opm.
  249. * @flags: additional flags; defines the action to be performed for I/O
  250. * processing.
  251. *
  252. * Start a S/390 channel program. When the interrupt arrives, the
  253. * IRQ handler is called, either immediately, delayed (dev-end missing,
  254. * or sense required) or never (no IRQ handler registered).
  255. * Returns:
  256. * %0, if the operation was successful;
  257. * -%EBUSY, if the device is busy, or status pending;
  258. * -%EACCES, if no path specified in @lpm is operational;
  259. * -%ENODEV, if the device is not operational.
  260. * Context:
  261. * Interrupts disabled, ccw device lock held
  262. */
  263. int ccw_device_start(struct ccw_device *cdev, struct ccw1 *cpa,
  264. unsigned long intparm, __u8 lpm, unsigned long flags)
  265. {
  266. return ccw_device_start_key(cdev, cpa, intparm, lpm,
  267. PAGE_DEFAULT_KEY, flags);
  268. }
  269. /**
  270. * ccw_device_start_timeout() - start a s390 channel program with timeout
  271. * @cdev: target ccw device
  272. * @cpa: logical start address of channel program
  273. * @intparm: user specific interruption parameter; will be presented back to
  274. * @cdev's interrupt handler. Allows a device driver to associate
  275. * the interrupt with a particular I/O request.
  276. * @lpm: defines the channel path to be used for a specific I/O request. A
  277. * value of 0 will make cio use the opm.
  278. * @flags: additional flags; defines the action to be performed for I/O
  279. * processing.
  280. * @expires: timeout value in jiffies
  281. *
  282. * Start a S/390 channel program. When the interrupt arrives, the
  283. * IRQ handler is called, either immediately, delayed (dev-end missing,
  284. * or sense required) or never (no IRQ handler registered).
  285. * This function notifies the device driver if the channel program has not
  286. * completed during the time specified by @expires. If a timeout occurs, the
  287. * channel program is terminated via xsch, hsch or csch, and the device's
  288. * interrupt handler will be called with an irb containing ERR_PTR(-%ETIMEDOUT).
  289. * Returns:
  290. * %0, if the operation was successful;
  291. * -%EBUSY, if the device is busy, or status pending;
  292. * -%EACCES, if no path specified in @lpm is operational;
  293. * -%ENODEV, if the device is not operational.
  294. * Context:
  295. * Interrupts disabled, ccw device lock held
  296. */
  297. int ccw_device_start_timeout(struct ccw_device *cdev, struct ccw1 *cpa,
  298. unsigned long intparm, __u8 lpm,
  299. unsigned long flags, int expires)
  300. {
  301. return ccw_device_start_timeout_key(cdev, cpa, intparm, lpm,
  302. PAGE_DEFAULT_KEY, flags,
  303. expires);
  304. }
  305. /**
  306. * ccw_device_halt() - halt I/O request processing
  307. * @cdev: target ccw device
  308. * @intparm: interruption parameter; value is only used if no I/O is
  309. * outstanding, otherwise the intparm associated with the I/O request
  310. * is returned
  311. *
  312. * ccw_device_halt() calls hsch on @cdev's subchannel.
  313. * Returns:
  314. * %0 on success,
  315. * -%ENODEV on device not operational,
  316. * -%EINVAL on invalid device state,
  317. * -%EBUSY on device busy or interrupt pending.
  318. * Context:
  319. * Interrupts disabled, ccw device lock held
  320. */
  321. int ccw_device_halt(struct ccw_device *cdev, unsigned long intparm)
  322. {
  323. struct subchannel *sch;
  324. int ret;
  325. if (!cdev)
  326. return -ENODEV;
  327. if (cdev->private->state == DEV_STATE_NOT_OPER)
  328. return -ENODEV;
  329. if (cdev->private->state != DEV_STATE_ONLINE &&
  330. cdev->private->state != DEV_STATE_W4SENSE)
  331. return -EINVAL;
  332. sch = to_subchannel(cdev->dev.parent);
  333. if (!sch)
  334. return -ENODEV;
  335. ret = cio_halt(sch);
  336. if (ret == 0)
  337. cdev->private->intparm = intparm;
  338. return ret;
  339. }
  340. /**
  341. * ccw_device_resume() - resume channel program execution
  342. * @cdev: target ccw device
  343. *
  344. * ccw_device_resume() calls rsch on @cdev's subchannel.
  345. * Returns:
  346. * %0 on success,
  347. * -%ENODEV on device not operational,
  348. * -%EINVAL on invalid device state,
  349. * -%EBUSY on device busy or interrupt pending.
  350. * Context:
  351. * Interrupts disabled, ccw device lock held
  352. */
  353. int ccw_device_resume(struct ccw_device *cdev)
  354. {
  355. struct subchannel *sch;
  356. if (!cdev)
  357. return -ENODEV;
  358. sch = to_subchannel(cdev->dev.parent);
  359. if (!sch)
  360. return -ENODEV;
  361. if (cdev->private->state == DEV_STATE_NOT_OPER)
  362. return -ENODEV;
  363. if (cdev->private->state != DEV_STATE_ONLINE ||
  364. !(sch->schib.scsw.actl & SCSW_ACTL_SUSPENDED))
  365. return -EINVAL;
  366. return cio_resume(sch);
  367. }
  368. /*
  369. * Pass interrupt to device driver.
  370. */
  371. int
  372. ccw_device_call_handler(struct ccw_device *cdev)
  373. {
  374. struct subchannel *sch;
  375. unsigned int stctl;
  376. int ending_status;
  377. sch = to_subchannel(cdev->dev.parent);
  378. /*
  379. * we allow for the device action handler if .
  380. * - we received ending status
  381. * - the action handler requested to see all interrupts
  382. * - we received an intermediate status
  383. * - fast notification was requested (primary status)
  384. * - unsolicited interrupts
  385. */
  386. stctl = cdev->private->irb.scsw.stctl;
  387. ending_status = (stctl & SCSW_STCTL_SEC_STATUS) ||
  388. (stctl == (SCSW_STCTL_ALERT_STATUS | SCSW_STCTL_STATUS_PEND)) ||
  389. (stctl == SCSW_STCTL_STATUS_PEND);
  390. if (!ending_status &&
  391. !cdev->private->options.repall &&
  392. !(stctl & SCSW_STCTL_INTER_STATUS) &&
  393. !(cdev->private->options.fast &&
  394. (stctl & SCSW_STCTL_PRIM_STATUS)))
  395. return 0;
  396. /* Clear pending timers for device driver initiated I/O. */
  397. if (ending_status)
  398. ccw_device_set_timeout(cdev, 0);
  399. /*
  400. * Now we are ready to call the device driver interrupt handler.
  401. */
  402. if (cdev->handler)
  403. cdev->handler(cdev, cdev->private->intparm,
  404. &cdev->private->irb);
  405. /*
  406. * Clear the old and now useless interrupt response block.
  407. */
  408. memset(&cdev->private->irb, 0, sizeof(struct irb));
  409. return 1;
  410. }
  411. /**
  412. * ccw_device_get_ciw() - Search for CIW command in extended sense data.
  413. * @cdev: ccw device to inspect
  414. * @ct: command type to look for
  415. *
  416. * During SenseID, command information words (CIWs) describing special
  417. * commands available to the device may have been stored in the extended
  418. * sense data. This function searches for CIWs of a specified command
  419. * type in the extended sense data.
  420. * Returns:
  421. * %NULL if no extended sense data has been stored or if no CIW of the
  422. * specified command type could be found,
  423. * else a pointer to the CIW of the specified command type.
  424. */
  425. struct ciw *ccw_device_get_ciw(struct ccw_device *cdev, __u32 ct)
  426. {
  427. int ciw_cnt;
  428. if (cdev->private->flags.esid == 0)
  429. return NULL;
  430. for (ciw_cnt = 0; ciw_cnt < MAX_CIWS; ciw_cnt++)
  431. if (cdev->private->senseid.ciw[ciw_cnt].ct == ct)
  432. return cdev->private->senseid.ciw + ciw_cnt;
  433. return NULL;
  434. }
  435. /**
  436. * ccw_device_get_path_mask() - get currently available paths
  437. * @cdev: ccw device to be queried
  438. * Returns:
  439. * %0 if no subchannel for the device is available,
  440. * else the mask of currently available paths for the ccw device's subchannel.
  441. */
  442. __u8 ccw_device_get_path_mask(struct ccw_device *cdev)
  443. {
  444. struct subchannel *sch;
  445. sch = to_subchannel(cdev->dev.parent);
  446. if (!sch)
  447. return 0;
  448. else
  449. return sch->lpm;
  450. }
  451. /*
  452. * Try to break the lock on a boxed device.
  453. */
  454. int
  455. ccw_device_stlck(struct ccw_device *cdev)
  456. {
  457. void *buf, *buf2;
  458. unsigned long flags;
  459. struct subchannel *sch;
  460. int ret;
  461. if (!cdev)
  462. return -ENODEV;
  463. if (cdev->drv && !cdev->private->options.force)
  464. return -EINVAL;
  465. sch = to_subchannel(cdev->dev.parent);
  466. CIO_TRACE_EVENT(2, "stl lock");
  467. CIO_TRACE_EVENT(2, cdev->dev.bus_id);
  468. buf = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL);
  469. if (!buf)
  470. return -ENOMEM;
  471. buf2 = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL);
  472. if (!buf2) {
  473. kfree(buf);
  474. return -ENOMEM;
  475. }
  476. spin_lock_irqsave(sch->lock, flags);
  477. ret = cio_enable_subchannel(sch, 3, (u32)(addr_t)sch);
  478. if (ret)
  479. goto out_unlock;
  480. /*
  481. * Setup ccw. We chain an unconditional reserve and a release so we
  482. * only break the lock.
  483. */
  484. cdev->private->iccws[0].cmd_code = CCW_CMD_STLCK;
  485. cdev->private->iccws[0].cda = (__u32) __pa(buf);
  486. cdev->private->iccws[0].count = 32;
  487. cdev->private->iccws[0].flags = CCW_FLAG_CC;
  488. cdev->private->iccws[1].cmd_code = CCW_CMD_RELEASE;
  489. cdev->private->iccws[1].cda = (__u32) __pa(buf2);
  490. cdev->private->iccws[1].count = 32;
  491. cdev->private->iccws[1].flags = 0;
  492. ret = cio_start(sch, cdev->private->iccws, 0);
  493. if (ret) {
  494. cio_disable_subchannel(sch); //FIXME: return code?
  495. goto out_unlock;
  496. }
  497. cdev->private->irb.scsw.actl |= SCSW_ACTL_START_PEND;
  498. spin_unlock_irqrestore(sch->lock, flags);
  499. wait_event(cdev->private->wait_q, cdev->private->irb.scsw.actl == 0);
  500. spin_lock_irqsave(sch->lock, flags);
  501. cio_disable_subchannel(sch); //FIXME: return code?
  502. if ((cdev->private->irb.scsw.dstat !=
  503. (DEV_STAT_CHN_END|DEV_STAT_DEV_END)) ||
  504. (cdev->private->irb.scsw.cstat != 0))
  505. ret = -EIO;
  506. /* Clear irb. */
  507. memset(&cdev->private->irb, 0, sizeof(struct irb));
  508. out_unlock:
  509. kfree(buf);
  510. kfree(buf2);
  511. spin_unlock_irqrestore(sch->lock, flags);
  512. return ret;
  513. }
  514. void *ccw_device_get_chp_desc(struct ccw_device *cdev, int chp_no)
  515. {
  516. struct subchannel *sch;
  517. struct chp_id chpid;
  518. sch = to_subchannel(cdev->dev.parent);
  519. chp_id_init(&chpid);
  520. chpid.id = sch->schib.pmcw.chpid[chp_no];
  521. return chp_get_chp_desc(chpid);
  522. }
  523. /**
  524. * ccw_device_get_id - obtain a ccw device id
  525. * @cdev: device to obtain the id for
  526. * @dev_id: where to fill in the values
  527. */
  528. void ccw_device_get_id(struct ccw_device *cdev, struct ccw_dev_id *dev_id)
  529. {
  530. *dev_id = cdev->private->dev_id;
  531. }
  532. EXPORT_SYMBOL(ccw_device_get_id);
  533. // FIXME: these have to go:
  534. int
  535. _ccw_device_get_subchannel_number(struct ccw_device *cdev)
  536. {
  537. return cdev->private->schid.sch_no;
  538. }
  539. MODULE_LICENSE("GPL");
  540. EXPORT_SYMBOL(ccw_device_set_options_mask);
  541. EXPORT_SYMBOL(ccw_device_set_options);
  542. EXPORT_SYMBOL(ccw_device_clear_options);
  543. EXPORT_SYMBOL(ccw_device_clear);
  544. EXPORT_SYMBOL(ccw_device_halt);
  545. EXPORT_SYMBOL(ccw_device_resume);
  546. EXPORT_SYMBOL(ccw_device_start_timeout);
  547. EXPORT_SYMBOL(ccw_device_start);
  548. EXPORT_SYMBOL(ccw_device_start_timeout_key);
  549. EXPORT_SYMBOL(ccw_device_start_key);
  550. EXPORT_SYMBOL(ccw_device_get_ciw);
  551. EXPORT_SYMBOL(ccw_device_get_path_mask);
  552. EXPORT_SYMBOL(_ccw_device_get_subchannel_number);
  553. EXPORT_SYMBOL_GPL(ccw_device_get_chp_desc);