1 #ifndef __QCOM_SMEM_STATE__
2 #define __QCOM_SMEM_STATE__
4 struct qcom_smem_state
;
6 struct qcom_smem_state_ops
{
7 int (*update_bits
)(void *, u32
, u32
);
10 struct qcom_smem_state
*qcom_smem_state_get(struct device
*dev
, const char *con_id
, unsigned *bit
);
11 void qcom_smem_state_put(struct qcom_smem_state
*);
13 int qcom_smem_state_update_bits(struct qcom_smem_state
*state
, u32 mask
, u32 value
);
15 struct qcom_smem_state
*qcom_smem_state_register(struct device_node
*of_node
, const struct qcom_smem_state_ops
*ops
, void *data
);
16 void qcom_smem_state_unregister(struct qcom_smem_state
*state
);