include/device/pci_def.h: Add PCIe SRIOV definitions
[coreboot2.git] / src / include / cpu / cpu.h
blob5f32720f3106d3374f5c3abf4f098ac2e64a32ec
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef CPU_CPU_H
4 #define CPU_CPU_H
6 #include <arch/cpu.h> /* IWYU pragma: export */
7 #include <stdint.h>
9 void cpu_initialize(void);
10 uintptr_t cpu_get_lapic_addr(void);
11 struct bus;
12 unsigned int cpu_phys_address_size(void);
13 unsigned int soc_phys_address_size(void);
15 #if ENV_RAMSTAGE
16 #define __cpu_driver __attribute__((used, __section__(".rodata.cpu_driver")))
17 #else
18 #define __cpu_driver __attribute__((unused))
19 #endif
21 /** start of compile time generated pci driver array */
22 extern struct cpu_driver _cpu_drivers[];
23 /** end of compile time generated pci driver array */
24 extern struct cpu_driver _ecpu_drivers[];
26 #endif /* CPU_CPU_H */