pmtimer.c (178429) | pmtimer.c (184386) |
---|---|
1/*- 2 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/i386/isa/pmtimer.c 178429 2008-04-22 19:38:30Z phk $"); | 28__FBSDID("$FreeBSD: head/sys/i386/isa/pmtimer.c 184386 2008-10-28 04:32:41Z imp $"); |
29 30/* 31 * Timer device driver for power management events. 32 * The code for suspend/resume is derived from APM device driver. 33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> --- 27 unchanged lines hidden (view full) --- 64 panic("pmtimer_identify"); 65 } 66} 67 68static int 69pmtimer_probe(device_t dev) 70{ 71 | 29 30/* 31 * Timer device driver for power management events. 32 * The code for suspend/resume is derived from APM device driver. 33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> --- 27 unchanged lines hidden (view full) --- 64 panic("pmtimer_identify"); 65 } 66} 67 68static int 69pmtimer_probe(device_t dev) 70{ 71 |
72 if (ISA_PNP_PROBE(device_get_parent(dev), dev, pmtimer_ids) == ENXIO) { | 72 if (ISA_PNP_PROBE(device_get_parent(dev), dev, pmtimer_ids) == ENXIO) |
73 return (ENXIO); | 73 return (ENXIO); |
74 } | |
75 76 /* only one instance always */ 77 return (device_get_unit(dev)); 78} 79 80static struct timeval suspend_time; 81static struct timeval diff_time; 82 --- 76 unchanged lines hidden --- | 74 75 /* only one instance always */ 76 return (device_get_unit(dev)); 77} 78 79static struct timeval suspend_time; 80static struct timeval diff_time; 81 --- 76 unchanged lines hidden --- |