mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 08:16:42 +07:00
9460ae2ff3
This implements a common API for handling and exposing SMP2P and SMSM state information. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Andy Gross <agross@codeaurora.org>
19 lines
595 B
C
19 lines
595 B
C
#ifndef __QCOM_SMEM_STATE__
|
|
#define __QCOM_SMEM_STATE__
|
|
|
|
struct qcom_smem_state;
|
|
|
|
struct qcom_smem_state_ops {
|
|
int (*update_bits)(void *, u32, u32);
|
|
};
|
|
|
|
struct qcom_smem_state *qcom_smem_state_get(struct device *dev, const char *con_id, unsigned *bit);
|
|
void qcom_smem_state_put(struct qcom_smem_state *);
|
|
|
|
int qcom_smem_state_update_bits(struct qcom_smem_state *state, u32 mask, u32 value);
|
|
|
|
struct qcom_smem_state *qcom_smem_state_register(struct device_node *of_node, const struct qcom_smem_state_ops *ops, void *data);
|
|
void qcom_smem_state_unregister(struct qcom_smem_state *state);
|
|
|
|
#endif
|