apm.c (241856) | apm.c (241885) |
---|---|
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: head/sys/i386/bios/apm.c 241856 2012-10-22 03:41:14Z eadler $"); | 20__FBSDID("$FreeBSD: head/sys/i386/bios/apm.c 241885 2012-10-22 13:06:09Z eadler $"); |
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> --- 844 unchanged lines hidden (view full) --- 873{ 874 device_t child; 875 876 if (!cold) { 877 printf("Don't load this driver from userland!!\n"); 878 return; 879 } 880 | 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> --- 844 unchanged lines hidden (view full) --- 873{ 874 device_t child; 875 876 if (!cold) { 877 printf("Don't load this driver from userland!!\n"); 878 return; 879 } 880 |
881 if (resource_disabled("apm", 0)) 882 return; 883 |
|
881 child = BUS_ADD_CHILD(parent, 0, "apm", 0); 882 if (child == NULL) 883 panic("apm_identify"); 884} 885 886/* 887 * probe for APM BIOS 888 */ --- 702 unchanged lines hidden --- | 884 child = BUS_ADD_CHILD(parent, 0, "apm", 0); 885 if (child == NULL) 886 panic("apm_identify"); 887} 888 889/* 890 * probe for APM BIOS 891 */ --- 702 unchanged lines hidden --- |