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