send uevent for slate dsp and bt state to userspace. add sysfs entries to hold the states of Slate BTSS and DSPSS. Change-Id: Iffccd90a4a1b821fc0592d272a61f15bb5c13b82 Signed-off-by: Ajit Kumar <kajit@codeaurora.org> Signed-off-by: Praveen Koya <pkoya@codeaurora.org>
42 lines
792 B
C
42 lines
792 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
|
*/
|
|
#ifndef SLATECOM_INTERFACE_H
|
|
#define SLATECOM_INTERFACE_H
|
|
|
|
/*
|
|
* slate_soft_reset() - soft reset Blackghost
|
|
* Return 0 on success or -Ve on error
|
|
*/
|
|
int slate_soft_reset(void);
|
|
|
|
/*
|
|
* is_twm_exit()
|
|
* Return true if device is booting up on TWM exit.
|
|
* value is auto cleared once read.
|
|
*/
|
|
bool is_twm_exit(void);
|
|
|
|
/*
|
|
* is_slate_running()
|
|
* Return true if slate is running.
|
|
* value is auto cleared once read.
|
|
*/
|
|
bool is_slate_running(void);
|
|
|
|
/*
|
|
* set_slate_dsp_state()
|
|
* Set slate dsp state
|
|
*/
|
|
void set_slate_dsp_state(bool status);
|
|
|
|
/*
|
|
* set_slate_bt_state()
|
|
* Set slate bt state
|
|
*/
|
|
void set_slate_bt_state(bool status);
|
|
|
|
#endif /* SLATECOM_INTERFACE_H */
|
|
|