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>
31 lines
937 B
C
31 lines
937 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef CPU_CPU_H
|
|
#define CPU_CPU_H
|
|
|
|
#include <arch/cpu.h>
|
|
#include <stdint.h>
|
|
|
|
void cpu_initialize(unsigned int cpu_index);
|
|
/* Returns default APIC id based on logical_cpu number or < 0 on failure. */
|
|
int cpu_get_apic_id(int logical_cpu);
|
|
uintptr_t cpu_get_lapic_addr(void);
|
|
/* Function to keep track of cpu default apic_id */
|
|
void cpu_add_map_entry(unsigned int index);
|
|
struct bus;
|
|
void initialize_cpus(struct bus *cpu_bus);
|
|
asmlinkage void secondary_cpu_init(unsigned int cpu_index);
|
|
int cpu_phys_address_size(void);
|
|
|
|
#if ENV_RAMSTAGE
|
|
#define __cpu_driver __attribute__((used, __section__(".rodata.cpu_driver")))
|
|
#else
|
|
#define __cpu_driver __attribute__((unused))
|
|
#endif
|
|
|
|
/** start of compile time generated pci driver array */
|
|
extern struct cpu_driver _cpu_drivers[];
|
|
/** end of compile time generated pci driver array */
|
|
extern struct cpu_driver _ecpu_drivers[];
|
|
|
|
#endif /* CPU_CPU_H */
|