apm.c (51850) | apm.c (52161) |
---|---|
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 * | 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 * $FreeBSD: head/sys/i386/bios/apm.c 51850 1999-10-02 03:34:15Z nsayer $ | 18 * $FreeBSD: head/sys/i386/bios/apm.c 52161 1999-10-12 15:00:06Z nsayer $ |
19 */ 20 21#include <sys/param.h> 22#include <sys/systm.h> 23#include <sys/eventhandler.h> 24#include <sys/conf.h> 25#include <sys/kernel.h> 26#include <sys/time.h> --- 1082 unchanged lines hidden (view full) --- 1109 apm_hook_establish(APM_HOOK_RESUME , &sc->sc_resume); 1110 1111 /* Power the system off using APM */ 1112 EVENTHANDLER_REGISTER(shutdown_final, apm_power_off, NULL, 1113 SHUTDOWN_PRI_LAST); 1114 1115 sc->initialized = 1; 1116 | 19 */ 20 21#include <sys/param.h> 22#include <sys/systm.h> 23#include <sys/eventhandler.h> 24#include <sys/conf.h> 25#include <sys/kernel.h> 26#include <sys/time.h> --- 1082 unchanged lines hidden (view full) --- 1109 apm_hook_establish(APM_HOOK_RESUME , &sc->sc_resume); 1110 1111 /* Power the system off using APM */ 1112 EVENTHANDLER_REGISTER(shutdown_final, apm_power_off, NULL, 1113 SHUTDOWN_PRI_LAST); 1114 1115 sc->initialized = 1; 1116 |
1117 make_dev(&apm_cdevsw, 0, 0, 0, 0600, "apm"); | 1117 make_dev(&apm_cdevsw, 0, 0, 5, 0660, "apm"); 1118 make_dev(&apm_cdevsw, 8, 0, 5, 0660, "apmctl"); |
1118 return 0; 1119} 1120 1121static int 1122apmopen(dev_t dev, int flag, int fmt, struct proc *p) 1123{ 1124 struct apm_softc *sc = &apm_softc; 1125 int ctl = APMDEV(dev); --- 249 unchanged lines hidden --- | 1119 return 0; 1120} 1121 1122static int 1123apmopen(dev_t dev, int flag, int fmt, struct proc *p) 1124{ 1125 struct apm_softc *sc = &apm_softc; 1126 int ctl = APMDEV(dev); --- 249 unchanged lines hidden --- |