1 /* Copyright 2023 The ChromiumOS Authors 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 * 5 * Utility functions for Intel Flash Descriptor (ifd) and the 'Converged 6 * Security and Manageability Engine' (CSME). 7 */ 8 #ifndef VBOOT_REFERENCE_FUTILITY_PLATFORM_CSME_H_ 9 #define VBOOT_REFERENCE_FUTILITY_PLATFORM_CSME_H_ 10 11 #include <stdint.h> 12 #include "updater_utils.h" 13 14 bool is_flash_descriptor_locked(const struct firmware_image *image); 15 16 /* Unlock the flash descriptor for Skylake and Kabylake platforms. */ 17 int unlock_csme_eve(struct firmware_image *image); 18 19 /* Unlock the CSME for recent Intel platforms (CML onwards). */ 20 int unlock_csme(struct updater_config *cfg); 21 22 #endif /* VBOOT_REFERENCE_FUTILITY_PLATFORM_CSME_H_ */ 23