tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / soc / intel / common / mrc_cache.h
blob9af3ef10c57f8f75f45ad6ab56c139dd22ad4576
1 /*
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_
19 #include <stddef.h>
20 #include <stdint.h>
22 /* Wrapper object to save MRC information. */
23 struct mrc_saved_data {
24 uint32_t signature;
25 uint32_t size;
26 uint32_t checksum;
27 uint32_t reserved;
28 uint8_t data[0];
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_ */