blob: 80da03d0414ddec53633e73b8ff5c19728107b9d [file] [log] [blame]
Mukul Sharmad75a6672017-06-22 15:40:53 +05301/*
Jeff Johnsonb4c29962017-10-07 19:35:14 -07002 * Copyright (c) 2017 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 */
Mukul Sharmad75a6672017-06-22 15:40:53 +053018/**
19 * DOC: Declare low power heart beat offload feature API's
20 */
21
22#ifndef _WLAN_PMO_LPHB_H_
23#define _WLAN_PMO_LPHB_H_
24
25#include "wlan_pmo_lphb_public_struct.h"
26
27/**
28 * pmo_core_lphb_config_req() - API to configure lphb request
29 * @psoc: objmgr psoc handle
30 * @lphb_req: low power heart beat configuration request
31 * @lphb_cb_ctx: low power heart beat context
32 * @callback: osif callback which need to be called when host get lphb event
33 *
34 * API to configure lphb request
35 *
36 * Return: QDF_STATUS_SUCCESS in case of success else return error
37 */
38QDF_STATUS pmo_core_lphb_config_req(struct wlan_objmgr_psoc *psoc,
39 struct pmo_lphb_req *lphb_req, void *lphb_cb_ctx,
40 pmo_lphb_callback callback);
41
42/**
43 * pmo_core_apply_lphb(): apply cached LPHB settings
44 * @psoc: objmgr psoc handle
45 *
46 * LPHB cache, if any item was enabled, should be
47 * applied.
48 */
49void pmo_core_apply_lphb(struct wlan_objmgr_psoc *psoc);
50
51#endif /* end of _WLAN_PMO_LPHB_H_ */