cpci_hotplug_core.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. /*
  2. * CompactPCI Hot Plug Driver
  3. *
  4. * Copyright (C) 2002,2005 SOMA Networks, Inc.
  5. * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
  6. * Copyright (C) 2001 IBM Corp.
  7. *
  8. * All rights reserved.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or (at
  13. * your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful, but
  16. * WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  18. * NON INFRINGEMENT. See the GNU General Public License for more
  19. * details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. *
  25. * Send feedback to <scottm@somanetworks.com>
  26. */
  27. #include <linux/module.h>
  28. #include <linux/kernel.h>
  29. #include <linux/slab.h>
  30. #include <linux/pci.h>
  31. #include <linux/pci_hotplug.h>
  32. #include <linux/init.h>
  33. #include <linux/interrupt.h>
  34. #include <linux/smp_lock.h>
  35. #include <asm/atomic.h>
  36. #include <linux/delay.h>
  37. #include <linux/kthread.h>
  38. #include "cpci_hotplug.h"
  39. #define DRIVER_AUTHOR "Scott Murray <scottm@somanetworks.com>"
  40. #define DRIVER_DESC "CompactPCI Hot Plug Core"
  41. #define MY_NAME "cpci_hotplug"
  42. #define dbg(format, arg...) \
  43. do { \
  44. if (cpci_debug) \
  45. printk (KERN_DEBUG "%s: " format "\n", \
  46. MY_NAME , ## arg); \
  47. } while (0)
  48. #define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg)
  49. #define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)
  50. #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
  51. /* local variables */
  52. static DECLARE_RWSEM(list_rwsem);
  53. static LIST_HEAD(slot_list);
  54. static int slots;
  55. static atomic_t extracting;
  56. int cpci_debug;
  57. static struct cpci_hp_controller *controller;
  58. static struct task_struct *cpci_thread;
  59. static int thread_finished;
  60. static int enable_slot(struct hotplug_slot *slot);
  61. static int disable_slot(struct hotplug_slot *slot);
  62. static int set_attention_status(struct hotplug_slot *slot, u8 value);
  63. static int get_power_status(struct hotplug_slot *slot, u8 * value);
  64. static int get_attention_status(struct hotplug_slot *slot, u8 * value);
  65. static int get_adapter_status(struct hotplug_slot *slot, u8 * value);
  66. static int get_latch_status(struct hotplug_slot *slot, u8 * value);
  67. static struct hotplug_slot_ops cpci_hotplug_slot_ops = {
  68. .owner = THIS_MODULE,
  69. .enable_slot = enable_slot,
  70. .disable_slot = disable_slot,
  71. .set_attention_status = set_attention_status,
  72. .get_power_status = get_power_status,
  73. .get_attention_status = get_attention_status,
  74. .get_adapter_status = get_adapter_status,
  75. .get_latch_status = get_latch_status,
  76. };
  77. static int
  78. update_latch_status(struct hotplug_slot *hotplug_slot, u8 value)
  79. {
  80. struct hotplug_slot_info info;
  81. memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info));
  82. info.latch_status = value;
  83. return pci_hp_change_slot_info(hotplug_slot, &info);
  84. }
  85. static int
  86. update_adapter_status(struct hotplug_slot *hotplug_slot, u8 value)
  87. {
  88. struct hotplug_slot_info info;
  89. memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info));
  90. info.adapter_status = value;
  91. return pci_hp_change_slot_info(hotplug_slot, &info);
  92. }
  93. static int
  94. enable_slot(struct hotplug_slot *hotplug_slot)
  95. {
  96. struct slot *slot = hotplug_slot->private;
  97. int retval = 0;
  98. dbg("%s - physical_slot = %s", __func__, slot_name(slot));
  99. if (controller->ops->set_power)
  100. retval = controller->ops->set_power(slot, 1);
  101. return retval;
  102. }
  103. static int
  104. disable_slot(struct hotplug_slot *hotplug_slot)
  105. {
  106. struct slot *slot = hotplug_slot->private;
  107. int retval = 0;
  108. dbg("%s - physical_slot = %s", __func__, slot_name(slot));
  109. down_write(&list_rwsem);
  110. /* Unconfigure device */
  111. dbg("%s - unconfiguring slot %s", __func__, slot_name(slot));
  112. if ((retval = cpci_unconfigure_slot(slot))) {
  113. err("%s - could not unconfigure slot %s",
  114. __func__, slot_name(slot));
  115. goto disable_error;
  116. }
  117. dbg("%s - finished unconfiguring slot %s", __func__, slot_name(slot));
  118. /* Clear EXT (by setting it) */
  119. if (cpci_clear_ext(slot)) {
  120. err("%s - could not clear EXT for slot %s",
  121. __func__, slot_name(slot));
  122. retval = -ENODEV;
  123. goto disable_error;
  124. }
  125. cpci_led_on(slot);
  126. if (controller->ops->set_power)
  127. if ((retval = controller->ops->set_power(slot, 0)))
  128. goto disable_error;
  129. if (update_adapter_status(slot->hotplug_slot, 0))
  130. warn("failure to update adapter file");
  131. if (slot->extracting) {
  132. slot->extracting = 0;
  133. atomic_dec(&extracting);
  134. }
  135. disable_error:
  136. up_write(&list_rwsem);
  137. return retval;
  138. }
  139. static u8
  140. cpci_get_power_status(struct slot *slot)
  141. {
  142. u8 power = 1;
  143. if (controller->ops->get_power)
  144. power = controller->ops->get_power(slot);
  145. return power;
  146. }
  147. static int
  148. get_power_status(struct hotplug_slot *hotplug_slot, u8 * value)
  149. {
  150. struct slot *slot = hotplug_slot->private;
  151. *value = cpci_get_power_status(slot);
  152. return 0;
  153. }
  154. static int
  155. get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value)
  156. {
  157. struct slot *slot = hotplug_slot->private;
  158. *value = cpci_get_attention_status(slot);
  159. return 0;
  160. }
  161. static int
  162. set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
  163. {
  164. return cpci_set_attention_status(hotplug_slot->private, status);
  165. }
  166. static int
  167. get_adapter_status(struct hotplug_slot *hotplug_slot, u8 * value)
  168. {
  169. *value = hotplug_slot->info->adapter_status;
  170. return 0;
  171. }
  172. static int
  173. get_latch_status(struct hotplug_slot *hotplug_slot, u8 * value)
  174. {
  175. *value = hotplug_slot->info->latch_status;
  176. return 0;
  177. }
  178. static void release_slot(struct hotplug_slot *hotplug_slot)
  179. {
  180. struct slot *slot = hotplug_slot->private;
  181. kfree(slot->hotplug_slot->info);
  182. kfree(slot->hotplug_slot);
  183. if (slot->dev)
  184. pci_dev_put(slot->dev);
  185. kfree(slot);
  186. }
  187. #define SLOT_NAME_SIZE 6
  188. int
  189. cpci_hp_register_bus(struct pci_bus *bus, u8 first, u8 last)
  190. {
  191. struct slot *slot;
  192. struct hotplug_slot *hotplug_slot;
  193. struct hotplug_slot_info *info;
  194. char name[SLOT_NAME_SIZE];
  195. int status = -ENOMEM;
  196. int i;
  197. if (!(controller && bus))
  198. return -ENODEV;
  199. /*
  200. * Create a structure for each slot, and register that slot
  201. * with the pci_hotplug subsystem.
  202. */
  203. for (i = first; i <= last; ++i) {
  204. slot = kzalloc(sizeof (struct slot), GFP_KERNEL);
  205. if (!slot)
  206. goto error;
  207. hotplug_slot =
  208. kzalloc(sizeof (struct hotplug_slot), GFP_KERNEL);
  209. if (!hotplug_slot)
  210. goto error_slot;
  211. slot->hotplug_slot = hotplug_slot;
  212. info = kzalloc(sizeof (struct hotplug_slot_info), GFP_KERNEL);
  213. if (!info)
  214. goto error_hpslot;
  215. hotplug_slot->info = info;
  216. slot->bus = bus;
  217. slot->number = i;
  218. slot->devfn = PCI_DEVFN(i, 0);
  219. snprintf(name, SLOT_NAME_SIZE, "%02x:%02x", bus->number, i);
  220. hotplug_slot->private = slot;
  221. hotplug_slot->release = &release_slot;
  222. hotplug_slot->ops = &cpci_hotplug_slot_ops;
  223. /*
  224. * Initialize the slot info structure with some known
  225. * good values.
  226. */
  227. dbg("initializing slot %s", name);
  228. info->power_status = cpci_get_power_status(slot);
  229. info->attention_status = cpci_get_attention_status(slot);
  230. dbg("registering slot %s", name);
  231. status = pci_hp_register(slot->hotplug_slot, bus, i, name);
  232. if (status) {
  233. err("pci_hp_register failed with error %d", status);
  234. goto error_info;
  235. }
  236. dbg("slot registered with name: %s", slot_name(slot));
  237. /* Add slot to our internal list */
  238. down_write(&list_rwsem);
  239. list_add(&slot->slot_list, &slot_list);
  240. slots++;
  241. up_write(&list_rwsem);
  242. }
  243. return 0;
  244. error_info:
  245. kfree(info);
  246. error_hpslot:
  247. kfree(hotplug_slot);
  248. error_slot:
  249. kfree(slot);
  250. error:
  251. return status;
  252. }
  253. int
  254. cpci_hp_unregister_bus(struct pci_bus *bus)
  255. {
  256. struct slot *slot;
  257. struct slot *tmp;
  258. int status = 0;
  259. down_write(&list_rwsem);
  260. if (!slots) {
  261. up_write(&list_rwsem);
  262. return -1;
  263. }
  264. list_for_each_entry_safe(slot, tmp, &slot_list, slot_list) {
  265. if (slot->bus == bus) {
  266. list_del(&slot->slot_list);
  267. slots--;
  268. dbg("deregistering slot %s", slot_name(slot));
  269. status = pci_hp_deregister(slot->hotplug_slot);
  270. if (status) {
  271. err("pci_hp_deregister failed with error %d",
  272. status);
  273. break;
  274. }
  275. }
  276. }
  277. up_write(&list_rwsem);
  278. return status;
  279. }
  280. /* This is the interrupt mode interrupt handler */
  281. static irqreturn_t
  282. cpci_hp_intr(int irq, void *data)
  283. {
  284. dbg("entered cpci_hp_intr");
  285. /* Check to see if it was our interrupt */
  286. if ((controller->irq_flags & IRQF_SHARED) &&
  287. !controller->ops->check_irq(controller->dev_id)) {
  288. dbg("exited cpci_hp_intr, not our interrupt");
  289. return IRQ_NONE;
  290. }
  291. /* Disable ENUM interrupt */
  292. controller->ops->disable_irq();
  293. /* Trigger processing by the event thread */
  294. wake_up_process(cpci_thread);
  295. return IRQ_HANDLED;
  296. }
  297. /*
  298. * According to PICMG 2.1 R2.0, section 6.3.2, upon
  299. * initialization, the system driver shall clear the
  300. * INS bits of the cold-inserted devices.
  301. */
  302. static int
  303. init_slots(int clear_ins)
  304. {
  305. struct slot *slot;
  306. struct pci_dev* dev;
  307. dbg("%s - enter", __func__);
  308. down_read(&list_rwsem);
  309. if (!slots) {
  310. up_read(&list_rwsem);
  311. return -1;
  312. }
  313. list_for_each_entry(slot, &slot_list, slot_list) {
  314. dbg("%s - looking at slot %s", __func__, slot_name(slot));
  315. if (clear_ins && cpci_check_and_clear_ins(slot))
  316. dbg("%s - cleared INS for slot %s",
  317. __func__, slot_name(slot));
  318. dev = pci_get_slot(slot->bus, PCI_DEVFN(slot->number, 0));
  319. if (dev) {
  320. if (update_adapter_status(slot->hotplug_slot, 1))
  321. warn("failure to update adapter file");
  322. if (update_latch_status(slot->hotplug_slot, 1))
  323. warn("failure to update latch file");
  324. slot->dev = dev;
  325. }
  326. }
  327. up_read(&list_rwsem);
  328. dbg("%s - exit", __func__);
  329. return 0;
  330. }
  331. static int
  332. check_slots(void)
  333. {
  334. struct slot *slot;
  335. int extracted;
  336. int inserted;
  337. u16 hs_csr;
  338. down_read(&list_rwsem);
  339. if (!slots) {
  340. up_read(&list_rwsem);
  341. err("no slots registered, shutting down");
  342. return -1;
  343. }
  344. extracted = inserted = 0;
  345. list_for_each_entry(slot, &slot_list, slot_list) {
  346. dbg("%s - looking at slot %s", __func__, slot_name(slot));
  347. if (cpci_check_and_clear_ins(slot)) {
  348. /*
  349. * Some broken hardware (e.g. PLX 9054AB) asserts
  350. * ENUM# twice...
  351. */
  352. if (slot->dev) {
  353. warn("slot %s already inserted",
  354. slot_name(slot));
  355. inserted++;
  356. continue;
  357. }
  358. /* Process insertion */
  359. dbg("%s - slot %s inserted", __func__, slot_name(slot));
  360. /* GSM, debug */
  361. hs_csr = cpci_get_hs_csr(slot);
  362. dbg("%s - slot %s HS_CSR (1) = %04x",
  363. __func__, slot_name(slot), hs_csr);
  364. /* Configure device */
  365. dbg("%s - configuring slot %s",
  366. __func__, slot_name(slot));
  367. if (cpci_configure_slot(slot)) {
  368. err("%s - could not configure slot %s",
  369. __func__, slot_name(slot));
  370. continue;
  371. }
  372. dbg("%s - finished configuring slot %s",
  373. __func__, slot_name(slot));
  374. /* GSM, debug */
  375. hs_csr = cpci_get_hs_csr(slot);
  376. dbg("%s - slot %s HS_CSR (2) = %04x",
  377. __func__, slot_name(slot), hs_csr);
  378. if (update_latch_status(slot->hotplug_slot, 1))
  379. warn("failure to update latch file");
  380. if (update_adapter_status(slot->hotplug_slot, 1))
  381. warn("failure to update adapter file");
  382. cpci_led_off(slot);
  383. /* GSM, debug */
  384. hs_csr = cpci_get_hs_csr(slot);
  385. dbg("%s - slot %s HS_CSR (3) = %04x",
  386. __func__, slot_name(slot), hs_csr);
  387. inserted++;
  388. } else if (cpci_check_ext(slot)) {
  389. /* Process extraction request */
  390. dbg("%s - slot %s extracted",
  391. __func__, slot_name(slot));
  392. /* GSM, debug */
  393. hs_csr = cpci_get_hs_csr(slot);
  394. dbg("%s - slot %s HS_CSR = %04x",
  395. __func__, slot_name(slot), hs_csr);
  396. if (!slot->extracting) {
  397. if (update_latch_status(slot->hotplug_slot, 0)) {
  398. warn("failure to update latch file");
  399. }
  400. slot->extracting = 1;
  401. atomic_inc(&extracting);
  402. }
  403. extracted++;
  404. } else if (slot->extracting) {
  405. hs_csr = cpci_get_hs_csr(slot);
  406. if (hs_csr == 0xffff) {
  407. /*
  408. * Hmmm, we're likely hosed at this point, should we
  409. * bother trying to tell the driver or not?
  410. */
  411. err("card in slot %s was improperly removed",
  412. slot_name(slot));
  413. if (update_adapter_status(slot->hotplug_slot, 0))
  414. warn("failure to update adapter file");
  415. slot->extracting = 0;
  416. atomic_dec(&extracting);
  417. }
  418. }
  419. }
  420. up_read(&list_rwsem);
  421. dbg("inserted=%d, extracted=%d, extracting=%d",
  422. inserted, extracted, atomic_read(&extracting));
  423. if (inserted || extracted)
  424. return extracted;
  425. else if (!atomic_read(&extracting)) {
  426. err("cannot find ENUM# source, shutting down");
  427. return -1;
  428. }
  429. return 0;
  430. }
  431. /* This is the interrupt mode worker thread body */
  432. static int
  433. event_thread(void *data)
  434. {
  435. int rc;
  436. dbg("%s - event thread started", __func__);
  437. while (1) {
  438. dbg("event thread sleeping");
  439. set_current_state(TASK_INTERRUPTIBLE);
  440. schedule();
  441. if (kthread_should_stop())
  442. break;
  443. do {
  444. rc = check_slots();
  445. if (rc > 0) {
  446. /* Give userspace a chance to handle extraction */
  447. msleep(500);
  448. } else if (rc < 0) {
  449. dbg("%s - error checking slots", __func__);
  450. thread_finished = 1;
  451. goto out;
  452. }
  453. } while (atomic_read(&extracting) && !kthread_should_stop());
  454. if (kthread_should_stop())
  455. break;
  456. /* Re-enable ENUM# interrupt */
  457. dbg("%s - re-enabling irq", __func__);
  458. controller->ops->enable_irq();
  459. }
  460. out:
  461. return 0;
  462. }
  463. /* This is the polling mode worker thread body */
  464. static int
  465. poll_thread(void *data)
  466. {
  467. int rc;
  468. while (1) {
  469. if (kthread_should_stop() || signal_pending(current))
  470. break;
  471. if (controller->ops->query_enum()) {
  472. do {
  473. rc = check_slots();
  474. if (rc > 0) {
  475. /* Give userspace a chance to handle extraction */
  476. msleep(500);
  477. } else if (rc < 0) {
  478. dbg("%s - error checking slots", __func__);
  479. thread_finished = 1;
  480. goto out;
  481. }
  482. } while (atomic_read(&extracting) && !kthread_should_stop());
  483. }
  484. msleep(100);
  485. }
  486. out:
  487. return 0;
  488. }
  489. static int
  490. cpci_start_thread(void)
  491. {
  492. if (controller->irq)
  493. cpci_thread = kthread_run(event_thread, NULL, "cpci_hp_eventd");
  494. else
  495. cpci_thread = kthread_run(poll_thread, NULL, "cpci_hp_polld");
  496. if (IS_ERR(cpci_thread)) {
  497. err("Can't start up our thread");
  498. return PTR_ERR(cpci_thread);
  499. }
  500. thread_finished = 0;
  501. return 0;
  502. }
  503. static void
  504. cpci_stop_thread(void)
  505. {
  506. kthread_stop(cpci_thread);
  507. thread_finished = 1;
  508. }
  509. int
  510. cpci_hp_register_controller(struct cpci_hp_controller *new_controller)
  511. {
  512. int status = 0;
  513. if (controller)
  514. return -1;
  515. if (!(new_controller && new_controller->ops))
  516. return -EINVAL;
  517. if (new_controller->irq) {
  518. if (!(new_controller->ops->enable_irq &&
  519. new_controller->ops->disable_irq))
  520. status = -EINVAL;
  521. if (request_irq(new_controller->irq,
  522. cpci_hp_intr,
  523. new_controller->irq_flags,
  524. MY_NAME,
  525. new_controller->dev_id)) {
  526. err("Can't get irq %d for the hotplug cPCI controller",
  527. new_controller->irq);
  528. status = -ENODEV;
  529. }
  530. dbg("%s - acquired controller irq %d",
  531. __func__, new_controller->irq);
  532. }
  533. if (!status)
  534. controller = new_controller;
  535. return status;
  536. }
  537. static void
  538. cleanup_slots(void)
  539. {
  540. struct slot *slot;
  541. struct slot *tmp;
  542. /*
  543. * Unregister all of our slots with the pci_hotplug subsystem,
  544. * and free up all memory that we had allocated.
  545. */
  546. down_write(&list_rwsem);
  547. if (!slots)
  548. goto cleanup_null;
  549. list_for_each_entry_safe(slot, tmp, &slot_list, slot_list) {
  550. list_del(&slot->slot_list);
  551. pci_hp_deregister(slot->hotplug_slot);
  552. }
  553. cleanup_null:
  554. up_write(&list_rwsem);
  555. return;
  556. }
  557. int
  558. cpci_hp_unregister_controller(struct cpci_hp_controller *old_controller)
  559. {
  560. int status = 0;
  561. if (controller) {
  562. if (!thread_finished)
  563. cpci_stop_thread();
  564. if (controller->irq)
  565. free_irq(controller->irq, controller->dev_id);
  566. controller = NULL;
  567. cleanup_slots();
  568. } else
  569. status = -ENODEV;
  570. return status;
  571. }
  572. int
  573. cpci_hp_start(void)
  574. {
  575. static int first = 1;
  576. int status;
  577. dbg("%s - enter", __func__);
  578. if (!controller)
  579. return -ENODEV;
  580. down_read(&list_rwsem);
  581. if (list_empty(&slot_list)) {
  582. up_read(&list_rwsem);
  583. return -ENODEV;
  584. }
  585. up_read(&list_rwsem);
  586. status = init_slots(first);
  587. if (first)
  588. first = 0;
  589. if (status)
  590. return status;
  591. status = cpci_start_thread();
  592. if (status)
  593. return status;
  594. dbg("%s - thread started", __func__);
  595. if (controller->irq) {
  596. /* Start enum interrupt processing */
  597. dbg("%s - enabling irq", __func__);
  598. controller->ops->enable_irq();
  599. }
  600. dbg("%s - exit", __func__);
  601. return 0;
  602. }
  603. int
  604. cpci_hp_stop(void)
  605. {
  606. if (!controller)
  607. return -ENODEV;
  608. if (controller->irq) {
  609. /* Stop enum interrupt processing */
  610. dbg("%s - disabling irq", __func__);
  611. controller->ops->disable_irq();
  612. }
  613. cpci_stop_thread();
  614. return 0;
  615. }
  616. int __init
  617. cpci_hotplug_init(int debug)
  618. {
  619. cpci_debug = debug;
  620. return 0;
  621. }
  622. void __exit
  623. cpci_hotplug_exit(void)
  624. {
  625. /*
  626. * Clean everything up.
  627. */
  628. cpci_hp_stop();
  629. cpci_hp_unregister_controller(controller);
  630. }
  631. EXPORT_SYMBOL_GPL(cpci_hp_register_controller);
  632. EXPORT_SYMBOL_GPL(cpci_hp_unregister_controller);
  633. EXPORT_SYMBOL_GPL(cpci_hp_register_bus);
  634. EXPORT_SYMBOL_GPL(cpci_hp_unregister_bus);
  635. EXPORT_SYMBOL_GPL(cpci_hp_start);
  636. EXPORT_SYMBOL_GPL(cpci_hp_stop);