Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/nexus.c
Show First 20 Lines • Show All 487 Lines • ▼ Show 20 Lines | |||||
EARLY_DRIVER_MODULE(nexus_fdt, root, nexus_fdt_driver, nexus_fdt_devclass, | EARLY_DRIVER_MODULE(nexus_fdt, root, nexus_fdt_driver, nexus_fdt_devclass, | ||||
0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_FIRST); | 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_FIRST); | ||||
static int | static int | ||||
nexus_fdt_probe(device_t dev) | nexus_fdt_probe(device_t dev) | ||||
{ | { | ||||
if (arm64_bus_method != ARM64_BUS_FDT) | if (firmware_type != FW_DEVTREE) | ||||
return (ENXIO); | return (ENXIO); | ||||
device_quiet(dev); | device_quiet(dev); | ||||
return (BUS_PROBE_DEFAULT); | return (BUS_PROBE_DEFAULT); | ||||
} | } | ||||
static int | static int | ||||
nexus_fdt_attach(device_t dev) | nexus_fdt_attach(device_t dev) | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
EARLY_DRIVER_MODULE(nexus_acpi, root, nexus_acpi_driver, nexus_acpi_devclass, | EARLY_DRIVER_MODULE(nexus_acpi, root, nexus_acpi_driver, nexus_acpi_devclass, | ||||
0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_FIRST); | 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_FIRST); | ||||
static int | static int | ||||
nexus_acpi_probe(device_t dev) | nexus_acpi_probe(device_t dev) | ||||
{ | { | ||||
if (arm64_bus_method != ARM64_BUS_ACPI || acpi_identify() != 0) | if (firmware_type != FW_UEFI || acpi_identify() != 0) | ||||
return (ENXIO); | return (ENXIO); | ||||
device_quiet(dev); | device_quiet(dev); | ||||
return (BUS_PROBE_LOW_PRIORITY); | return (BUS_PROBE_LOW_PRIORITY); | ||||
} | } | ||||
static int | static int | ||||
nexus_acpi_attach(device_t dev) | nexus_acpi_attach(device_t dev) | ||||
Show All 33 Lines |