Deleted Added
full compact
acpi_pcib_acpi.c (107249) acpi_pcib_acpi.c (118607)
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 107249 2002-11-25 21:55:04Z jhb $
27 * $FreeBSD: head/sys/dev/acpica/acpi_pcib_acpi.c 118607 2003-08-07 15:04:27Z jhb $
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"

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

127 return(ENXIO);
128}
129
130static int
131acpi_pcib_acpi_attach(device_t dev)
132{
133 struct acpi_hpcib_softc *sc;
134 ACPI_STATUS status;
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"

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

127 return(ENXIO);
128}
129
130static int
131acpi_pcib_acpi_attach(device_t dev)
132{
133 struct acpi_hpcib_softc *sc;
134 ACPI_STATUS status;
135 uint addr, slot, func, busok;
135 u_int addr, slot, func, busok;
136 uint8_t busno;
137
138 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
139
140 sc = device_get_softc(dev);
141 sc->ap_dev = dev;
142 sc->ap_handle = acpi_get_handle(dev);
143

--- 148 unchanged lines hidden ---
136 uint8_t busno;
137
138 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
139
140 sc = device_get_softc(dev);
141 sc->ap_dev = dev;
142 sc->ap_handle = acpi_get_handle(dev);
143

--- 148 unchanged lines hidden ---