qcacmn: Move pktlog API's to specific files
Move pktlog hardware dependent API's from pktlog_internal.c to pktlog_wifi3.c as they are hardware dependent. Change-Id: I421b3116a35e735a51c82839005bbc2d4cb138d7 CRs-Fixed: 2585613
Esse commit está contido em:

commit de
nshrivas

pai
4d77312b6d
commit
1140065e4c
70
utils/pktlog/include/pktlog_wifi3.h
Arquivo normal
70
utils/pktlog/include/pktlog_wifi3.h
Arquivo normal
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* Copyright (c) 2013-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 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.
|
||||
*/
|
||||
|
||||
#include "pktlog_ac_i.h"
|
||||
#include "wlan_logging_sock_svc.h"
|
||||
|
||||
#ifndef REMOVE_PKT_LOG
|
||||
/**
|
||||
* process_offload_pktlog_wifi3() - Process full pktlog events
|
||||
* pdev: abstract pdev handle
|
||||
* data: pktlog buffer
|
||||
*
|
||||
* Return: zero on success, non-zero on failure
|
||||
*/
|
||||
A_STATUS
|
||||
process_offload_pktlog_wifi3(struct cdp_pdev *pdev, void *data);
|
||||
|
||||
/**
|
||||
* process_rx_desc_remote_wifi3() - Process pktlog buffers received
|
||||
* from monitor status ring
|
||||
* @pdev: pdev handle
|
||||
* @data: pktlog buffer pointer
|
||||
*
|
||||
* Return: 0 - success/non-zero - failure
|
||||
*/
|
||||
int process_rx_desc_remote_wifi3(void *pdev, void *data);
|
||||
|
||||
/**
|
||||
* process_pktlog_lite_wifi3() - Process pktlog buffers received
|
||||
* from monitor status ring
|
||||
* @pdev: pdev handle
|
||||
* @data: pktlog buffer pointer
|
||||
*
|
||||
* Return: 0 - success/non-zero - failure
|
||||
*/
|
||||
int process_pktlog_lite_wifi3(void *context, void *log_data,
|
||||
uint16_t log_type);
|
||||
#else
|
||||
static inline A_STATUS
|
||||
process_offload_pktlog_wifi3(struct cdp_pdev *pdev, void *data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline
|
||||
int process_rx_desc_remote_wifi3(void *pdev, void *data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int
|
||||
process_pktlog_lite_wifi3(void *context, void *log_data,
|
||||
uint16_t log_type)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif /* REMOVE_PKT_LOG */
|
Referência em uma nova issue
Block a user