atk0110.c (299052) | atk0110.c (300421) |
---|---|
1/* $NetBSD: atk0110.c,v 1.4 2010/02/11 06:54:57 cnst Exp $ */ 2/* $OpenBSD: atk0110.c,v 1.1 2009/07/23 01:38:16 cnst Exp $ */ 3 4/* 5 * Copyright (c) 2009, 2010 Constantine A. Murenin <cnst++@FreeBSD.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above --- 4 unchanged lines hidden (view full) --- 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> | 1/* $NetBSD: atk0110.c,v 1.4 2010/02/11 06:54:57 cnst Exp $ */ 2/* $OpenBSD: atk0110.c,v 1.1 2009/07/23 01:38:16 cnst Exp $ */ 3 4/* 5 * Copyright (c) 2009, 2010 Constantine A. Murenin <cnst++@FreeBSD.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above --- 4 unchanged lines hidden (view full) --- 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> |
21__FBSDID("$FreeBSD: head/sys/dev/acpi_support/atk0110.c 299052 2016-05-04 06:26:27Z adrian $"); | 21__FBSDID("$FreeBSD: head/sys/dev/acpi_support/atk0110.c 300421 2016-05-22 13:58:32Z loos $"); |
22 23#include <machine/_inttypes.h> 24#include <sys/param.h> 25#include <sys/systm.h> 26#include <sys/kernel.h> 27#include <sys/bus.h> 28#include <sys/module.h> 29#include <sys/malloc.h> --- 309 unchanged lines hidden (view full) --- 339 v = bp->Integer.Value; 340 AcpiOsFree(b.Pointer); 341 ACPI_SERIAL_END(aibs); 342 343 switch (st) { 344 case AIBS_VOLT: 345 break; 346 case AIBS_TEMP: | 22 23#include <machine/_inttypes.h> 24#include <sys/param.h> 25#include <sys/systm.h> 26#include <sys/kernel.h> 27#include <sys/bus.h> 28#include <sys/module.h> 29#include <sys/malloc.h> --- 309 unchanged lines hidden (view full) --- 339 v = bp->Integer.Value; 340 AcpiOsFree(b.Pointer); 341 ACPI_SERIAL_END(aibs); 342 343 switch (st) { 344 case AIBS_VOLT: 345 break; 346 case AIBS_TEMP: |
347 v += 2732; 348 l += 2732; 349 h += 2732; | 347 v += 2731; 348 l += 2731; 349 h += 2731; |
350 break; 351 case AIBS_FAN: 352 break; 353 } 354 so[0] = v; 355 so[1] = l; 356 so[2] = h; 357 return sysctl_handle_opaque(oidp, &so, sizeof(so), req); 358} | 350 break; 351 case AIBS_FAN: 352 break; 353 } 354 so[0] = v; 355 so[1] = l; 356 so[2] = h; 357 return sysctl_handle_opaque(oidp, &so, sizeof(so), req); 358} |