Deleted Added
full compact
acpi_pcib_pci.c (138033) acpi_pcib_pci.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_pcib_pci.c 138033 2004-11-23 22:26:44Z jhb $");
29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_pcib_pci.c 139339 2004-12-27 05:36:47Z njl $");
30
31#include "opt_acpi.h"
32
33#include <sys/param.h>
34#include <sys/bus.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/module.h>

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

50#define _COMPONENT ACPI_BUS
51ACPI_MODULE_NAME("PCI_PCI")
52
53struct acpi_pcib_softc {
54 struct pcib_softc ap_pcibsc;
55 ACPI_HANDLE ap_handle;
56 ACPI_BUFFER ap_prt; /* interrupt routing table */
57};
30
31#include "opt_acpi.h"
32
33#include <sys/param.h>
34#include <sys/bus.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/module.h>

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

50#define _COMPONENT ACPI_BUS
51ACPI_MODULE_NAME("PCI_PCI")
52
53struct acpi_pcib_softc {
54 struct pcib_softc ap_pcibsc;
55 ACPI_HANDLE ap_handle;
56 ACPI_BUFFER ap_prt; /* interrupt routing table */
57};
58
58
59struct acpi_pcib_lookup_info {
60 UINT32 address;
61 ACPI_HANDLE handle;
62};
59struct acpi_pcib_lookup_info {
60 UINT32 address;
61 ACPI_HANDLE handle;
62};
63
63
64static int acpi_pcib_pci_probe(device_t bus);
65static int acpi_pcib_pci_attach(device_t bus);
66static int acpi_pcib_pci_resume(device_t bus);
67static int acpi_pcib_read_ivar(device_t dev, device_t child,
68 int which, uintptr_t *result);
69static int acpi_pcib_pci_route_interrupt(device_t pcib,
70 device_t dev, int pin);
71

--- 103 unchanged lines hidden ---
64static int acpi_pcib_pci_probe(device_t bus);
65static int acpi_pcib_pci_attach(device_t bus);
66static int acpi_pcib_pci_resume(device_t bus);
67static int acpi_pcib_read_ivar(device_t dev, device_t child,
68 int which, uintptr_t *result);
69static int acpi_pcib_pci_route_interrupt(device_t pcib,
70 device_t dev, int pin);
71

--- 103 unchanged lines hidden ---