xref: /wlan-driver/qcacld-3.0/core/wma/src/wma_sar_public_structs.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2018 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #ifndef __WMA_SAR_PUBLIC_STRUCTS_H
21 #define __WMA_SAR_PUBLIC_STRUCTS_H
22 
23 struct sar_limit_event;
24 
25 enum sar_version {
26 	SAR_VERSION_1,
27 	SAR_VERSION_2,
28 	SAR_VERSION_3,
29 	SAR_VERSION_4,
30 	SAR_VERSION_5,
31 	SAR_VERSION_6,
32 };
33 
34 /**
35  * typedef wma_sar_cb() - SAR callback function
36  * @context: Opaque context provided by caller in the original request
37  * @event: SAR limits event
38  */
39 typedef void (*wma_sar_cb)(void *context, struct sar_limit_event *event);
40 
41 #endif /* __WMA_SAR_PUBLIC_STRUCTS_H */
42