xref: /wlan-driver/qcacld-3.0/components/target_if/ftm_time_sync/inc/target_if_ftm_time_sync.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 /**
18  * DOC: Declare various api/struct which shall be used
19  * by FTM time sync component for wmi cmd (tx path) and
20  * event (rx) handling.
21  */
22 
23 #ifndef _TARGET_IF_FTM_TIME_SYNC_H_
24 #define _TARGET_IF_FTM_TIME_SYNC_H_
25 
26 #include <wlan_objmgr_psoc_obj.h>
27 #include <wmi_unified_param.h>
28 #include "wlan_ftm_time_sync_public_struct.h"
29 
30 /**
31  * target_if_ftm_time_sync_register_rx_ops() - Register FTM TIME SYNC component
32  *					       RX ops
33  * @rx_ops: FTM time sync component reception ops
34  *
35  * Return: None
36  */
37 void target_if_ftm_time_sync_register_rx_ops(struct wlan_ftm_time_sync_rx_ops
38 					     *rx_ops);
39 
40 /**
41  * target_if_ftm_time_sync_register_tx_ops() - Register FTM TIME SYNC component
42  *					       TX OPS
43  * @tx_ops: FTM time sync component transmit ops
44  *
45  * Return: None
46  */
47 void target_if_ftm_time_sync_register_tx_ops(struct wlan_ftm_time_sync_tx_ops
48 					     *tx_ops);
49 
50 /**
51  * target_if_ftm_time_sync_unregister_ev_handlers() - Unregister wmi events
52  *						      handlers
53  * @psoc: psoc context
54  *
55  * Return: QDF_STATUS
56  */
57 QDF_STATUS
58 target_if_ftm_time_sync_unregister_ev_handlers(struct wlan_objmgr_psoc *psoc);
59 #endif /*_TARGET_IF_FTM_TIME_SYNC_H_ */
60