Aaron Durbin | 04ebf59 | 2015-09-30 17:49:04 -0500 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2015 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Aaron Durbin | 04ebf59 | 2015-09-30 17:49:04 -0500 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef _COMMONLIB_FSP1_1_H_ |
| 17 | #define _COMMONLIB_FSP1_1_H_ |
| 18 | |
| 19 | #include <stddef.h> |
| 20 | #include <stdint.h> |
| 21 | |
| 22 | /* |
Aaron Durbin | 04ebf59 | 2015-09-30 17:49:04 -0500 | [diff] [blame] | 23 | * Relocate FSP held within buffer defined by size to new_addr. Returns < 0 |
| 24 | * on error, offset to FSP_INFO_HEADER on success. |
| 25 | */ |
| 26 | ssize_t fsp1_1_relocate(uintptr_t new_addr, void *fsp, size_t size); |
| 27 | |
| 28 | #endif |