Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/psci/psci.c
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
static devclass_t psci_devclass; | static devclass_t psci_devclass; | ||||
EARLY_DRIVER_MODULE(psci, simplebus, psci_driver, psci_devclass, 0, 0, | EARLY_DRIVER_MODULE(psci, simplebus, psci_driver, psci_devclass, 0, 0, | ||||
BUS_PASS_CPU + BUS_PASS_ORDER_FIRST); | BUS_PASS_CPU + BUS_PASS_ORDER_FIRST); | ||||
EARLY_DRIVER_MODULE(psci, ofwbus, psci_driver, psci_devclass, 0, 0, | EARLY_DRIVER_MODULE(psci, ofwbus, psci_driver, psci_devclass, 0, 0, | ||||
BUS_PASS_CPU + BUS_PASS_ORDER_FIRST); | BUS_PASS_CPU + BUS_PASS_ORDER_FIRST); | ||||
SIMPLEBUS_PNP_INFO(compat_data); | |||||
static psci_callfn_t | static psci_callfn_t | ||||
psci_get_callfn(phandle_t node) | psci_get_callfn(phandle_t node) | ||||
{ | { | ||||
char method[16]; | char method[16]; | ||||
if ((OF_getprop(node, "method", method, sizeof(method))) > 0) { | if ((OF_getprop(node, "method", method, sizeof(method))) > 0) { | ||||
if (strcmp(method, "hvc") == 0) | if (strcmp(method, "hvc") == 0) | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |