Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/platform.c
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_param.h> | #include <vm/vm_param.h> | ||||
#include <vm/vm_page.h> | #include <vm/vm_page.h> | ||||
#include <vm/vm_phys.h> | #include <vm/vm_phys.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/md_var.h> | #include <machine/md_var.h> | ||||
#include <machine/ofw_machdep.h> | |||||
#include <machine/platform.h> | #include <machine/platform.h> | ||||
#include <machine/platformvar.h> | #include <machine/platformvar.h> | ||||
#include <machine/smp.h> | #include <machine/smp.h> | ||||
#include <machine/vmparam.h> | #include <machine/vmparam.h> | ||||
#include "platform_if.h" | #include "platform_if.h" | ||||
static platform_def_t *plat_def_impl; | static platform_def_t *plat_def_impl; | ||||
▲ Show 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | |||||
#ifdef SMP | #ifdef SMP | ||||
struct cpu_group * | struct cpu_group * | ||||
cpu_topo(void) | cpu_topo(void) | ||||
{ | { | ||||
return (PLATFORM_SMP_TOPO(plat_obj)); | return (PLATFORM_SMP_TOPO(plat_obj)); | ||||
} | } | ||||
#endif | #endif | ||||
int | |||||
platform_node_numa_domain(phandle_t node) | |||||
{ | |||||
return (PLATFORM_NODE_NUMA_DOMAIN(plat_obj, node)); | |||||
} | |||||
/* | /* | ||||
* Reset back to firmware. | * Reset back to firmware. | ||||
*/ | */ | ||||
void | void | ||||
cpu_reset() | cpu_reset() | ||||
{ | { | ||||
PLATFORM_RESET(plat_obj); | PLATFORM_RESET(plat_obj); | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |