1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (c) 2023, Linaro Limited 4 */ 5 6 #ifndef __QCOM_ICE_H__ 7 #define __QCOM_ICE_H__ 8 9 #include <linux/blk-crypto.h> 10 #include <linux/types.h> 11 12 struct qcom_ice; 13 14 int qcom_ice_enable(struct qcom_ice *ice); 15 int qcom_ice_resume(struct qcom_ice *ice); 16 int qcom_ice_suspend(struct qcom_ice *ice); 17 int qcom_ice_program_key(struct qcom_ice *ice, unsigned int slot, 18 const struct blk_crypto_key *blk_key); 19 int qcom_ice_evict_key(struct qcom_ice *ice, int slot); 20 struct qcom_ice *devm_of_qcom_ice_get(struct device *dev); 21 22 #endif /* __QCOM_ICE_H__ */ 23