Lines Matching +full:acpi +full:- +full:based
1 /*-
35 #include <contrib/dev/acpica/include/acpi.h>
47 * dedicated ACPI methods instead of using this primitive interface.
48 * However, the ACPI methods seem to be incomplete in some areas (for
79 #define HCI_LCD_BRIGHTNESS_SHIFT (16 - HCI_LCD_BRIGHTNESS_BITS)
80 #define HCI_LCD_BRIGHTNESS_MAX ((1 << HCI_LCD_BRIGHTNESS_BITS) - 1)
86 #define HCI_CPU_SPEED_SHIFT (16 - HCI_CPU_SPEED_BITS)
87 #define HCI_CPU_SPEED_MAX ((1 << HCI_CPU_SPEED_BITS) - 1)
152 ACPI_SERIAL_DECL(toshiba, "ACPI Toshiba Extras");
182 DRIVER_MODULE(acpi_toshiba, acpi, acpi_toshiba_driver, 0, 0);
183 MODULE_DEPEND(acpi_toshiba, acpi, 1, 1, 1);
198 DRIVER_MODULE(acpi_toshiba_video, acpi, acpi_toshiba_video_driver, 0, 0);
199 MODULE_DEPEND(acpi_toshiba_video, acpi, 1, 1, 1);
202 TUNABLE_INT("hw.acpi.toshiba.enable_fn_keys", &enable_fn_keys);
206 * -------------------------------------
237 sc->dev = dev; in acpi_toshiba_attach()
238 sc->handle = acpi_get_handle(dev); in acpi_toshiba_attach()
241 sysctl_ctx_init(&sc->sysctl_ctx); in acpi_toshiba_attach()
242 sc->sysctl_tree = SYSCTL_ADD_NODE(&sc->sysctl_ctx, in acpi_toshiba_attach()
243 SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree), OID_AUTO, in acpi_toshiba_attach()
247 SYSCTL_ADD_PROC(&sc->sysctl_ctx, in acpi_toshiba_attach()
248 SYSCTL_CHILDREN(sc->sysctl_tree), OID_AUTO, in acpi_toshiba_attach()
255 status = AcpiEvaluateObject(sc->handle, METHOD_HCI_ENABLE, in acpi_toshiba_attach()
259 sysctl_ctx_free(&sc->sysctl_ctx); in acpi_toshiba_attach()
262 AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY, in acpi_toshiba_attach()
276 AcpiRemoveNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY, in acpi_toshiba_detach()
279 sysctl_ctx_free(&sc->sysctl_ctx); in acpi_toshiba_detach()
292 sc = (struct acpi_toshiba_softc *)oidp->oid_arg1; in acpi_toshiba_sysctl()
293 function = oidp->oid_arg2; in acpi_toshiba_sysctl()
298 error = handler(sc->handle, HCI_GET, &arg); in acpi_toshiba_sysctl()
304 if (error != 0 || req->newptr == NULL) in acpi_toshiba_sysctl()
308 error = handler(sc->handle, HCI_SET, &arg); in acpi_toshiba_sysctl()
447 * it. This workaround attempts to re-enable them. in hci_call()
464 * Perform a few actions based on the keypress. Users can extend this
477 if (arg-- == 0) in hci_key_action()
494 hci_video_output(sc->video_handle, HCI_SET, &arg); in hci_key_action()
527 device_printf(sc->dev, "unknown notify: 0x%x\n", notify); in acpi_toshiba_notify()
531 * Toshiba video pseudo-device to provide the DSSX method.
534 * -------------------------------------
560 sc->video_handle = acpi_get_handle(dev); in acpi_toshiba_video_attach()