acpi_timer.c (132528) | acpi_timer.c (136270) |
---|---|
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 132528 2004-07-22 05:42:14Z njl $ | 27 * $FreeBSD: head/sys/dev/acpica/acpi_timer.c 136270 2004-10-08 17:56:47Z 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> --- 75 unchanged lines hidden (view full) --- 111acpi_timer_identify(driver_t *driver, device_t parent) 112{ 113 device_t dev; 114 u_long rlen, rstart; 115 int rid, rtype; 116 117 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); 118 | 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> --- 75 unchanged lines hidden (view full) --- 111acpi_timer_identify(driver_t *driver, device_t parent) 112{ 113 device_t dev; 114 u_long rlen, rstart; 115 int rid, rtype; 116 117 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); 118 |
119 if (acpi_disabled("timer") || AcpiGbl_FADT == NULL || acpi_timer_dev) | 119 if (acpi_disabled("timer") || (acpi_quirks & ACPI_Q_TIMER) || 120 AcpiGbl_FADT == NULL || acpi_timer_dev) |
120 return_VOID; 121 122 if ((dev = BUS_ADD_CHILD(parent, 0, "acpi_timer", 0)) == NULL) { 123 device_printf(parent, "could not add acpi_timer0\n"); 124 return_VOID; 125 } 126 acpi_timer_dev = dev; 127 --- 237 unchanged lines hidden --- | 121 return_VOID; 122 123 if ((dev = BUS_ADD_CHILD(parent, 0, "acpi_timer", 0)) == NULL) { 124 device_printf(parent, "could not add acpi_timer0\n"); 125 return_VOID; 126 } 127 acpi_timer_dev = dev; 128 --- 237 unchanged lines hidden --- |