drop unneeded __ROMCC__ checks when the check for __PRE_RAM__ is more
[coreboot.git] / src / include / cpu / amd / dualcore.h
1 #ifndef CPU_AMD_DUALCORE_H
2 #define CPU_AMD_DUALCORE_H
3
4 #if defined(__GNUC__) 
5 unsigned int read_nb_cfg_54(void);
6 #endif
7
8 struct node_core_id {
9         unsigned nodeid;
10         unsigned coreid;
11 };
12
13 #if defined(__GNUC__)
14 // it can be used to get unitid and coreid it running only
15 struct node_core_id get_node_core_id(unsigned int nb_cfg_54);
16 #endif
17
18 #if !defined(__PRE_RAM__)
19 struct device;
20 unsigned get_apicid_base(unsigned ioapic_num);
21 void amd_sibling_init(struct device *cpu);
22 #endif
23
24 #endif /* CPU_AMD_DUALCORE_H */