Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 1 | #ifndef CPU_CPU_H |
| 2 | #define CPU_CPU_H |
| 3 | |
Stefan Reinauer | 3e9b52d | 2004-11-12 21:00:29 +0000 | [diff] [blame] | 4 | #include <arch/cpu.h> |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 5 | |
Stefan Reinauer | ac8209a | 2012-04-27 00:39:17 +0200 | [diff] [blame] | 6 | #if !defined(__ROMCC__) |
Sven Schnelle | 51676b1 | 2012-07-29 19:18:03 +0200 | [diff] [blame] | 7 | void cpu_initialize(void); |
Stefan Reinauer | ac8209a | 2012-04-27 00:39:17 +0200 | [diff] [blame] | 8 | struct bus; |
Eric Biederman | 7003ba4 | 2004-10-16 06:20:29 +0000 | [diff] [blame] | 9 | void initialize_cpus(struct bus *cpu_bus); |
Han Shen | a571c70 | 2012-10-16 10:42:25 -0700 | [diff] [blame] | 10 | void __attribute__((regparm(0))) secondary_cpu_init(void); |
Myles Watson | 7943fe6 | 2009-10-30 02:08:07 +0000 | [diff] [blame] | 11 | |
Myles Watson | 7943fe6 | 2009-10-30 02:08:07 +0000 | [diff] [blame] | 12 | #if CONFIG_HAVE_SMI_HANDLER |
| 13 | void smm_init(void); |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 14 | void smm_lock(void); |
| 15 | void smm_setup_structures(void *gnvs, void *tcg, void *smi1); |
Myles Watson | 7943fe6 | 2009-10-30 02:08:07 +0000 | [diff] [blame] | 16 | #endif |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 17 | |
Eric Biederman | 65186ce | 2004-10-14 20:15:40 +0000 | [diff] [blame] | 18 | #define __cpu_driver __attribute__ ((used,__section__(".rodata.cpu_driver"))) |
Eric Biederman | c84c190 | 2004-10-14 20:13:01 +0000 | [diff] [blame] | 19 | /** start of compile time generated pci driver array */ |
Eric Biederman | 65186ce | 2004-10-14 20:15:40 +0000 | [diff] [blame] | 20 | extern struct cpu_driver cpu_drivers[]; |
Eric Biederman | c84c190 | 2004-10-14 20:13:01 +0000 | [diff] [blame] | 21 | /** end of compile time generated pci driver array */ |
Eric Biederman | 65186ce | 2004-10-14 20:15:40 +0000 | [diff] [blame] | 22 | extern struct cpu_driver ecpu_drivers[]; |
Stefan Reinauer | ac8209a | 2012-04-27 00:39:17 +0200 | [diff] [blame] | 23 | #endif /* !__ROMCC__ */ |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 24 | |
| 25 | #endif /* CPU_CPU_H */ |