blob: 5b24ae8dd6627c574c42821c835fbdc97130b079 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala92f07d82013-01-08 21:16:34 -08002 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
42#ifndef __WLAN_HDD_POWER_H
43#define __WLAN_HDD_POWER_H
44
45/**===========================================================================
46
47 \file wlan_hdd_power.h
48
49 \brief Linux HDD Power
50 Copyright 2008 (c) Qualcomm, Incorporated.
51 All Rights Reserved.
52 Qualcomm Confidential and Proprietary.
53
54 ==========================================================================*/
55
56
57/*--------------------------------------------------------------------------
58 * Include Files
59 *------------------------------------------------------------------------*/
60#include "wlan_hdd_main.h"
61
62/*---------------------------------------------------------------------------
63 * Preprocessor definitions and constants
64 *-------------------------------------------------------------------------*/
65 //gEnableSuspend = 1 in INI file implies suspend to standby
66 #define WLAN_MAP_SUSPEND_TO_STANDBY 1
67
68 //gEnableSuspend = 2 in INI file implies suspend to deep sleep
69 #define WLAN_MAP_SUSPEND_TO_DEEP_SLEEP 2
70
71 //gEnableSuspend = 3 in INI file implies suspend to set MCAST/BCAST filter
72 #define WLAN_MAP_SUSPEND_TO_MCAST_BCAST_FILTER 3
73
74 //gEnableDriverStop = 1 implies map driver stop to standby
75 #define WLAN_MAP_DRIVER_STOP_TO_STANDBY 1
76
77 //gEnableDriverStop = 2 implies map sriver stop to deep sleep
78 #define WLAN_MAP_DRIVER_STOP_TO_DEEP_SLEEP 2
79
80 //Maximum time (ms) to wait for standby to complete
81 #define WLAN_WAIT_TIME_STANDBY 3000
82
83 //Maximum time (ms) to wait for full pwr to complete
84 #define WLAN_WAIT_TIME_FULL_PWR 3000
85
86
87/*---------------------------------------------------------------------------
88 * Type declarations
89 *-------------------------------------------------------------------------*/
90
91/*-------------------------------------------------------------------------
92 * Function declarations and documentation
93 * ------------------------------------------------------------------------*/
94 eHalStatus hdd_exit_standby(hdd_context_t *pHddCtx);
95 VOS_STATUS hdd_exit_deep_sleep(hdd_context_t *pHddCtx,
96 hdd_adapter_t* pAdapter);
97 VOS_STATUS hdd_enter_standby(hdd_context_t *pHddCtx);
98 VOS_STATUS hdd_enter_deep_sleep(hdd_context_t *pHddCtx,
99 hdd_adapter_t* pAdapter);
100#ifdef CONFIG_HAS_EARLYSUSPEND
101 VOS_STATUS hdd_wlan_reset(void);
102 VOS_STATUS hdd_wlan_reset_initialization(void) ;
103#endif
104 /* SSR shutdown & re-init functions */
105 VOS_STATUS hdd_wlan_shutdown(void);
106 VOS_STATUS hdd_wlan_re_init(void);
107
108void hdd_conf_mcastbcast_filter(hdd_context_t* pHddCtx, v_BOOL_t setfilter);
Yathish9f22e662012-12-10 14:21:35 -0800109VOS_STATUS hdd_conf_hostarpoffload(hdd_adapter_t* pAdapter, v_BOOL_t fenable);
Jeff Johnson295189b2012-06-20 16:38:30 -0700110#endif // if !defined __WLAN_QCT_DRIVER_H