Пример #1
0
static int
nexus_acpi_probe(device_t dev)
{

	if (arm64_bus_method != ARM64_BUS_ACPI || acpi_identify() != 0)
		return (ENXIO);

	device_quiet(dev);
	return (BUS_PROBE_LOW_PRIORITY);
}
Пример #2
0
static int
nexus_acpi_probe(device_t dev)
{

	if (acpi_identify() != 0)
		return (ENXIO);

	device_quiet(dev);
	return (BUS_PROBE_LOW_PRIORITY);
}
Пример #3
0
/*
 * ACPI nexus(4) driver.
 */
static int
nexus_acpi_probe(device_t dev)
{
	int error;

	error = acpi_identify();
	if (error)
		return (error);

	return (BUS_PROBE_DEFAULT);
}
Пример #4
0
static int
nexus_attach(device_t dev)
{

	/*
	 * Mask the legacy PICs - we will use the I/O SAPIC for interrupt.
	 */
	outb(IO_ICU1+1, 0xff);
	outb(IO_ICU2+1, 0xff);

	if (acpi_identify() == 0)
		BUS_ADD_CHILD(dev, 10, "acpi", 0);
	clock_register(dev, 1000);
	bus_generic_attach(dev);
	return 0;
}