Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/acpica/acpi_ec.c
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
#define EVENT_READY(event, status) \ | #define EVENT_READY(event, status) \ | ||||
(((event) == EC_EVENT_OUTPUT_BUFFER_FULL && \ | (((event) == EC_EVENT_OUTPUT_BUFFER_FULL && \ | ||||
((status) & EC_FLAG_OUTPUT_BUFFER) != 0) || \ | ((status) & EC_FLAG_OUTPUT_BUFFER) != 0) || \ | ||||
((event) == EC_EVENT_INPUT_BUFFER_EMPTY && \ | ((event) == EC_EVENT_INPUT_BUFFER_EMPTY && \ | ||||
((status) & EC_FLAG_INPUT_BUFFER) == 0)) | ((status) & EC_FLAG_INPUT_BUFFER) == 0)) | ||||
ACPI_SERIAL_DECL(ec, "ACPI embedded controller"); | ACPI_SERIAL_DECL(ec, "ACPI embedded controller"); | ||||
static SYSCTL_NODE(_debug_acpi, OID_AUTO, ec, CTLFLAG_RD, NULL, "EC debugging"); | static SYSCTL_NODE(_debug_acpi, OID_AUTO, ec, | ||||
CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, | |||||
"EC debugging"); | |||||
static int ec_burst_mode; | static int ec_burst_mode; | ||||
SYSCTL_INT(_debug_acpi_ec, OID_AUTO, burst, CTLFLAG_RWTUN, &ec_burst_mode, 0, | SYSCTL_INT(_debug_acpi_ec, OID_AUTO, burst, CTLFLAG_RWTUN, &ec_burst_mode, 0, | ||||
"Enable use of burst mode (faster for nearly all systems)"); | "Enable use of burst mode (faster for nearly all systems)"); | ||||
static int ec_polled_mode; | static int ec_polled_mode; | ||||
SYSCTL_INT(_debug_acpi_ec, OID_AUTO, polled, CTLFLAG_RWTUN, &ec_polled_mode, 0, | SYSCTL_INT(_debug_acpi_ec, OID_AUTO, polled, CTLFLAG_RWTUN, &ec_polled_mode, 0, | ||||
"Force use of polled mode (only if interrupt mode doesn't work)"); | "Force use of polled mode (only if interrupt mode doesn't work)"); | ||||
static int ec_timeout = EC_TIMEOUT; | static int ec_timeout = EC_TIMEOUT; | ||||
▲ Show 20 Lines • Show All 849 Lines • Show Last 20 Lines |