apm.c (302408) | apm.c (359652) |
---|---|
1/*- 2 * APM (Advanced Power Management) BIOS Device Driver 3 * 4 * Copyright (c) 1994 UKAI, Fumitoshi. 5 * Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org> 6 * Copyright (c) 1996 Nate Williams <nate@FreeBSD.org> 7 * Copyright (c) 1997 Poul-Henning Kamp <phk@FreeBSD.org> 8 * 9 * This software may be used, modified, copied, and distributed, in 10 * both source and binary form provided that the above copyright and 11 * these terms are retained. Under no circumstances is the author 12 * responsible for the proper functioning of this software, nor does 13 * the author assume any responsibility for damages incurred with its 14 * use. 15 * 16 * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) 17 */ 18 19#include <sys/cdefs.h> | 1/*- 2 * APM (Advanced Power Management) BIOS Device Driver 3 * 4 * Copyright (c) 1994 UKAI, Fumitoshi. 5 * Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org> 6 * Copyright (c) 1996 Nate Williams <nate@FreeBSD.org> 7 * Copyright (c) 1997 Poul-Henning Kamp <phk@FreeBSD.org> 8 * 9 * This software may be used, modified, copied, and distributed, in 10 * both source and binary form provided that the above copyright and 11 * these terms are retained. Under no circumstances is the author 12 * responsible for the proper functioning of this software, nor does 13 * the author assume any responsibility for damages incurred with its 14 * use. 15 * 16 * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) 17 */ 18 19#include <sys/cdefs.h> |
20__FBSDID("$FreeBSD: stable/11/sys/i386/bios/apm.c 267992 2014-06-28 03:56:17Z hselasky $"); | 20__FBSDID("$FreeBSD: stable/11/sys/i386/bios/apm.c 359652 2020-04-06 07:16:31Z hselasky $"); |
21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/bus.h> 25#include <sys/conf.h> 26#include <sys/condvar.h> 27#include <sys/eventhandler.h> 28#include <sys/fcntl.h> --- 1555 unchanged lines hidden (view full) --- 1584static void 1585apm_pm_register(void *arg) 1586{ 1587 1588 if (!resource_disabled("apm", 0)) 1589 power_pm_register(POWER_PM_TYPE_APM, apm_pm_func, NULL); 1590} 1591 | 21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/bus.h> 25#include <sys/conf.h> 26#include <sys/condvar.h> 27#include <sys/eventhandler.h> 28#include <sys/fcntl.h> --- 1555 unchanged lines hidden (view full) --- 1584static void 1585apm_pm_register(void *arg) 1586{ 1587 1588 if (!resource_disabled("apm", 0)) 1589 power_pm_register(POWER_PM_TYPE_APM, apm_pm_func, NULL); 1590} 1591 |
1592SYSINIT(power, SI_SUB_KLD, SI_ORDER_ANY, apm_pm_register, 0); | 1592SYSINIT(power, SI_SUB_KLD, SI_ORDER_ANY, apm_pm_register, NULL); |