Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/acpica/acpi_timer.c
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Locate the ACPI timer using the FADT, set up and allocate the I/O resources | * Locate the ACPI timer using the FADT, set up and allocate the I/O resources | ||||
* we will be using. | * we will be using. | ||||
*/ | */ | ||||
static void | static void | ||||
acpi_timer_identify(driver_t *driver, device_t parent) | acpi_timer_identify(driver_t *driver, device_t parent) | ||||
{ | { | ||||
device_t dev; | device_t dev; | ||||
u_long rlen, rstart; | rman_res_t rlen, rstart; | ||||
int rid, rtype; | int rid, rtype; | ||||
ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); | ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); | ||||
if (acpi_disabled("timer") || (acpi_quirks & ACPI_Q_TIMER) || | if (acpi_disabled("timer") || (acpi_quirks & ACPI_Q_TIMER) || | ||||
acpi_timer_dev || acpi_timer_disabled || | acpi_timer_dev || acpi_timer_disabled || | ||||
AcpiGbl_FADT.PmTimerLength == 0) | AcpiGbl_FADT.PmTimerLength == 0) | ||||
return_VOID; | return_VOID; | ||||
▲ Show 20 Lines • Show All 336 Lines • Show Last 20 Lines |