acpi_pcib_acpi.c (92849) | acpi_pcib_acpi.c (96926) |
---|---|
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: --- 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 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_pcib_acpi.c 92849 2002-03-21 02:02:31Z msmith $ | 27 * $FreeBSD: head/sys/dev/acpica/acpi_pcib_acpi.c 96926 2002-05-19 06:16:47Z peter $ |
28 */ 29#include "opt_acpi.h" 30#include <sys/param.h> 31#include <sys/bus.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34 35#include "acpi.h" --- 87 unchanged lines hidden (view full) --- 123static int 124acpi_pcib_attach(device_t dev) 125{ 126 struct acpi_pcib_softc *sc; 127 device_t child; 128 ACPI_STATUS status; 129 int result; 130 | 28 */ 29#include "opt_acpi.h" 30#include <sys/param.h> 31#include <sys/bus.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34 35#include "acpi.h" --- 87 unchanged lines hidden (view full) --- 123static int 124acpi_pcib_attach(device_t dev) 125{ 126 struct acpi_pcib_softc *sc; 127 device_t child; 128 ACPI_STATUS status; 129 int result; 130 |
131 ACPI_FUNCTION_TRACE(__func__); | 131 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); |
132 133 sc = device_get_softc(dev); 134 sc->ap_dev = dev; 135 sc->ap_handle = acpi_get_handle(dev); 136 137 /* 138 * Don't attach if we're not really there. 139 * --- 165 unchanged lines hidden (view full) --- 305 u_int8_t *prtp; 306 device_t *devlist; 307 int devcount; 308 int bus; 309 int interrupt; 310 int i; 311 uintptr_t up; 312 | 132 133 sc = device_get_softc(dev); 134 sc->ap_dev = dev; 135 sc->ap_handle = acpi_get_handle(dev); 136 137 /* 138 * Don't attach if we're not really there. 139 * --- 165 unchanged lines hidden (view full) --- 305 u_int8_t *prtp; 306 device_t *devlist; 307 int devcount; 308 int bus; 309 int interrupt; 310 int i; 311 uintptr_t up; 312 |
313 ACPI_FUNCTION_TRACE(__func__); | 313 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); |
314 315 crsbuf.Pointer = NULL; 316 prsbuf.Pointer = NULL; 317 devlist = NULL; 318 interrupt = 255; 319 320 /* ACPI numbers pins 0-3, not 1-4 like the BIOS */ 321 pin--; --- 215 unchanged lines hidden --- | 314 315 crsbuf.Pointer = NULL; 316 prsbuf.Pointer = NULL; 317 devlist = NULL; 318 interrupt = 255; 319 320 /* ACPI numbers pins 0-3, not 1-4 like the BIOS */ 321 pin--; --- 215 unchanged lines hidden --- |