acpi_battery.c (148968) | acpi_battery.c (150003) |
---|---|
1/*- 2 * Copyright (c) 2005 Nate Lawson 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Nate Lawson 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_battery.c 148968 2005-08-11 17:12:57Z njl $"); | 29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_battery.c 150003 2005-09-11 18:39:03Z obrien $"); |
30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/malloc.h> 35#include <sys/bus.h> 36#include <sys/ioccom.h> 37#include <sys/sysctl.h> 38 | 30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/malloc.h> 35#include <sys/bus.h> 36#include <sys/ioccom.h> 37#include <sys/sysctl.h> 38 |
39#include "acpi.h" | 39#include <contrib/dev/acpica/acpi.h> |
40#include <dev/acpica/acpivar.h> 41#include <dev/acpica/acpiio.h> 42 43/* Default seconds before re-sampling the battery state. */ 44#define ACPI_BATTERY_INFO_EXPIRE 5 45 46static int acpi_batteries_initted; 47static int acpi_battery_info_expire = ACPI_BATTERY_INFO_EXPIRE; --- 366 unchanged lines hidden --- | 40#include <dev/acpica/acpivar.h> 41#include <dev/acpica/acpiio.h> 42 43/* Default seconds before re-sampling the battery state. */ 44#define ACPI_BATTERY_INFO_EXPIRE 5 45 46static int acpi_batteries_initted; 47static int acpi_battery_info_expire = ACPI_BATTERY_INFO_EXPIRE; --- 366 unchanged lines hidden --- |