2 * This file is part of the coreboot project.
4 * Copyright (C) 2014 Google Inc.
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.
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.
16 #ifndef _COMMON_MRC_CACHE_H_
17 #define _COMMON_MRC_CACHE_H_
22 /* Wrapper object to save MRC information. */
23 struct mrc_saved_data
{
29 } __attribute__((packed
));
31 /* Locate the most recently saved MRC data. */
32 int mrc_cache_get_current(const struct mrc_saved_data
**cache
);
34 /* Stash the resulting MRC data to be saved in non-volatile storage later. */
35 int mrc_cache_stash_data(void *data
, size_t size
);
37 #endif /* _COMMON_MRC_CACHE_H_ */