sir_core.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*********************************************************************
  2. *
  3. * sir_core.c: module core for irda-sir abstraction layer
  4. *
  5. * Copyright (c) 2002 Martin Diehl
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. ********************************************************************/
  13. #include <linux/module.h>
  14. #include <linux/kernel.h>
  15. #include <linux/init.h>
  16. #include <net/irda/irda.h>
  17. #include "sir-dev.h"
  18. /***************************************************************************/
  19. MODULE_AUTHOR("Martin Diehl <info@mdiehl.de>");
  20. MODULE_DESCRIPTION("IrDA SIR core");
  21. MODULE_LICENSE("GPL");
  22. /***************************************************************************/
  23. EXPORT_SYMBOL(irda_register_dongle);
  24. EXPORT_SYMBOL(irda_unregister_dongle);
  25. EXPORT_SYMBOL(sirdev_get_instance);
  26. EXPORT_SYMBOL(sirdev_put_instance);
  27. EXPORT_SYMBOL(sirdev_set_dongle);
  28. EXPORT_SYMBOL(sirdev_write_complete);
  29. EXPORT_SYMBOL(sirdev_receive);
  30. EXPORT_SYMBOL(sirdev_raw_write);
  31. EXPORT_SYMBOL(sirdev_raw_read);
  32. EXPORT_SYMBOL(sirdev_set_dtr_rts);
  33. static int __init sir_core_init(void)
  34. {
  35. return irda_thread_create();
  36. }
  37. static void __exit sir_core_exit(void)
  38. {
  39. irda_thread_join();
  40. }
  41. module_init(sir_core_init);
  42. module_exit(sir_core_exit);