coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
fsp.h
Go to the documentation of this file.
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
ssize_t fsp1_1_relocate(uintptr_t new_addr, void *fsp, size_t size)
Definition: fsp_relocate.c:539
ssize_t fsp_component_relocate(uintptr_t new_addr, void *fsp, size_t size)
Definition: fsp_relocate.c:507
__SIZE_TYPE__ ssize_t
Definition: stddef.h:13
unsigned long uintptr_t
Definition: stdint.h:21