acpi_resource.c (134217) | acpi_resource.c (139339) |
---|---|
1/*- 2 * Copyright (c) 2000 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: --- 12 unchanged lines hidden (view full) --- 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 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 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: --- 12 unchanged lines hidden (view full) --- 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 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_resource.c 134217 2004-08-23 16:28:42Z njl $"); | 29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_resource.c 139339 2004-12-27 05:36:47Z njl $"); |
30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/malloc.h> 36#include <sys/module.h> 37 --- 88 unchanged lines hidden (view full) --- 126 trig = res->Data.ExtendedIrq.EdgeLevel; 127 pol = res->Data.ExtendedIrq.ActiveHighLow; 128 break; 129 default: 130 panic("%s: bad resource type %u", __func__, res->Id); 131 } 132 BUS_CONFIG_INTR(dev, irq, (trig == ACPI_EDGE_SENSITIVE) ? 133 INTR_TRIGGER_EDGE : INTR_TRIGGER_LEVEL, (pol == ACPI_ACTIVE_HIGH) ? | 30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/malloc.h> 36#include <sys/module.h> 37 --- 88 unchanged lines hidden (view full) --- 126 trig = res->Data.ExtendedIrq.EdgeLevel; 127 pol = res->Data.ExtendedIrq.ActiveHighLow; 128 break; 129 default: 130 panic("%s: bad resource type %u", __func__, res->Id); 131 } 132 BUS_CONFIG_INTR(dev, irq, (trig == ACPI_EDGE_SENSITIVE) ? 133 INTR_TRIGGER_EDGE : INTR_TRIGGER_LEVEL, (pol == ACPI_ACTIVE_HIGH) ? |
134 INTR_POLARITY_HIGH : INTR_POLARITY_LOW); | 134 INTR_POLARITY_HIGH : INTR_POLARITY_LOW); |
135} 136 137/* 138 * Fetch a device's resources and associate them with the device. 139 * 140 * Note that it might be nice to also locate ACPI-specific resource items, such 141 * as GPE bits. 142 * --- 594 unchanged lines hidden --- | 135} 136 137/* 138 * Fetch a device's resources and associate them with the device. 139 * 140 * Note that it might be nice to also locate ACPI-specific resource items, such 141 * as GPE bits. 142 * --- 594 unchanged lines hidden --- |