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 30 MODULE_AUTHOR("Qualcomm Atheros Inc."); 31 MODULE_DESCRIPTION("Qualcomm Atheros Device Framework Module"); 32 MODULE_LICENSE("Dual BSD/GPL"); 33 34 #ifndef EXPORT_SYMTAB 35 #define EXPORT_SYMTAB 36 #endif 37 38 /** 39 * qdf_mod_init() - module initialization 40 * 41 * Return: int 42 */ 43 static int __init 44 qdf_mod_init(void) 45 { 46 qdf_shared_print_ctrl_init(); 47 qdf_debugfs_init(); 48 qdf_mem_init(); 49 qdf_logging_init(); 50 qdf_perfmod_init(); 51 qdf_nbuf_mod_init(); 52 return 0; 53 } 54 module_init(qdf_mod_init); 55 56 /** 57 * qdf_mod_exit() - module remove 58 * 59 * Return: int 60 */ 61 static void __exit 62 qdf_mod_exit(void) 63 { 64 qdf_nbuf_mod_exit(); 65 qdf_perfmod_exit(); 66 qdf_logging_exit(); 67 qdf_mem_exit(); 68 qdf_debugfs_exit(); 69 qdf_shared_print_ctrl_cleanup(); 70 } 71 module_exit(qdf_mod_exit); 72 73