Linux-2.6.12-rc2
[linux-flexiantxendom0-natty.git] / drivers / net / irda / sir_core.c
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
14 #include <linux/module.h>
15 #include <linux/kernel.h>
16 #include <linux/init.h>
17
18 #include <net/irda/irda.h>
19
20 #include "sir-dev.h"
21
22 /***************************************************************************/
23
24 MODULE_AUTHOR("Martin Diehl <info@mdiehl.de>");
25 MODULE_DESCRIPTION("IrDA SIR core");
26 MODULE_LICENSE("GPL");
27
28 /***************************************************************************/
29
30 EXPORT_SYMBOL(irda_register_dongle);
31 EXPORT_SYMBOL(irda_unregister_dongle);
32
33 EXPORT_SYMBOL(sirdev_get_instance);
34 EXPORT_SYMBOL(sirdev_put_instance);
35
36 EXPORT_SYMBOL(sirdev_set_dongle);
37 EXPORT_SYMBOL(sirdev_write_complete);
38 EXPORT_SYMBOL(sirdev_receive);
39
40 EXPORT_SYMBOL(sirdev_raw_write);
41 EXPORT_SYMBOL(sirdev_raw_read);
42 EXPORT_SYMBOL(sirdev_set_dtr_rts);
43
44 static int __init sir_core_init(void)
45 {
46         return irda_thread_create();
47 }
48
49 static void __exit sir_core_exit(void)
50 {
51         irda_thread_join();
52 }
53
54 module_init(sir_core_init);
55 module_exit(sir_core_exit);
56