Deleted Added
full compact
acpi_timer.c (89054) acpi_timer.c (91128)
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 89054 2002-01-08 06:46:01Z msmith $
27 * $FreeBSD: head/sys/dev/acpica/acpi_timer.c 91128 2002-02-23 05:31:38Z msmith $
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#include <sys/timetc.h>
35

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

48 *
49 * Based on the i386-only mp_clock.c by <phk@FreeBSD.ORG>.
50 */
51
52/*
53 * Hooks for the ACPI CA debugging infrastructure
54 */
55#define _COMPONENT ACPI_SYSTEM
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#include <sys/timetc.h>
35

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

48 *
49 * Based on the i386-only mp_clock.c by <phk@FreeBSD.ORG>.
50 */
51
52/*
53 * Hooks for the ACPI CA debugging infrastructure
54 */
55#define _COMPONENT ACPI_SYSTEM
56MODULE_NAME("TIMER")
56ACPI_MODULE_NAME("TIMER")
57
58static device_t acpi_timer_dev;
59struct resource *acpi_timer_reg;
60#define TIMER_READ bus_space_read_4(rman_get_bustag(acpi_timer_reg), \
61 rman_get_bushandle(acpi_timer_reg), \
62 0)
63
64static u_int acpi_timer_frequency = 14318182/4;

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

111 */
112static void
113acpi_timer_identify(driver_t *driver, device_t parent)
114{
115 device_t dev;
116 char desc[40];
117 int rid;
118
57
58static device_t acpi_timer_dev;
59struct resource *acpi_timer_reg;
60#define TIMER_READ bus_space_read_4(rman_get_bustag(acpi_timer_reg), \
61 rman_get_bushandle(acpi_timer_reg), \
62 0)
63
64static u_int acpi_timer_frequency = 14318182/4;

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

111 */
112static void
113acpi_timer_identify(driver_t *driver, device_t parent)
114{
115 device_t dev;
116 char desc[40];
117 int rid;
118
119 FUNCTION_TRACE(__func__);
119 ACPI_FUNCTION_TRACE(__func__);
120
121 if (acpi_disabled("timer"))
122 return_VOID;
123
124 if (AcpiGbl_FADT == NULL)
125 return_VOID;
126
127 if ((dev = BUS_ADD_CHILD(parent, 0, "acpi_timer", 0)) == NULL) {

--- 210 unchanged lines hidden ---
120
121 if (acpi_disabled("timer"))
122 return_VOID;
123
124 if (AcpiGbl_FADT == NULL)
125 return_VOID;
126
127 if ((dev = BUS_ADD_CHILD(parent, 0, "acpi_timer", 0)) == NULL) {

--- 210 unchanged lines hidden ---