1 /* 2 * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 /** 20 * DOC: i_qdf_module.h 21 * Linux-specific definitions for QDF module API's 22 */ 23 24 #include <linux/module.h> 25 #include <qdf_perf.h> 26 #include <qdf_trace.h> 27 #include <qdf_nbuf.h> 28 #include <qdf_mem.h> 29 #include <qdf_event.h> 30 31 MODULE_AUTHOR("Qualcomm Atheros Inc."); 32 MODULE_DESCRIPTION("Qualcomm Atheros Device Framework Module"); 33 MODULE_LICENSE("Dual BSD/GPL"); 34 35 #ifndef EXPORT_SYMTAB 36 #define EXPORT_SYMTAB 37 #endif 38 39 /** 40 * qdf_mod_init() - module initialization 41 * 42 * Return: int 43 */ 44 static int __init 45 qdf_mod_init(void) 46 { 47 qdf_shared_print_ctrl_init(); 48 qdf_debugfs_init(); 49 qdf_mem_init(); 50 qdf_logging_init(); 51 qdf_perfmod_init(); 52 qdf_nbuf_mod_init(); 53 qdf_event_list_init(); 54 return 0; 55 } 56 module_init(qdf_mod_init); 57 58 /** 59 * qdf_mod_exit() - module remove 60 * 61 * Return: int 62 */ 63 static void __exit 64 qdf_mod_exit(void) 65 { 66 qdf_event_list_destroy(); 67 qdf_nbuf_mod_exit(); 68 qdf_perfmod_exit(); 69 qdf_logging_exit(); 70 qdf_mem_exit(); 71 qdf_debugfs_exit(); 72 qdf_shared_print_ctrl_cleanup(); 73 } 74 module_exit(qdf_mod_exit); 75 76