1 /* 2 * Copyright (c) 2020 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 /** 20 * DOC: Declare various api/struct which shall be used 21 * by packet capture component for wmi cmd (tx path) and 22 * event (rx) handling. 23 */ 24 25 #ifndef _TARGET_IF_PKT_CAPTURE_H_ 26 #define _TARGET_IF_PKT_CAPTURE_H_ 27 28 #include <wlan_pkt_capture_main.h> 29 #include <wlan_pkt_capture_ucfg_api.h> 30 #include <wlan_pkt_capture_mgmt_txrx.h> 31 #include <wlan_pkt_capture_public_structs.h> 32 #include <target_if.h> 33 #include <linux/ieee80211.h> 34 35 /** 36 * target_if_pkt_capture_register_rx_ops() - Register packet capture RX ops 37 * @rx_ops: packet capture component reception ops 38 * Return: None 39 */ 40 void 41 target_if_pkt_capture_register_rx_ops(struct wlan_pkt_capture_rx_ops *rx_ops); 42 43 /** 44 * target_if_pkt_capture_register_tx_ops() - Register packet capture TX ops 45 * @tx_ops: pkt capture component transmit ops 46 * 47 * Return: None 48 */ 49 void target_if_pkt_capture_register_tx_ops(struct wlan_pkt_capture_tx_ops 50 *tx_ops); 51 #endif /* _TARGET_IF_PKT_CAPTURE_H_ */ 52