Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/platform_if.m
Show All 26 Lines | |||||
# | # | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/smp.h> | #include <sys/smp.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> | ||||
/** | /** | ||||
* @defgroup PLATFORM platform - KObj methods for PowerPC platform | * @defgroup PLATFORM platform - KObj methods for PowerPC platform | ||||
* implementations | * implementations | ||||
Show All 40 Lines | #endif | ||||
static void platform_null_smp_ap_init(platform_t plat) | static void platform_null_smp_ap_init(platform_t plat) | ||||
{ | { | ||||
return; | return; | ||||
} | } | ||||
static void platform_null_smp_probe_threads(void) | static void platform_null_smp_probe_threads(void) | ||||
{ | { | ||||
return; | return; | ||||
} | } | ||||
static int platform_null_node_numa_domain(platform_t plat, | |||||
phandle_t node) | |||||
{ | |||||
return (0); | |||||
} | |||||
}; | }; | ||||
/** | /** | ||||
* @brief Probe for whether we are on this platform, returning the standard | * @brief Probe for whether we are on this platform, returning the standard | ||||
* newbus probe codes. If we have Open Firmware or a flattened device tree, | * newbus probe codes. If we have Open Firmware or a flattened device tree, | ||||
* it is guaranteed to be available at this point. | * it is guaranteed to be available at this point. | ||||
*/ | */ | ||||
METHOD int probe { | METHOD int probe { | ||||
▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | |||||
* Passed the timebase value on the BSP as of shortly before the call. | * Passed the timebase value on the BSP as of shortly before the call. | ||||
*/ | */ | ||||
METHOD void smp_timebase_sync { | METHOD void smp_timebase_sync { | ||||
platform_t _plat; | platform_t _plat; | ||||
u_long _tb; | u_long _tb; | ||||
int _ap; | int _ap; | ||||
}; | }; | ||||
/** | |||||
* @brief Return the NUMA domain for the given device tree node. Always returns | |||||
* a valid domain. | |||||
* | |||||
*/ | |||||
METHOD int node_numa_domain { | |||||
platform_t _plat; | |||||
phandle_t _node; | |||||
} DEFAULT platform_null_node_numa_domain; |