bcmdhd_1_77: Import A320F (A320FLXXU2CRE3) Oreo driver
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / drivers / net / wireless / bcmdhd_1_77 / include / hndpmu.h
1 /*
2 * HND SiliconBackplane PMU support.
3 *
4 * Copyright (C) 1999-2018, Broadcom Corporation
5 *
6 * Unless you and Broadcom execute a separate written software license
7 * agreement governing use of this software, this software is licensed to you
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
10 * following added to such license:
11 *
12 * As a special exception, the copyright holders of this software give you
13 * permission to link this software with independent modules, and to copy and
14 * distribute the resulting executable under terms of your choice, provided that
15 * you also meet, for each linked independent module, the terms and conditions of
16 * the license of that module. An independent module is a module which is not
17 * derived from this software. The special exception does not apply to any
18 * modifications of the software.
19 *
20 * Notwithstanding the above, under no circumstances may you combine this
21 * software in any way with any other Broadcom software provided under a license
22 * other than the GPL, without Broadcom's express prior written consent.
23 *
24 *
25 * <<Broadcom-WL-IPTag/Open:>>
26 *
27 * $Id: hndpmu.h 657872 2016-09-02 22:17:34Z $
28 */
29
30 #ifndef _hndpmu_h_
31 #define _hndpmu_h_
32
33 #include <typedefs.h>
34 #include <osl_decl.h>
35 #include <siutils.h>
36 #include <sbchipc.h>
37
38
39 extern void si_pmu_otp_power(si_t *sih, osl_t *osh, bool on, uint32* min_res_mask);
40 extern void si_sdiod_drive_strength_init(si_t *sih, osl_t *osh, uint32 drivestrength);
41
42 extern void si_pmu_minresmask_htavail_set(si_t *sih, osl_t *osh, bool set_clear);
43 extern void si_pmu_slow_clk_reinit(si_t *sih, osl_t *osh);
44 extern void si_pmu_avbtimer_enable(si_t *sih, osl_t *osh, bool set_flag);
45 extern uint32 si_pmu_dump_pmucap_binary(si_t *sih, uchar *p);
46 extern uint32 si_pmu_dump_buf_size_pmucap(si_t *sih);
47 extern int si_pmu_wait_for_steady_state(si_t *sih, osl_t *osh, pmuregs_t *pmu);
48 #if defined(BCMULP)
49 int si_pmu_ulp_register(si_t *sih);
50 extern void si_pmu_ulp_ilp_config(si_t *sih, osl_t *osh, uint32 ilp_period);
51 #endif /* BCMULP */
52 extern uint32 si_pmu_get_pmutimer(si_t *sih);
53 extern void si_pmu_set_min_res_mask(si_t *sih, osl_t *osh, uint min_res_mask);
54 extern bool si_pmu_cap_fast_lpo(si_t *sih);
55 extern int si_pmu_fast_lpo_disable(si_t *sih);
56 #endif /* _hndpmu_h_ */