Deleted Added
full compact
acpi_timer.c (119529) acpi_timer.c (126517)
1/*-
2 * Copyright (c) 2000, 2001 Michael Smith
3 * Copyright (c) 2000 BSDi
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:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*-
2 * Copyright (c) 2000, 2001 Michael Smith
3 * Copyright (c) 2000 BSDi
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:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/dev/acpica/acpi_timer.c 119529 2003-08-28 16:06:30Z njl $
27 * $FreeBSD: head/sys/dev/acpica/acpi_timer.c 126517 2004-03-03 03:02:17Z njl $
28 */
29#include "opt_acpi.h"
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/kernel.h>
33#include <sys/sysctl.h>
34#if __FreeBSD_version >= 500000
35#include <sys/timetc.h>

--- 11 unchanged lines hidden (view full) ---

47
48/*
49 * A timecounter based on the free-running ACPI timer.
50 *
51 * Based on the i386-only mp_clock.c by <phk@FreeBSD.ORG>.
52 */
53
54/* Hooks for the ACPI CA debugging infrastructure */
28 */
29#include "opt_acpi.h"
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/kernel.h>
33#include <sys/sysctl.h>
34#if __FreeBSD_version >= 500000
35#include <sys/timetc.h>

--- 11 unchanged lines hidden (view full) ---

47
48/*
49 * A timecounter based on the free-running ACPI timer.
50 *
51 * Based on the i386-only mp_clock.c by <phk@FreeBSD.ORG>.
52 */
53
54/* Hooks for the ACPI CA debugging infrastructure */
55#define _COMPONENT ACPI_SYSTEM
55#define _COMPONENT ACPI_TIMER
56ACPI_MODULE_NAME("TIMER")
57
58static device_t acpi_timer_dev;
59struct resource *acpi_timer_reg;
60
61static u_int acpi_timer_frequency = 14318182 / 4;
62
63static void acpi_timer_identify(driver_t *driver, device_t parent);

--- 326 unchanged lines hidden ---
56ACPI_MODULE_NAME("TIMER")
57
58static device_t acpi_timer_dev;
59struct resource *acpi_timer_reg;
60
61static u_int acpi_timer_frequency = 14318182 / 4;
62
63static void acpi_timer_identify(driver_t *driver, device_t parent);

--- 326 unchanged lines hidden ---