1*5113495bSYour Name /**
2*5113495bSYour Name * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
3*5113495bSYour Name *
4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name *
8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name */
16*5113495bSYour Name
17*5113495bSYour Name #include "pktlog_ac_i.h"
18*5113495bSYour Name #include "wlan_logging_sock_svc.h"
19*5113495bSYour Name
20*5113495bSYour Name #ifndef REMOVE_PKT_LOG
21*5113495bSYour Name /**
22*5113495bSYour Name * process_offload_pktlog_wifi3() - Process full pktlog events
23*5113495bSYour Name * pdev: abstract pdev handle
24*5113495bSYour Name * data: pktlog buffer
25*5113495bSYour Name *
26*5113495bSYour Name * Return: zero on success, non-zero on failure
27*5113495bSYour Name */
28*5113495bSYour Name A_STATUS
29*5113495bSYour Name process_offload_pktlog_wifi3(struct cdp_pdev *pdev, void *data);
30*5113495bSYour Name
31*5113495bSYour Name /**
32*5113495bSYour Name * process_rx_desc_remote_wifi3() - Process pktlog buffers received
33*5113495bSYour Name * from monitor status ring
34*5113495bSYour Name * @pdev: pdev handle
35*5113495bSYour Name * @data: pktlog buffer pointer
36*5113495bSYour Name *
37*5113495bSYour Name * Return: 0 - success/non-zero - failure
38*5113495bSYour Name */
39*5113495bSYour Name int process_rx_desc_remote_wifi3(void *pdev, void *data);
40*5113495bSYour Name
41*5113495bSYour Name /**
42*5113495bSYour Name * process_pktlog_lite_wifi3() - Process pktlog buffers received
43*5113495bSYour Name * from monitor status ring
44*5113495bSYour Name * @pdev: pdev handle
45*5113495bSYour Name * @data: pktlog buffer pointer
46*5113495bSYour Name *
47*5113495bSYour Name * Return: 0 - success/non-zero - failure
48*5113495bSYour Name */
49*5113495bSYour Name int process_pktlog_lite_wifi3(void *context, void *log_data,
50*5113495bSYour Name uint16_t log_type);
51*5113495bSYour Name #else
52*5113495bSYour Name static inline A_STATUS
process_offload_pktlog_wifi3(struct cdp_pdev * pdev,void * data)53*5113495bSYour Name process_offload_pktlog_wifi3(struct cdp_pdev *pdev, void *data)
54*5113495bSYour Name {
55*5113495bSYour Name return 0;
56*5113495bSYour Name }
57*5113495bSYour Name
58*5113495bSYour Name static inline
process_rx_desc_remote_wifi3(void * pdev,void * data)59*5113495bSYour Name int process_rx_desc_remote_wifi3(void *pdev, void *data)
60*5113495bSYour Name {
61*5113495bSYour Name return 0;
62*5113495bSYour Name }
63*5113495bSYour Name
64*5113495bSYour Name static inline int
process_pktlog_lite_wifi3(void * context,void * log_data,uint16_t log_type)65*5113495bSYour Name process_pktlog_lite_wifi3(void *context, void *log_data,
66*5113495bSYour Name uint16_t log_type)
67*5113495bSYour Name {
68*5113495bSYour Name return 0;
69*5113495bSYour Name }
70*5113495bSYour Name #endif /* REMOVE_PKT_LOG */
71*5113495bSYour Name
72*5113495bSYour Name /**
73*5113495bSYour Name * process_tx_info() - process tx pktlog buffers
74*5113495bSYour Name * @txrx_pdev: ol pdev handle
75*5113495bSYour Name * @data: pktlog buffer
76*5113495bSYour Name *
77*5113495bSYour Name * Return: 0 - success/non-zero - failure
78*5113495bSYour Name */
79*5113495bSYour Name static inline
process_tx_info(struct cdp_pdev * txrx_pdev,void * data)80*5113495bSYour Name A_STATUS process_tx_info(struct cdp_pdev *txrx_pdev, void *data)
81*5113495bSYour Name {
82*5113495bSYour Name return 0;
83*5113495bSYour Name }
84*5113495bSYour Name
85*5113495bSYour Name /**
86*5113495bSYour Name * process_rx_info_remote() - process rx pktlog buffers
87*5113495bSYour Name * @txrx_pdev: ol pdev handle
88*5113495bSYour Name * @data: pktlog buffer
89*5113495bSYour Name *
90*5113495bSYour Name * Return: 0 - success/non-zero - failure
91*5113495bSYour Name */
92*5113495bSYour Name static inline
process_rx_info_remote(void * pdev,void * data)93*5113495bSYour Name A_STATUS process_rx_info_remote(void *pdev, void *data)
94*5113495bSYour Name {
95*5113495bSYour Name return 0;
96*5113495bSYour Name }
97*5113495bSYour Name
98*5113495bSYour Name /**
99*5113495bSYour Name * process_rx_remote() - process rx pktlog buffers
100*5113495bSYour Name * @txrx_pdev: ol pdev handle
101*5113495bSYour Name * @data: pktlog buffer
102*5113495bSYour Name *
103*5113495bSYour Name * Return: 0 - success/non-zero - failure
104*5113495bSYour Name */
105*5113495bSYour Name static inline
process_rx_info(void * pdev,void * data)106*5113495bSYour Name A_STATUS process_rx_info(void *pdev, void *data)
107*5113495bSYour Name {
108*5113495bSYour Name return 0;
109*5113495bSYour Name }
110*5113495bSYour Name
111*5113495bSYour Name /**
112*5113495bSYour Name * process_rate_find() - process rate event pktlog buffers
113*5113495bSYour Name * @txrx_pdev: ol pdev handle
114*5113495bSYour Name * @data: pktlog buffer
115*5113495bSYour Name *
116*5113495bSYour Name * Return: 0 - success/non-zero - failure
117*5113495bSYour Name */
118*5113495bSYour Name static inline
process_rate_find(void * pdev,void * data)119*5113495bSYour Name A_STATUS process_rate_find(void *pdev, void *data)
120*5113495bSYour Name {
121*5113495bSYour Name return 0;
122*5113495bSYour Name }
123*5113495bSYour Name
124*5113495bSYour Name /**
125*5113495bSYour Name * process_rate_update() - process rate event pktlog buffers
126*5113495bSYour Name * @txrx_pdev: ol pdev handle
127*5113495bSYour Name * @data: pktlog buffer
128*5113495bSYour Name *
129*5113495bSYour Name * Return: 0 - success/non-zero - failure
130*5113495bSYour Name */
131*5113495bSYour Name static inline
process_rate_update(void * pdev,void * data)132*5113495bSYour Name A_STATUS process_rate_update(void *pdev, void *data)
133*5113495bSYour Name {
134*5113495bSYour Name return 0;
135*5113495bSYour Name }
136*5113495bSYour Name
137*5113495bSYour Name /**
138*5113495bSYour Name * process_sw_event() - process sw event pktlog buffers
139*5113495bSYour Name * @txrx_pdev: ol pdev handle
140*5113495bSYour Name * @data: pktlog buffer
141*5113495bSYour Name *
142*5113495bSYour Name * Return: 0 - success/non-zero - failure
143*5113495bSYour Name */
144*5113495bSYour Name static inline
process_sw_event(void * pdev,void * data)145*5113495bSYour Name A_STATUS process_sw_event(void *pdev, void *data)
146*5113495bSYour Name {
147*5113495bSYour Name return 0;
148*5113495bSYour Name }
149