/* * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /** * DOC: target_if_global_shmem.h * This file contains declarations of global shared memory access related APIs. */ #ifndef _TARGET_IF_GLOBAL_SHMEM_H_ #define _TARGET_IF_GLOBAL_SHMEM_H_ #include #include #include #include #ifdef WLAN_MLO_GLOBAL_SHMEM_SUPPORT static inline struct wlan_lmac_if_global_shmem_local_ops * target_if_get_global_shmem_local_ops(struct wlan_objmgr_psoc *psoc) { struct wlan_lmac_if_tx_ops *tx_ops; if (!psoc) { target_if_err("psoc is null"); return NULL; } tx_ops = wlan_psoc_get_lmac_if_txops(psoc); if (!tx_ops) { target_if_err("tx_ops is NULL"); return NULL; } return &tx_ops->mlo_ops.shmem_local_ops; } #endif /* WLAN_MLO_GLOBAL_SHMEM_SUPPORT */ #endif /* _TARGET_IF_GLOBAL_SHMEM_H_ */