qcacmn: Add wrapper functions to get the correct pdev_id
Add wrapper functions to get the host pdev id from target pdev id and vice versa. Change-Id: Ib10f6f5625b4a9e1f44a13e9185de75f6df88b3c CRs-Fixed: 2711423
This commit is contained in:

کامیت شده توسط
snandini

والد
065e48fb63
کامیت
bdecef61b5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017, 2019-2020 The Linux Foundation. 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
|
||||
@@ -119,4 +119,50 @@ static inline QDF_STATUS target_if_wifi_pos_deinit_dma_rings(
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CNSS_GENL
|
||||
/**
|
||||
* target_if_wifi_pos_convert_pdev_id_host_to_target: function to get target
|
||||
* pdev_id from host pdev_id
|
||||
* @psoc: pointer to psoc object
|
||||
* @host_pdev_id: host pdev id
|
||||
* @target_pdev_id: target pdev id
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS in case of success, error codes in
|
||||
* case of failure
|
||||
*/
|
||||
QDF_STATUS target_if_wifi_pos_convert_pdev_id_host_to_target(
|
||||
struct wlan_objmgr_psoc *psoc, uint32_t host_pdev_id,
|
||||
uint32_t *target_pdev_id);
|
||||
|
||||
/**
|
||||
* target_if_wifi_pos_convert_pdev_id_target_to_host: function to get host
|
||||
* pdev_id from target pdev_id
|
||||
* @psoc: pointer to psoc object
|
||||
* @target_pdev_id: target pdev id
|
||||
* @host_pdev_id: host pdev id
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS in case of success, error codes in
|
||||
* case of failure
|
||||
*/
|
||||
QDF_STATUS target_if_wifi_pos_convert_pdev_id_target_to_host(
|
||||
struct wlan_objmgr_psoc *psoc, uint32_t target_pdev_id,
|
||||
uint32_t *host_pdev_id);
|
||||
|
||||
#else
|
||||
|
||||
static inline QDF_STATUS target_if_wifi_pos_convert_pdev_id_host_to_target(
|
||||
struct wlan_objmgr_psoc *psoc, uint32_t host_pdev_id,
|
||||
uint32_t *target_pdev_id)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS target_if_wifi_pos_convert_pdev_id_target_to_host(
|
||||
struct wlan_objmgr_psoc *psoc, uint32_t target_pdev_id,
|
||||
uint32_t *host_pdev_id)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif /* CNSS_GENL */
|
||||
|
||||
#endif /* _WIFI_POS_TGT_IF_H_ */
|
||||
|
مرجع در شماره جدید
Block a user