Deleted Added
full compact
acpi_hpet.c (171547) acpi_hpet.c (171657)
1/*-
2 * Copyright (c) 2005 Poul-Henning Kamp
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) 2005 Poul-Henning Kamp
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/dev/acpica/acpi_hpet.c 171547 2007-07-22 20:45:27Z njl $");
28__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_hpet.c 171657 2007-07-30 15:21:26Z njl $");
29
30#include "opt_acpi.h"
31#include <sys/param.h>
32#include <sys/bus.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35#include <sys/rman.h>
36#include <sys/time.h>

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

65#define HPET_OFFSET_VALUE 0xf0 /* Location of actual timer value */
66
67#define DEV_HPET(x) (acpi_get_magic(x) == (uintptr_t)&acpi_hpet_devclass)
68
69struct timecounter hpet_timecounter = {
70 .tc_get_timecount = hpet_get_timecount,
71 .tc_counter_mask = ~0u,
72 .tc_name = "HPET",
29
30#include "opt_acpi.h"
31#include <sys/param.h>
32#include <sys/bus.h>
33#include <sys/kernel.h>
34#include <sys/module.h>
35#include <sys/rman.h>
36#include <sys/time.h>

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

65#define HPET_OFFSET_VALUE 0xf0 /* Location of actual timer value */
66
67#define DEV_HPET(x) (acpi_get_magic(x) == (uintptr_t)&acpi_hpet_devclass)
68
69struct timecounter hpet_timecounter = {
70 .tc_get_timecount = hpet_get_timecount,
71 .tc_counter_mask = ~0u,
72 .tc_name = "HPET",
73 .tc_quality = 2000,
73 .tc_quality = 900,
74};
75
76static u_int
77hpet_get_timecount(struct timecounter *tc)
78{
79 struct acpi_hpet_softc *sc;
80
81 sc = tc->tc_priv;

--- 192 unchanged lines hidden ---
74};
75
76static u_int
77hpet_get_timecount(struct timecounter *tc)
78{
79 struct acpi_hpet_softc *sc;
80
81 sc = tc->tc_priv;

--- 192 unchanged lines hidden ---