css.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. /*
  2. * drivers/s390/cio/css.c
  3. * driver for channel subsystem
  4. *
  5. * Copyright (C) 2002 IBM Deutschland Entwicklung GmbH,
  6. * IBM Corporation
  7. * Author(s): Arnd Bergmann (arndb@de.ibm.com)
  8. * Cornelia Huck (cornelia.huck@de.ibm.com)
  9. */
  10. #include <linux/module.h>
  11. #include <linux/init.h>
  12. #include <linux/device.h>
  13. #include <linux/slab.h>
  14. #include <linux/errno.h>
  15. #include <linux/list.h>
  16. #include "css.h"
  17. #include "cio.h"
  18. #include "cio_debug.h"
  19. #include "ioasm.h"
  20. #include "chsc.h"
  21. #include "device.h"
  22. int need_rescan = 0;
  23. int css_init_done = 0;
  24. static int need_reprobe = 0;
  25. static int max_ssid = 0;
  26. struct channel_subsystem *css[__MAX_CSSID + 1];
  27. int css_characteristics_avail = 0;
  28. inline int
  29. for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *data)
  30. {
  31. struct subchannel_id schid;
  32. int ret;
  33. init_subchannel_id(&schid);
  34. ret = -ENODEV;
  35. do {
  36. do {
  37. ret = fn(schid, data);
  38. if (ret)
  39. break;
  40. } while (schid.sch_no++ < __MAX_SUBCHANNEL);
  41. schid.sch_no = 0;
  42. } while (schid.ssid++ < max_ssid);
  43. return ret;
  44. }
  45. static struct subchannel *
  46. css_alloc_subchannel(struct subchannel_id schid)
  47. {
  48. struct subchannel *sch;
  49. int ret;
  50. sch = kmalloc (sizeof (*sch), GFP_KERNEL | GFP_DMA);
  51. if (sch == NULL)
  52. return ERR_PTR(-ENOMEM);
  53. ret = cio_validate_subchannel (sch, schid);
  54. if (ret < 0) {
  55. kfree(sch);
  56. return ERR_PTR(ret);
  57. }
  58. if (sch->st != SUBCHANNEL_TYPE_IO) {
  59. /* For now we ignore all non-io subchannels. */
  60. kfree(sch);
  61. return ERR_PTR(-EINVAL);
  62. }
  63. /*
  64. * Set intparm to subchannel address.
  65. * This is fine even on 64bit since the subchannel is always located
  66. * under 2G.
  67. */
  68. sch->schib.pmcw.intparm = (__u32)(unsigned long)sch;
  69. ret = cio_modify(sch);
  70. if (ret) {
  71. kfree(sch);
  72. return ERR_PTR(ret);
  73. }
  74. return sch;
  75. }
  76. static void
  77. css_free_subchannel(struct subchannel *sch)
  78. {
  79. if (sch) {
  80. /* Reset intparm to zeroes. */
  81. sch->schib.pmcw.intparm = 0;
  82. cio_modify(sch);
  83. kfree(sch);
  84. }
  85. }
  86. static void
  87. css_subchannel_release(struct device *dev)
  88. {
  89. struct subchannel *sch;
  90. sch = to_subchannel(dev);
  91. if (!cio_is_console(sch->schid))
  92. kfree(sch);
  93. }
  94. extern int css_get_ssd_info(struct subchannel *sch);
  95. static int
  96. css_register_subchannel(struct subchannel *sch)
  97. {
  98. int ret;
  99. /* Initialize the subchannel structure */
  100. sch->dev.parent = &css[0]->device;
  101. sch->dev.bus = &css_bus_type;
  102. sch->dev.release = &css_subchannel_release;
  103. /* make it known to the system */
  104. ret = device_register(&sch->dev);
  105. if (ret)
  106. printk (KERN_WARNING "%s: could not register %s\n",
  107. __func__, sch->dev.bus_id);
  108. else
  109. css_get_ssd_info(sch);
  110. return ret;
  111. }
  112. int
  113. css_probe_device(struct subchannel_id schid)
  114. {
  115. int ret;
  116. struct subchannel *sch;
  117. sch = css_alloc_subchannel(schid);
  118. if (IS_ERR(sch))
  119. return PTR_ERR(sch);
  120. ret = css_register_subchannel(sch);
  121. if (ret)
  122. css_free_subchannel(sch);
  123. return ret;
  124. }
  125. static int
  126. check_subchannel(struct device * dev, void * data)
  127. {
  128. struct subchannel *sch;
  129. struct subchannel_id *schid = data;
  130. sch = to_subchannel(dev);
  131. return schid_equal(&sch->schid, schid);
  132. }
  133. struct subchannel *
  134. get_subchannel_by_schid(struct subchannel_id schid)
  135. {
  136. struct device *dev;
  137. dev = bus_find_device(&css_bus_type, NULL,
  138. (void *)&schid, check_subchannel);
  139. return dev ? to_subchannel(dev) : NULL;
  140. }
  141. static inline int
  142. css_get_subchannel_status(struct subchannel *sch, struct subchannel_id schid)
  143. {
  144. struct schib schib;
  145. int cc;
  146. cc = stsch(schid, &schib);
  147. if (cc)
  148. return CIO_GONE;
  149. if (!schib.pmcw.dnv)
  150. return CIO_GONE;
  151. if (sch && sch->schib.pmcw.dnv &&
  152. (schib.pmcw.dev != sch->schib.pmcw.dev))
  153. return CIO_REVALIDATE;
  154. if (sch && !sch->lpm)
  155. return CIO_NO_PATH;
  156. return CIO_OPER;
  157. }
  158. static int
  159. css_evaluate_subchannel(struct subchannel_id schid, int slow)
  160. {
  161. int event, ret, disc;
  162. struct subchannel *sch;
  163. unsigned long flags;
  164. sch = get_subchannel_by_schid(schid);
  165. disc = sch ? device_is_disconnected(sch) : 0;
  166. if (disc && slow) {
  167. if (sch)
  168. put_device(&sch->dev);
  169. return 0; /* Already processed. */
  170. }
  171. /*
  172. * We've got a machine check, so running I/O won't get an interrupt.
  173. * Kill any pending timers.
  174. */
  175. if (sch)
  176. device_kill_pending_timer(sch);
  177. if (!disc && !slow) {
  178. if (sch)
  179. put_device(&sch->dev);
  180. return -EAGAIN; /* Will be done on the slow path. */
  181. }
  182. event = css_get_subchannel_status(sch, schid);
  183. CIO_MSG_EVENT(4, "Evaluating schid 0.%x.%04x, event %d, %s, %s path.\n",
  184. schid.ssid, schid.sch_no, event,
  185. sch?(disc?"disconnected":"normal"):"unknown",
  186. slow?"slow":"fast");
  187. switch (event) {
  188. case CIO_NO_PATH:
  189. case CIO_GONE:
  190. if (!sch) {
  191. /* Never used this subchannel. Ignore. */
  192. ret = 0;
  193. break;
  194. }
  195. if (disc && (event == CIO_NO_PATH)) {
  196. /*
  197. * Uargh, hack again. Because we don't get a machine
  198. * check on configure on, our path bookkeeping can
  199. * be out of date here (it's fine while we only do
  200. * logical varying or get chsc machine checks). We
  201. * need to force reprobing or we might miss devices
  202. * coming operational again. It won't do harm in real
  203. * no path situations.
  204. */
  205. spin_lock_irqsave(&sch->lock, flags);
  206. device_trigger_reprobe(sch);
  207. spin_unlock_irqrestore(&sch->lock, flags);
  208. ret = 0;
  209. break;
  210. }
  211. if (sch->driver && sch->driver->notify &&
  212. sch->driver->notify(&sch->dev, event)) {
  213. cio_disable_subchannel(sch);
  214. device_set_disconnected(sch);
  215. ret = 0;
  216. break;
  217. }
  218. /*
  219. * Unregister subchannel.
  220. * The device will be killed automatically.
  221. */
  222. cio_disable_subchannel(sch);
  223. device_unregister(&sch->dev);
  224. /* Reset intparm to zeroes. */
  225. sch->schib.pmcw.intparm = 0;
  226. cio_modify(sch);
  227. put_device(&sch->dev);
  228. ret = 0;
  229. break;
  230. case CIO_REVALIDATE:
  231. /*
  232. * Revalidation machine check. Sick.
  233. * We don't notify the driver since we have to throw the device
  234. * away in any case.
  235. */
  236. if (!disc) {
  237. device_unregister(&sch->dev);
  238. /* Reset intparm to zeroes. */
  239. sch->schib.pmcw.intparm = 0;
  240. cio_modify(sch);
  241. put_device(&sch->dev);
  242. ret = css_probe_device(schid);
  243. } else {
  244. /*
  245. * We can't immediately deregister the disconnected
  246. * device since it might block.
  247. */
  248. spin_lock_irqsave(&sch->lock, flags);
  249. device_trigger_reprobe(sch);
  250. spin_unlock_irqrestore(&sch->lock, flags);
  251. ret = 0;
  252. }
  253. break;
  254. case CIO_OPER:
  255. if (disc) {
  256. spin_lock_irqsave(&sch->lock, flags);
  257. /* Get device operational again. */
  258. device_trigger_reprobe(sch);
  259. spin_unlock_irqrestore(&sch->lock, flags);
  260. }
  261. ret = sch ? 0 : css_probe_device(schid);
  262. break;
  263. default:
  264. BUG();
  265. ret = 0;
  266. }
  267. return ret;
  268. }
  269. static int
  270. css_rescan_devices(struct subchannel_id schid, void *data)
  271. {
  272. return css_evaluate_subchannel(schid, 1);
  273. }
  274. struct slow_subchannel {
  275. struct list_head slow_list;
  276. struct subchannel_id schid;
  277. };
  278. static LIST_HEAD(slow_subchannels_head);
  279. static DEFINE_SPINLOCK(slow_subchannel_lock);
  280. static void
  281. css_trigger_slow_path(void)
  282. {
  283. CIO_TRACE_EVENT(4, "slowpath");
  284. if (need_rescan) {
  285. need_rescan = 0;
  286. for_each_subchannel(css_rescan_devices, NULL);
  287. return;
  288. }
  289. spin_lock_irq(&slow_subchannel_lock);
  290. while (!list_empty(&slow_subchannels_head)) {
  291. struct slow_subchannel *slow_sch =
  292. list_entry(slow_subchannels_head.next,
  293. struct slow_subchannel, slow_list);
  294. list_del_init(slow_subchannels_head.next);
  295. spin_unlock_irq(&slow_subchannel_lock);
  296. css_evaluate_subchannel(slow_sch->schid, 1);
  297. spin_lock_irq(&slow_subchannel_lock);
  298. kfree(slow_sch);
  299. }
  300. spin_unlock_irq(&slow_subchannel_lock);
  301. }
  302. typedef void (*workfunc)(void *);
  303. DECLARE_WORK(slow_path_work, (workfunc)css_trigger_slow_path, NULL);
  304. struct workqueue_struct *slow_path_wq;
  305. /* Reprobe subchannel if unregistered. */
  306. static int reprobe_subchannel(struct subchannel_id schid, void *data)
  307. {
  308. struct subchannel *sch;
  309. int ret;
  310. CIO_DEBUG(KERN_INFO, 6, "cio: reprobe 0.%x.%04x\n",
  311. schid.ssid, schid.sch_no);
  312. if (need_reprobe)
  313. return -EAGAIN;
  314. sch = get_subchannel_by_schid(schid);
  315. if (sch) {
  316. /* Already known. */
  317. put_device(&sch->dev);
  318. return 0;
  319. }
  320. ret = css_probe_device(schid);
  321. switch (ret) {
  322. case 0:
  323. break;
  324. case -ENXIO:
  325. case -ENOMEM:
  326. /* These should abort looping */
  327. break;
  328. default:
  329. ret = 0;
  330. }
  331. return ret;
  332. }
  333. /* Work function used to reprobe all unregistered subchannels. */
  334. static void reprobe_all(void *data)
  335. {
  336. int ret;
  337. CIO_MSG_EVENT(2, "reprobe start\n");
  338. need_reprobe = 0;
  339. /* Make sure initial subchannel scan is done. */
  340. wait_event(ccw_device_init_wq,
  341. atomic_read(&ccw_device_init_count) == 0);
  342. ret = for_each_subchannel(reprobe_subchannel, NULL);
  343. CIO_MSG_EVENT(2, "reprobe done (rc=%d, need_reprobe=%d)\n", ret,
  344. need_reprobe);
  345. }
  346. DECLARE_WORK(css_reprobe_work, reprobe_all, NULL);
  347. /* Schedule reprobing of all unregistered subchannels. */
  348. void css_schedule_reprobe(void)
  349. {
  350. need_reprobe = 1;
  351. queue_work(ccw_device_work, &css_reprobe_work);
  352. }
  353. EXPORT_SYMBOL_GPL(css_schedule_reprobe);
  354. /*
  355. * Rescan for new devices. FIXME: This is slow.
  356. * This function is called when we have lost CRWs due to overflows and we have
  357. * to do subchannel housekeeping.
  358. */
  359. void
  360. css_reiterate_subchannels(void)
  361. {
  362. css_clear_subchannel_slow_list();
  363. need_rescan = 1;
  364. }
  365. /*
  366. * Called from the machine check handler for subchannel report words.
  367. */
  368. int
  369. css_process_crw(int rsid1, int rsid2)
  370. {
  371. int ret;
  372. struct subchannel_id mchk_schid;
  373. CIO_CRW_EVENT(2, "source is subchannel %04X, subsystem id %x\n",
  374. rsid1, rsid2);
  375. if (need_rescan)
  376. /* We need to iterate all subchannels anyway. */
  377. return -EAGAIN;
  378. init_subchannel_id(&mchk_schid);
  379. mchk_schid.sch_no = rsid1;
  380. if (rsid2 != 0)
  381. mchk_schid.ssid = (rsid2 >> 8) & 3;
  382. /*
  383. * Since we are always presented with IPI in the CRW, we have to
  384. * use stsch() to find out if the subchannel in question has come
  385. * or gone.
  386. */
  387. ret = css_evaluate_subchannel(mchk_schid, 0);
  388. if (ret == -EAGAIN) {
  389. if (css_enqueue_subchannel_slow(mchk_schid)) {
  390. css_clear_subchannel_slow_list();
  391. need_rescan = 1;
  392. }
  393. }
  394. return ret;
  395. }
  396. static int __init
  397. __init_channel_subsystem(struct subchannel_id schid, void *data)
  398. {
  399. struct subchannel *sch;
  400. int ret;
  401. if (cio_is_console(schid))
  402. sch = cio_get_console_subchannel();
  403. else {
  404. sch = css_alloc_subchannel(schid);
  405. if (IS_ERR(sch))
  406. ret = PTR_ERR(sch);
  407. else
  408. ret = 0;
  409. switch (ret) {
  410. case 0:
  411. break;
  412. case -ENOMEM:
  413. panic("Out of memory in init_channel_subsystem\n");
  414. /* -ENXIO: no more subchannels. */
  415. case -ENXIO:
  416. return ret;
  417. /* -EIO: this subchannel set not supported. */
  418. case -EIO:
  419. return ret;
  420. default:
  421. return 0;
  422. }
  423. }
  424. /*
  425. * We register ALL valid subchannels in ioinfo, even those
  426. * that have been present before init_channel_subsystem.
  427. * These subchannels can't have been registered yet (kmalloc
  428. * not working) so we do it now. This is true e.g. for the
  429. * console subchannel.
  430. */
  431. css_register_subchannel(sch);
  432. return 0;
  433. }
  434. static void __init
  435. css_generate_pgid(struct channel_subsystem *css, u32 tod_high)
  436. {
  437. if (css_characteristics_avail && css_general_characteristics.mcss) {
  438. css->global_pgid.pgid_high.ext_cssid.version = 0x80;
  439. css->global_pgid.pgid_high.ext_cssid.cssid = css->cssid;
  440. } else {
  441. #ifdef CONFIG_SMP
  442. css->global_pgid.pgid_high.cpu_addr = hard_smp_processor_id();
  443. #else
  444. css->global_pgid.pgid_high.cpu_addr = 0;
  445. #endif
  446. }
  447. css->global_pgid.cpu_id = ((cpuid_t *) __LC_CPUID)->ident;
  448. css->global_pgid.cpu_model = ((cpuid_t *) __LC_CPUID)->machine;
  449. css->global_pgid.tod_high = tod_high;
  450. }
  451. static void
  452. channel_subsystem_release(struct device *dev)
  453. {
  454. struct channel_subsystem *css;
  455. css = to_css(dev);
  456. mutex_destroy(&css->mutex);
  457. kfree(css);
  458. }
  459. static ssize_t
  460. css_cm_enable_show(struct device *dev, struct device_attribute *attr,
  461. char *buf)
  462. {
  463. struct channel_subsystem *css = to_css(dev);
  464. if (!css)
  465. return 0;
  466. return sprintf(buf, "%x\n", css->cm_enabled);
  467. }
  468. static ssize_t
  469. css_cm_enable_store(struct device *dev, struct device_attribute *attr,
  470. const char *buf, size_t count)
  471. {
  472. struct channel_subsystem *css = to_css(dev);
  473. int ret;
  474. switch (buf[0]) {
  475. case '0':
  476. ret = css->cm_enabled ? chsc_secm(css, 0) : 0;
  477. break;
  478. case '1':
  479. ret = css->cm_enabled ? 0 : chsc_secm(css, 1);
  480. break;
  481. default:
  482. ret = -EINVAL;
  483. }
  484. return ret < 0 ? ret : count;
  485. }
  486. static DEVICE_ATTR(cm_enable, 0644, css_cm_enable_show, css_cm_enable_store);
  487. static inline void __init
  488. setup_css(int nr)
  489. {
  490. u32 tod_high;
  491. memset(css[nr], 0, sizeof(struct channel_subsystem));
  492. mutex_init(&css[nr]->mutex);
  493. css[nr]->valid = 1;
  494. css[nr]->cssid = nr;
  495. sprintf(css[nr]->device.bus_id, "css%x", nr);
  496. css[nr]->device.release = channel_subsystem_release;
  497. tod_high = (u32) (get_clock() >> 32);
  498. css_generate_pgid(css[nr], tod_high);
  499. }
  500. /*
  501. * Now that the driver core is running, we can setup our channel subsystem.
  502. * The struct subchannel's are created during probing (except for the
  503. * static console subchannel).
  504. */
  505. static int __init
  506. init_channel_subsystem (void)
  507. {
  508. int ret, i;
  509. if (chsc_determine_css_characteristics() == 0)
  510. css_characteristics_avail = 1;
  511. if ((ret = bus_register(&css_bus_type)))
  512. goto out;
  513. /* Try to enable MSS. */
  514. ret = chsc_enable_facility(CHSC_SDA_OC_MSS);
  515. switch (ret) {
  516. case 0: /* Success. */
  517. max_ssid = __MAX_SSID;
  518. break;
  519. case -ENOMEM:
  520. goto out_bus;
  521. default:
  522. max_ssid = 0;
  523. }
  524. /* Setup css structure. */
  525. for (i = 0; i <= __MAX_CSSID; i++) {
  526. css[i] = kmalloc(sizeof(struct channel_subsystem), GFP_KERNEL);
  527. if (!css[i]) {
  528. ret = -ENOMEM;
  529. goto out_unregister;
  530. }
  531. setup_css(i);
  532. ret = device_register(&css[i]->device);
  533. if (ret)
  534. goto out_free;
  535. if (css_characteristics_avail && css_chsc_characteristics.secm)
  536. device_create_file(&css[i]->device,
  537. &dev_attr_cm_enable);
  538. }
  539. css_init_done = 1;
  540. ctl_set_bit(6, 28);
  541. for_each_subchannel(__init_channel_subsystem, NULL);
  542. return 0;
  543. out_free:
  544. kfree(css[i]);
  545. out_unregister:
  546. while (i > 0) {
  547. i--;
  548. if (css_characteristics_avail && css_chsc_characteristics.secm)
  549. device_remove_file(&css[i]->device,
  550. &dev_attr_cm_enable);
  551. device_unregister(&css[i]->device);
  552. }
  553. out_bus:
  554. bus_unregister(&css_bus_type);
  555. out:
  556. return ret;
  557. }
  558. /*
  559. * find a driver for a subchannel. They identify by the subchannel
  560. * type with the exception that the console subchannel driver has its own
  561. * subchannel type although the device is an i/o subchannel
  562. */
  563. static int
  564. css_bus_match (struct device *dev, struct device_driver *drv)
  565. {
  566. struct subchannel *sch = container_of (dev, struct subchannel, dev);
  567. struct css_driver *driver = container_of (drv, struct css_driver, drv);
  568. if (sch->st == driver->subchannel_type)
  569. return 1;
  570. return 0;
  571. }
  572. static int
  573. css_probe (struct device *dev)
  574. {
  575. struct subchannel *sch;
  576. sch = to_subchannel(dev);
  577. sch->driver = container_of (dev->driver, struct css_driver, drv);
  578. return (sch->driver->probe ? sch->driver->probe(sch) : 0);
  579. }
  580. static int
  581. css_remove (struct device *dev)
  582. {
  583. struct subchannel *sch;
  584. sch = to_subchannel(dev);
  585. return (sch->driver->remove ? sch->driver->remove(sch) : 0);
  586. }
  587. static void
  588. css_shutdown (struct device *dev)
  589. {
  590. struct subchannel *sch;
  591. sch = to_subchannel(dev);
  592. if (sch->driver->shutdown)
  593. sch->driver->shutdown(sch);
  594. }
  595. struct bus_type css_bus_type = {
  596. .name = "css",
  597. .match = css_bus_match,
  598. .probe = css_probe,
  599. .remove = css_remove,
  600. .shutdown = css_shutdown,
  601. };
  602. subsys_initcall(init_channel_subsystem);
  603. int
  604. css_enqueue_subchannel_slow(struct subchannel_id schid)
  605. {
  606. struct slow_subchannel *new_slow_sch;
  607. unsigned long flags;
  608. new_slow_sch = kzalloc(sizeof(struct slow_subchannel), GFP_ATOMIC);
  609. if (!new_slow_sch)
  610. return -ENOMEM;
  611. new_slow_sch->schid = schid;
  612. spin_lock_irqsave(&slow_subchannel_lock, flags);
  613. list_add_tail(&new_slow_sch->slow_list, &slow_subchannels_head);
  614. spin_unlock_irqrestore(&slow_subchannel_lock, flags);
  615. return 0;
  616. }
  617. void
  618. css_clear_subchannel_slow_list(void)
  619. {
  620. unsigned long flags;
  621. spin_lock_irqsave(&slow_subchannel_lock, flags);
  622. while (!list_empty(&slow_subchannels_head)) {
  623. struct slow_subchannel *slow_sch =
  624. list_entry(slow_subchannels_head.next,
  625. struct slow_subchannel, slow_list);
  626. list_del_init(slow_subchannels_head.next);
  627. kfree(slow_sch);
  628. }
  629. spin_unlock_irqrestore(&slow_subchannel_lock, flags);
  630. }
  631. int
  632. css_slow_subchannels_exist(void)
  633. {
  634. return (!list_empty(&slow_subchannels_head));
  635. }
  636. MODULE_LICENSE("GPL");
  637. EXPORT_SYMBOL(css_bus_type);
  638. EXPORT_SYMBOL_GPL(css_characteristics_avail);