blob: a5bc193ed2749aecfde9f745e2e016da949d7e30 [file] [log] [blame]
Aaron Durbin04ebf592015-09-30 17:49:04 -05001/*
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 Durbin04ebf592015-09-30 17:49:04 -050014 */
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 Durbin04ebf592015-09-30 17:49:04 -050023 * Relocate FSP held within buffer defined by size to new_addr. Returns < 0
24 * on error, offset to FSP_INFO_HEADER on success.
25 */
26ssize_t fsp1_1_relocate(uintptr_t new_addr, void *fsp, size_t size);
27
28#endif