acpi_timer.c (132527) | acpi_timer.c (132528) |
---|---|
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 132527 2004-07-22 05:32:56Z njl $ | 27 * $FreeBSD: head/sys/dev/acpica/acpi_timer.c 132528 2004-07-22 05:42:14Z 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/module.h> 34#include <sys/sysctl.h> 35#include <sys/timetc.h> --- 116 unchanged lines hidden (view full) --- 152 SYS_RES_IOPORT : SYS_RES_MEMORY; 153 acpi_timer_reg = bus_alloc_resource_any(dev, rtype, &rid, RF_ACTIVE); 154 if (acpi_timer_reg == NULL) { 155 device_printf(dev, "couldn't allocate resource (%s 0x%lx)\n", 156 (rtype == SYS_RES_IOPORT) ? "port" : "mem", 157 (u_long)AcpiGbl_FADT->XPmTmrBlk.Address); 158 return (ENXIO); 159 } | 28 */ 29#include "opt_acpi.h" 30#include <sys/param.h> 31#include <sys/bus.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/sysctl.h> 35#include <sys/timetc.h> --- 116 unchanged lines hidden (view full) --- 152 SYS_RES_IOPORT : SYS_RES_MEMORY; 153 acpi_timer_reg = bus_alloc_resource_any(dev, rtype, &rid, RF_ACTIVE); 154 if (acpi_timer_reg == NULL) { 155 device_printf(dev, "couldn't allocate resource (%s 0x%lx)\n", 156 (rtype == SYS_RES_IOPORT) ? "port" : "mem", 157 (u_long)AcpiGbl_FADT->XPmTmrBlk.Address); 158 return (ENXIO); 159 } |
160 acpi_timer_bsh = rman_get_bushandle(acpi_timer_reg); 161 acpi_timer_bst = rman_get_bustag(acpi_timer_reg); |
|
160 if (AcpiGbl_FADT->TmrValExt != 0) 161 acpi_timer_timecounter.tc_counter_mask = 0xffffffff; 162 else 163 acpi_timer_timecounter.tc_counter_mask = 0x00ffffff; 164 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 165 if (testenv("debug.acpi.timer_test")) 166 acpi_timer_boot_test(); 167 --- 195 unchanged lines hidden --- | 162 if (AcpiGbl_FADT->TmrValExt != 0) 163 acpi_timer_timecounter.tc_counter_mask = 0xffffffff; 164 else 165 acpi_timer_timecounter.tc_counter_mask = 0x00ffffff; 166 acpi_timer_timecounter.tc_frequency = acpi_timer_frequency; 167 if (testenv("debug.acpi.timer_test")) 168 acpi_timer_boot_test(); 169 --- 195 unchanged lines hidden --- |