1 /* 2 * Copyright (c) 2017-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 * DOC: wlan_serialization_main.h 20 * This file contains all the prototype definitions necessary for the 21 * serialization component's internal functions 22 */ 23 #ifndef __WLAN_SERIALIZATION_MAIN_I_H 24 #define __WLAN_SERIALIZATION_MAIN_I_H 25 /* Include files */ 26 #include "wlan_objmgr_cmn.h" 27 #include "wlan_objmgr_psoc_obj.h" 28 #include "wlan_objmgr_pdev_obj.h" 29 #include "qdf_mc_timer.h" 30 31 #define WLAN_SERIALIZATION_MAX_GLOBAL_POOL_CMDS 24 32 #define WLAN_SERIALIZATION_MAX_ACTIVE_CMDS 1 33 #define WLAN_SERIALIZATION_MAX_ACTIVE_SCAN_CMDS 8 34 35 #define serialization_alert(params...) \ 36 QDF_TRACE_FATAL(QDF_MODULE_ID_SERIALIZATION, params) 37 #define serialization_err(params...) \ 38 QDF_TRACE_ERROR(QDF_MODULE_ID_SERIALIZATION, params) 39 #define serialization_warn(params...) \ 40 QDF_TRACE_WARN(QDF_MODULE_ID_SERIALIZATION, params) 41 #define serialization_info(params...) \ 42 QDF_TRACE_INFO(QDF_MODULE_ID_SERIALIZATION, params) 43 #define serialization_debug(params...) \ 44 QDF_TRACE_DEBUG(QDF_MODULE_ID_SERIALIZATION, params) 45 46 #define serialization_enter() serialization_debug("enter") 47 #define serialization_exit() serialization_debug("exit") 48 49 /** 50 * struct serialization_legacy_callback - to handle legacy serialization cb 51 * 52 * @serialization_purge_cmd_list: function ptr to be filled by serialization 53 * module 54 * 55 * Some of the legacy modules wants to call API to purge the commands in 56 * order to handle backward compatibility. 57 */ 58 struct serialization_legacy_callback { 59 void (*serialization_purge_cmd_list) (struct wlan_objmgr_psoc *, 60 struct wlan_objmgr_vdev *, bool, bool, bool, bool, bool); 61 }; 62 63 #endif 64