tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / drivers / intel / fsp1_1 / include / fsp / memmap.h
blob2ac3260908b639b8cefc52ccbde3f34a41e3bc1c
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2015 Intel Corporation.
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_MEMMAP_H_
17 #define _COMMON_MEMMAP_H_
19 #include <types.h>
22 * mmap_region_granluarity must to return a size which is a positive non-zero
23 * integer multiple of the SMM size when SMM is in use. When not using SMM,
24 * this value should be set to 8 MiB.
26 size_t mmap_region_granluarity(void);
28 /* Fills in the arguments for the entire SMM region covered by chipset
29 * protections. e.g. TSEG. */
30 void smm_region(void **start, size_t *size);
32 enum {
33 /* SMM handler area. */
34 SMM_SUBREGION_HANDLER,
35 /* SMM cache region. */
36 SMM_SUBREGION_CACHE,
37 /* Chipset specific area. */
38 SMM_SUBREGION_CHIPSET,
39 /* Total sub regions supported. */
40 SMM_SUBREGION_NUM,
43 /* Fills in the start and size for the requested SMM subregion. Returns
44 * 0 on susccess, < 0 on failure. */
45 int smm_subregion(int sub, void **start, size_t *size);
47 #endif /* _COMMON_MEMMAP_H_ */