1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2014-2019 Intel Corporation
10 #include "intel_uc_fw.h"
11 #include "intel_huc_fw.h"
14 /* Generic uC firmware management */
15 struct intel_uc_fw fw
;
17 /* HuC-specific additions */
18 struct i915_vma
*rsa_data
;
27 void intel_huc_init_early(struct intel_huc
*huc
);
28 int intel_huc_init(struct intel_huc
*huc
);
29 void intel_huc_fini(struct intel_huc
*huc
);
30 int intel_huc_auth(struct intel_huc
*huc
);
31 int intel_huc_check_status(struct intel_huc
*huc
);
33 static inline int intel_huc_sanitize(struct intel_huc
*huc
)
35 intel_uc_fw_sanitize(&huc
->fw
);
39 static inline bool intel_huc_is_supported(struct intel_huc
*huc
)
41 return intel_uc_fw_is_supported(&huc
->fw
);
44 static inline bool intel_huc_is_enabled(struct intel_huc
*huc
)
46 return intel_uc_fw_is_enabled(&huc
->fw
);
49 static inline bool intel_huc_is_authenticated(struct intel_huc
*huc
)
51 return intel_uc_fw_is_running(&huc
->fw
);