From ef03afa405b049a172146aab93cfb81fb21f3945 Mon Sep 17 00:00:00 2001 From: "arch import user (historical)" Date: Wed, 6 Jul 2005 17:15:30 +0000 Subject: Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-34 Creator: Yinghai Lu AMD D0/E0 Opteron new mem mapping support, AMD E Opteron mem hole support,AMD K8 Four Ranks DIMM support git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1950 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/include/cpu/amd/dualcore.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/include/cpu/amd/dualcore.h (limited to 'src/include') diff --git a/src/include/cpu/amd/dualcore.h b/src/include/cpu/amd/dualcore.h new file mode 100644 index 0000000000..a8c49475ec --- /dev/null +++ b/src/include/cpu/amd/dualcore.h @@ -0,0 +1,19 @@ +#ifndef CPU_AMD_DUALCORE_H +#define CPU_AMD_DUALCORE_H + +struct device; +void amd_sibling_init(struct device *cpu); + +int is_e0_later_in_bsp(int nodeid); +unsigned int read_nb_cfg_54(void); + +struct node_core_id { + unsigned nodeid; + unsigned coreid; +}; + +// it can be used to get unitid and coreid it running only +struct node_core_id get_node_core_id(unsigned int nb_cfg_54); +unsigned get_apicid_base(unsigned ioapic_num); + +#endif /* CPU_AMD_DUALCORE_H */ -- cgit v1.2.3