239b5df268
This adds SPDX-License-Identifiers to all of the files in src/include that are missing them or have unrecognized identifiers. Files that were written specifically for coreboot and don't have license information are licensed GPL-2.0-only, which is the license for the overall coreboot project. Files that were sourced from Linux are similarly GPL-2.0-only. The cpu/power files were committed with source that was licensed as GPL-2.0-or-later, so presumably that's the license for that entire commit. The final file, vbe.h gives a pointer to the BSD-2-Clause license at opensource.org. Change-Id: I3f8fd7848ce11c1a0060e05903fb17a7583b4725 Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66284 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Felix Singer <felixsinger@posteo.net>
41 lines
882 B
C
41 lines
882 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef _IMD_PRIVATE_H_
|
|
#define _IMD_PRIVATE_H_
|
|
|
|
#include <cbmem.h>
|
|
#include <commonlib/bsd/helpers.h>
|
|
|
|
/* In-memory data structures. */
|
|
struct imd_root_pointer {
|
|
uint32_t magic;
|
|
/* Relative to upper limit/offset. */
|
|
int32_t root_offset;
|
|
} __packed;
|
|
|
|
struct imd_entry {
|
|
uint32_t magic;
|
|
/* start is located relative to imd_root */
|
|
int32_t start_offset;
|
|
uint32_t size;
|
|
uint32_t id;
|
|
} __packed;
|
|
|
|
struct imd_root {
|
|
uint32_t max_entries;
|
|
uint32_t num_entries;
|
|
uint32_t flags;
|
|
uint32_t entry_align;
|
|
/* Used for fixing the size of an imd. Relative to the root. */
|
|
int32_t max_offset;
|
|
struct imd_entry entries[0];
|
|
} __packed;
|
|
|
|
#define IMD_ROOT_PTR_MAGIC 0xc0389481
|
|
#define IMD_ENTRY_MAGIC (~0xc0389481)
|
|
#define SMALL_REGION_ID CBMEM_ID_IMD_SMALL
|
|
#define LIMIT_ALIGN 4096
|
|
|
|
#define IMD_FLAG_LOCKED 1
|
|
|
|
#endif /* _IMD_PRIVATE_H */
|