1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2019 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name /** 21*5113495bSYour Name * DOC: qld_priv.h 22*5113495bSYour Name * QLD: This file provides Private functions for qld 23*5113495bSYour Name */ 24*5113495bSYour Name 25*5113495bSYour Name #ifndef _QLD_PRIV_H_ 26*5113495bSYour Name #define _QLD_PRIV_H_ 27*5113495bSYour Name 28*5113495bSYour Name #include <qdf_lock.h> 29*5113495bSYour Name #include <qdf_list.h> 30*5113495bSYour Name #include <qld_api.h> 31*5113495bSYour Name 32*5113495bSYour Name #define qld_alert(format, args...) \ 33*5113495bSYour Name QDF_TRACE_FATAL(QDF_MODULE_ID_QLD, format, ## args) 34*5113495bSYour Name 35*5113495bSYour Name #define qld_err(format, args...) \ 36*5113495bSYour Name QDF_TRACE_ERROR(QDF_MODULE_ID_QLD, format, ## args) 37*5113495bSYour Name 38*5113495bSYour Name #define qld_warn(format, args...) \ 39*5113495bSYour Name QDF_TRACE_WARN(QDF_MODULE_ID_QLD, format, ## args) 40*5113495bSYour Name 41*5113495bSYour Name #define qld_info(format, args...) \ 42*5113495bSYour Name QDF_TRACE_INFO(QDF_MODULE_ID_QLD, format, ## args) 43*5113495bSYour Name 44*5113495bSYour Name #define qld_debug(format, args...) \ 45*5113495bSYour Name QDF_TRACE_DEBUG(QDF_MODULE_ID_QLD, format, ## args) 46*5113495bSYour Name 47*5113495bSYour Name /** 48*5113495bSYour Name * struct qld_list_handle - Top level qld structure 49*5113495bSYour Name * @qld_lock: Spinlock for structure 50*5113495bSYour Name * @qld_list: linked list for linking 51*5113495bSYour Name * @qld_max_list: maximum list size 52*5113495bSYour Name */ 53*5113495bSYour Name struct qld_list_handle { 54*5113495bSYour Name qdf_spinlock_t qld_lock; 55*5113495bSYour Name qdf_list_t qld_list; 56*5113495bSYour Name uint32_t qld_max_list; 57*5113495bSYour Name }; 58*5113495bSYour Name 59*5113495bSYour Name /** 60*5113495bSYour Name * struct qld_node - qld node 61*5113495bSYour Name * @node: single node of linked list 62*5113495bSYour Name * @entry: single qld_entry in list 63*5113495bSYour Name */ 64*5113495bSYour Name struct qld_node { 65*5113495bSYour Name qdf_list_node_t node; 66*5113495bSYour Name struct qld_entry entry; 67*5113495bSYour Name }; 68*5113495bSYour Name 69*5113495bSYour Name #endif /*_QLD_PRIV_H_*/ 70