1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef _COMMONLIB_FSP_H_ 4 #define _COMMONLIB_FSP_H_ 5 6 #include <stddef.h> 7 #include <stdint.h> 8 #include <sys/types.h> 9 10 /* 11 * Relocate FSP held within buffer defined by size to new_addr. Returns < 0 12 * on error, offset to FSP_INFO_HEADER on success. 13 */ 14 ssize_t fsp_component_relocate(uintptr_t new_addr, void *fsp, size_t size); 15 16 /* API to relocate fsp 1.1 component. */ 17 ssize_t fsp1_1_relocate(uintptr_t new_addr, void *fsp, size_t size); 18 19 #endif 20