acpi_asus_wmi.c (273377) | acpi_asus_wmi.c (300421) |
---|---|
1/*- 2 * Copyright (c) 2012 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/acpi_support/acpi_asus_wmi.c 273377 2014-10-21 07:31:21Z hselasky $"); | 28__FBSDID("$FreeBSD: head/sys/dev/acpi_support/acpi_asus_wmi.c 300421 2016-05-22 13:58:32Z loos $"); |
29 30#include "opt_acpi.h" 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/uio.h> 34#include <sys/proc.h> 35#include <sys/kernel.h> 36#include <sys/bus.h> --- 456 unchanged lines hidden (view full) --- 493 494 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); 495 ACPI_SERIAL_ASSERT(asus_wmi); 496 497 acpi_wpi_asus_get_devstate(sc, dev_id, &val); 498 499 switch(dev_id) { 500 case ASUS_WMI_DEVID_THERMAL_CTRL: | 29 30#include "opt_acpi.h" 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/uio.h> 34#include <sys/proc.h> 35#include <sys/kernel.h> 36#include <sys/bus.h> --- 456 unchanged lines hidden (view full) --- 493 494 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); 495 ACPI_SERIAL_ASSERT(asus_wmi); 496 497 acpi_wpi_asus_get_devstate(sc, dev_id, &val); 498 499 switch(dev_id) { 500 case ASUS_WMI_DEVID_THERMAL_CTRL: |
501 val = (val - 2732 + 5) / 10; | 501 val = (val - 2731 + 5) / 10; |
502 break; 503 case ASUS_WMI_DEVID_PROCESSOR_STATE: 504 case ASUS_WMI_DEVID_FAN_CTRL: 505 break; 506 case ASUS_WMI_DEVID_BRIGHTNESS: 507 val &= ASUS_WMI_DSTS_BRIGHTNESS_MASK; 508 break; 509 case ASUS_WMI_DEVID_KBD_BACKLIGHT: --- 128 unchanged lines hidden --- | 502 break; 503 case ASUS_WMI_DEVID_PROCESSOR_STATE: 504 case ASUS_WMI_DEVID_FAN_CTRL: 505 break; 506 case ASUS_WMI_DEVID_BRIGHTNESS: 507 val &= ASUS_WMI_DSTS_BRIGHTNESS_MASK; 508 break; 509 case ASUS_WMI_DEVID_KBD_BACKLIGHT: --- 128 unchanged lines hidden --- |