device_ops.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  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. if (ret == 0)
  188. cdev->private->intparm = intparm;
  189. return ret;
  190. }
  191. /**
  192. * ccw_device_start_timeout_key() - start a s390 channel program with timeout and key
  193. * @cdev: target ccw device
  194. * @cpa: logical start address of channel program
  195. * @intparm: user specific interruption parameter; will be presented back to
  196. * @cdev's interrupt handler. Allows a device driver to associate
  197. * the interrupt with a particular I/O request.
  198. * @lpm: defines the channel path to be used for a specific I/O request. A
  199. * value of 0 will make cio use the opm.
  200. * @key: storage key to be used for the I/O
  201. * @flags: additional flags; defines the action to be performed for I/O
  202. * processing.
  203. * @expires: timeout value in jiffies
  204. *
  205. * Start a S/390 channel program. When the interrupt arrives, the
  206. * IRQ handler is called, either immediately, delayed (dev-end missing,
  207. * or sense required) or never (no IRQ handler registered).
  208. * This function notifies the device driver if the channel program has not
  209. * completed during the time specified by @expires. If a timeout occurs, the
  210. * channel program is terminated via xsch, hsch or csch, and the device's
  211. * interrupt handler will be called with an irb containing ERR_PTR(-%ETIMEDOUT).
  212. * Returns:
  213. * %0, if the operation was successful;
  214. * -%EBUSY, if the device is busy, or status pending;
  215. * -%EACCES, if no path specified in @lpm is operational;
  216. * -%ENODEV, if the device is not operational.
  217. * Context:
  218. * Interrupts disabled, ccw device lock held
  219. */
  220. int ccw_device_start_timeout_key(struct ccw_device *cdev, struct ccw1 *cpa,
  221. unsigned long intparm, __u8 lpm, __u8 key,
  222. unsigned long flags, int expires)
  223. {
  224. int ret;
  225. if (!cdev)
  226. return -ENODEV;
  227. ccw_device_set_timeout(cdev, expires);
  228. ret = ccw_device_start_key(cdev, cpa, intparm, lpm, key, flags);
  229. if (ret != 0)
  230. ccw_device_set_timeout(cdev, 0);
  231. return ret;
  232. }
  233. /**
  234. * ccw_device_start() - start a s390 channel program
  235. * @cdev: target ccw device
  236. * @cpa: logical start address of channel program
  237. * @intparm: user specific interruption parameter; will be presented back to
  238. * @cdev's interrupt handler. Allows a device driver to associate
  239. * the interrupt with a particular I/O request.
  240. * @lpm: defines the channel path to be used for a specific I/O request. A
  241. * value of 0 will make cio use the opm.
  242. * @flags: additional flags; defines the action to be performed for I/O
  243. * processing.
  244. *
  245. * Start a S/390 channel program. When the interrupt arrives, the
  246. * IRQ handler is called, either immediately, delayed (dev-end missing,
  247. * or sense required) or never (no IRQ handler registered).
  248. * Returns:
  249. * %0, if the operation was successful;
  250. * -%EBUSY, if the device is busy, or status pending;
  251. * -%EACCES, if no path specified in @lpm is operational;
  252. * -%ENODEV, if the device is not operational.
  253. * Context:
  254. * Interrupts disabled, ccw device lock held
  255. */
  256. int ccw_device_start(struct ccw_device *cdev, struct ccw1 *cpa,
  257. unsigned long intparm, __u8 lpm, unsigned long flags)
  258. {
  259. return ccw_device_start_key(cdev, cpa, intparm, lpm,
  260. PAGE_DEFAULT_KEY, flags);
  261. }
  262. /**
  263. * ccw_device_start_timeout() - start a s390 channel program with timeout
  264. * @cdev: target ccw device
  265. * @cpa: logical start address of channel program
  266. * @intparm: user specific interruption parameter; will be presented back to
  267. * @cdev's interrupt handler. Allows a device driver to associate
  268. * the interrupt with a particular I/O request.
  269. * @lpm: defines the channel path to be used for a specific I/O request. A
  270. * value of 0 will make cio use the opm.
  271. * @flags: additional flags; defines the action to be performed for I/O
  272. * processing.
  273. * @expires: timeout value in jiffies
  274. *
  275. * Start a S/390 channel program. When the interrupt arrives, the
  276. * IRQ handler is called, either immediately, delayed (dev-end missing,
  277. * or sense required) or never (no IRQ handler registered).
  278. * This function notifies the device driver if the channel program has not
  279. * completed during the time specified by @expires. If a timeout occurs, the
  280. * channel program is terminated via xsch, hsch or csch, and the device's
  281. * interrupt handler will be called with an irb containing ERR_PTR(-%ETIMEDOUT).
  282. * Returns:
  283. * %0, if the operation was successful;
  284. * -%EBUSY, if the device is busy, or status pending;
  285. * -%EACCES, if no path specified in @lpm is operational;
  286. * -%ENODEV, if the device is not operational.
  287. * Context:
  288. * Interrupts disabled, ccw device lock held
  289. */
  290. int ccw_device_start_timeout(struct ccw_device *cdev, struct ccw1 *cpa,
  291. unsigned long intparm, __u8 lpm,
  292. unsigned long flags, int expires)
  293. {
  294. return ccw_device_start_timeout_key(cdev, cpa, intparm, lpm,
  295. PAGE_DEFAULT_KEY, flags,
  296. expires);
  297. }
  298. /**
  299. * ccw_device_halt() - halt I/O request processing
  300. * @cdev: target ccw device
  301. * @intparm: interruption parameter; value is only used if no I/O is
  302. * outstanding, otherwise the intparm associated with the I/O request
  303. * is returned
  304. *
  305. * ccw_device_halt() calls hsch on @cdev's subchannel.
  306. * Returns:
  307. * %0 on success,
  308. * -%ENODEV on device not operational,
  309. * -%EINVAL on invalid device state,
  310. * -%EBUSY on device busy or interrupt pending.
  311. * Context:
  312. * Interrupts disabled, ccw device lock held
  313. */
  314. int ccw_device_halt(struct ccw_device *cdev, unsigned long intparm)
  315. {
  316. struct subchannel *sch;
  317. int ret;
  318. if (!cdev)
  319. return -ENODEV;
  320. if (cdev->private->state == DEV_STATE_NOT_OPER)
  321. return -ENODEV;
  322. if (cdev->private->state != DEV_STATE_ONLINE &&
  323. cdev->private->state != DEV_STATE_W4SENSE)
  324. return -EINVAL;
  325. sch = to_subchannel(cdev->dev.parent);
  326. if (!sch)
  327. return -ENODEV;
  328. ret = cio_halt(sch);
  329. if (ret == 0)
  330. cdev->private->intparm = intparm;
  331. return ret;
  332. }
  333. /**
  334. * ccw_device_resume() - resume channel program execution
  335. * @cdev: target ccw device
  336. *
  337. * ccw_device_resume() calls rsch on @cdev's subchannel.
  338. * Returns:
  339. * %0 on success,
  340. * -%ENODEV on device not operational,
  341. * -%EINVAL on invalid device state,
  342. * -%EBUSY on device busy or interrupt pending.
  343. * Context:
  344. * Interrupts disabled, ccw device lock held
  345. */
  346. int ccw_device_resume(struct ccw_device *cdev)
  347. {
  348. struct subchannel *sch;
  349. if (!cdev)
  350. return -ENODEV;
  351. sch = to_subchannel(cdev->dev.parent);
  352. if (!sch)
  353. return -ENODEV;
  354. if (cdev->private->state == DEV_STATE_NOT_OPER)
  355. return -ENODEV;
  356. if (cdev->private->state != DEV_STATE_ONLINE ||
  357. !(sch->schib.scsw.actl & SCSW_ACTL_SUSPENDED))
  358. return -EINVAL;
  359. return cio_resume(sch);
  360. }
  361. /*
  362. * Pass interrupt to device driver.
  363. */
  364. int
  365. ccw_device_call_handler(struct ccw_device *cdev)
  366. {
  367. struct subchannel *sch;
  368. unsigned int stctl;
  369. int ending_status;
  370. sch = to_subchannel(cdev->dev.parent);
  371. /*
  372. * we allow for the device action handler if .
  373. * - we received ending status
  374. * - the action handler requested to see all interrupts
  375. * - we received an intermediate status
  376. * - fast notification was requested (primary status)
  377. * - unsolicited interrupts
  378. */
  379. stctl = cdev->private->irb.scsw.stctl;
  380. ending_status = (stctl & SCSW_STCTL_SEC_STATUS) ||
  381. (stctl == (SCSW_STCTL_ALERT_STATUS | SCSW_STCTL_STATUS_PEND)) ||
  382. (stctl == SCSW_STCTL_STATUS_PEND);
  383. if (!ending_status &&
  384. !cdev->private->options.repall &&
  385. !(stctl & SCSW_STCTL_INTER_STATUS) &&
  386. !(cdev->private->options.fast &&
  387. (stctl & SCSW_STCTL_PRIM_STATUS)))
  388. return 0;
  389. /* Clear pending timers for device driver initiated I/O. */
  390. if (ending_status)
  391. ccw_device_set_timeout(cdev, 0);
  392. /*
  393. * Now we are ready to call the device driver interrupt handler.
  394. */
  395. if (cdev->handler)
  396. cdev->handler(cdev, cdev->private->intparm,
  397. &cdev->private->irb);
  398. /*
  399. * Clear the old and now useless interrupt response block.
  400. */
  401. memset(&cdev->private->irb, 0, sizeof(struct irb));
  402. return 1;
  403. }
  404. /**
  405. * ccw_device_get_ciw() - Search for CIW command in extended sense data.
  406. * @cdev: ccw device to inspect
  407. * @ct: command type to look for
  408. *
  409. * During SenseID, command information words (CIWs) describing special
  410. * commands available to the device may have been stored in the extended
  411. * sense data. This function searches for CIWs of a specified command
  412. * type in the extended sense data.
  413. * Returns:
  414. * %NULL if no extended sense data has been stored or if no CIW of the
  415. * specified command type could be found,
  416. * else a pointer to the CIW of the specified command type.
  417. */
  418. struct ciw *ccw_device_get_ciw(struct ccw_device *cdev, __u32 ct)
  419. {
  420. int ciw_cnt;
  421. if (cdev->private->flags.esid == 0)
  422. return NULL;
  423. for (ciw_cnt = 0; ciw_cnt < MAX_CIWS; ciw_cnt++)
  424. if (cdev->private->senseid.ciw[ciw_cnt].ct == ct)
  425. return cdev->private->senseid.ciw + ciw_cnt;
  426. return NULL;
  427. }
  428. /**
  429. * ccw_device_get_path_mask() - get currently available paths
  430. * @cdev: ccw device to be queried
  431. * Returns:
  432. * %0 if no subchannel for the device is available,
  433. * else the mask of currently available paths for the ccw device's subchannel.
  434. */
  435. __u8 ccw_device_get_path_mask(struct ccw_device *cdev)
  436. {
  437. struct subchannel *sch;
  438. sch = to_subchannel(cdev->dev.parent);
  439. if (!sch)
  440. return 0;
  441. else
  442. return sch->lpm;
  443. }
  444. /*
  445. * Try to break the lock on a boxed device.
  446. */
  447. int
  448. ccw_device_stlck(struct ccw_device *cdev)
  449. {
  450. void *buf, *buf2;
  451. unsigned long flags;
  452. struct subchannel *sch;
  453. int ret;
  454. if (!cdev)
  455. return -ENODEV;
  456. if (cdev->drv && !cdev->private->options.force)
  457. return -EINVAL;
  458. sch = to_subchannel(cdev->dev.parent);
  459. CIO_TRACE_EVENT(2, "stl lock");
  460. CIO_TRACE_EVENT(2, cdev->dev.bus_id);
  461. buf = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL);
  462. if (!buf)
  463. return -ENOMEM;
  464. buf2 = kmalloc(32*sizeof(char), GFP_DMA|GFP_KERNEL);
  465. if (!buf2) {
  466. kfree(buf);
  467. return -ENOMEM;
  468. }
  469. spin_lock_irqsave(sch->lock, flags);
  470. ret = cio_enable_subchannel(sch, 3);
  471. if (ret)
  472. goto out_unlock;
  473. /*
  474. * Setup ccw. We chain an unconditional reserve and a release so we
  475. * only break the lock.
  476. */
  477. cdev->private->iccws[0].cmd_code = CCW_CMD_STLCK;
  478. cdev->private->iccws[0].cda = (__u32) __pa(buf);
  479. cdev->private->iccws[0].count = 32;
  480. cdev->private->iccws[0].flags = CCW_FLAG_CC;
  481. cdev->private->iccws[1].cmd_code = CCW_CMD_RELEASE;
  482. cdev->private->iccws[1].cda = (__u32) __pa(buf2);
  483. cdev->private->iccws[1].count = 32;
  484. cdev->private->iccws[1].flags = 0;
  485. ret = cio_start(sch, cdev->private->iccws, 0);
  486. if (ret) {
  487. cio_disable_subchannel(sch); //FIXME: return code?
  488. goto out_unlock;
  489. }
  490. cdev->private->irb.scsw.actl |= SCSW_ACTL_START_PEND;
  491. spin_unlock_irqrestore(sch->lock, flags);
  492. wait_event(cdev->private->wait_q, cdev->private->irb.scsw.actl == 0);
  493. spin_lock_irqsave(sch->lock, flags);
  494. cio_disable_subchannel(sch); //FIXME: return code?
  495. if ((cdev->private->irb.scsw.dstat !=
  496. (DEV_STAT_CHN_END|DEV_STAT_DEV_END)) ||
  497. (cdev->private->irb.scsw.cstat != 0))
  498. ret = -EIO;
  499. /* Clear irb. */
  500. memset(&cdev->private->irb, 0, sizeof(struct irb));
  501. out_unlock:
  502. kfree(buf);
  503. kfree(buf2);
  504. spin_unlock_irqrestore(sch->lock, flags);
  505. return ret;
  506. }
  507. void *ccw_device_get_chp_desc(struct ccw_device *cdev, int chp_no)
  508. {
  509. struct subchannel *sch;
  510. struct chp_id chpid;
  511. sch = to_subchannel(cdev->dev.parent);
  512. chp_id_init(&chpid);
  513. chpid.id = sch->schib.pmcw.chpid[chp_no];
  514. return chp_get_chp_desc(chpid);
  515. }
  516. /**
  517. * ccw_device_get_id - obtain a ccw device id
  518. * @cdev: device to obtain the id for
  519. * @dev_id: where to fill in the values
  520. */
  521. void ccw_device_get_id(struct ccw_device *cdev, struct ccw_dev_id *dev_id)
  522. {
  523. *dev_id = cdev->private->dev_id;
  524. }
  525. EXPORT_SYMBOL(ccw_device_get_id);
  526. // FIXME: these have to go:
  527. int
  528. _ccw_device_get_subchannel_number(struct ccw_device *cdev)
  529. {
  530. return cdev->private->schid.sch_no;
  531. }
  532. MODULE_LICENSE("GPL");
  533. EXPORT_SYMBOL(ccw_device_set_options_mask);
  534. EXPORT_SYMBOL(ccw_device_set_options);
  535. EXPORT_SYMBOL(ccw_device_clear_options);
  536. EXPORT_SYMBOL(ccw_device_clear);
  537. EXPORT_SYMBOL(ccw_device_halt);
  538. EXPORT_SYMBOL(ccw_device_resume);
  539. EXPORT_SYMBOL(ccw_device_start_timeout);
  540. EXPORT_SYMBOL(ccw_device_start);
  541. EXPORT_SYMBOL(ccw_device_start_timeout_key);
  542. EXPORT_SYMBOL(ccw_device_start_key);
  543. EXPORT_SYMBOL(ccw_device_get_ciw);
  544. EXPORT_SYMBOL(ccw_device_get_path_mask);
  545. EXPORT_SYMBOL(_ccw_device_get_subchannel_number);
  546. EXPORT_SYMBOL_GPL(ccw_device_get_chp_desc);