Lines Matching refs:dev
29 __FBSDID("$FreeBSD: releng/11.0/sys/dev/acpica/acpi_pcib_pci.c 300249 2016-05-20 00:03:22Z jhb $");
40 #include <contrib/dev/acpica/include/acpi.h>
41 #include <contrib/dev/acpica/include/accommon.h>
43 #include <dev/acpica/acpivar.h>
44 #include <dev/acpica/acpi_pcibvar.h>
47 #include <dev/pci/pcivar.h>
48 #include <dev/pci/pcireg.h>
49 #include <dev/pci/pcib_private.h>
70 static int acpi_pcib_read_ivar(device_t dev, device_t child,
73 device_t dev, int pin);
100 acpi_pcib_pci_probe(device_t dev)
103 if (pci_get_class(dev) != PCIC_BRIDGE ||
104 pci_get_subclass(dev) != PCIS_BRIDGE_PCI ||
107 if (acpi_get_handle(dev) == NULL)
112 device_set_desc(dev, "ACPI PCI-PCI bridge");
117 acpi_pcib_pci_attach(device_t dev)
123 pcib_attach_common(dev);
124 sc = device_get_softc(dev);
125 sc->ap_handle = acpi_get_handle(dev);
126 acpi_pcib_fetch_prt(dev, &sc->ap_prt);
128 return (pcib_attach_child(dev));
132 acpi_pcib_pci_detach(device_t dev)
139 sc = device_get_softc(dev);
140 error = pcib_detach(dev);
147 acpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
149 struct acpi_pcib_softc *sc = device_get_softc(dev);
156 return (pcib_read_ivar(dev, child, which, result));
160 acpi_pcib_pci_route_interrupt(device_t pcib, device_t dev, int pin)
171 return (pcib_route_interrupt(pcib, dev, pin));
173 return (acpi_pcib_route_interrupt(pcib, dev, pin, &sc->ap_prt));