Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_pci.c
Show First 20 Lines • Show All 449 Lines • ▼ Show 20 Lines | acpi_pci_detach(device_t dev) | ||||
AcpiWalkNamespace(ACPI_TYPE_DEVICE, acpi_get_handle(dev), 1, | AcpiWalkNamespace(ACPI_TYPE_DEVICE, acpi_get_handle(dev), 1, | ||||
acpi_pci_remove_notify_handler, NULL, dev, NULL); | acpi_pci_remove_notify_handler, NULL, dev, NULL); | ||||
AcpiRemoveNotifyHandler(acpi_get_handle(dev), ACPI_SYSTEM_NOTIFY, | AcpiRemoveNotifyHandler(acpi_get_handle(dev), ACPI_SYSTEM_NOTIFY, | ||||
acpi_pci_bus_notify_handler); | acpi_pci_bus_notify_handler); | ||||
return (pci_detach(dev)); | return (pci_detach(dev)); | ||||
} | } | ||||
#ifdef ACPI_DMAR | #if defined(ACPI_DMAR) || defined(ACPI_SMMU) | ||||
bus_dma_tag_t acpi_iommu_get_dma_tag(device_t dev, device_t child); | bus_dma_tag_t acpi_iommu_get_dma_tag(device_t dev, device_t child); | ||||
static bus_dma_tag_t | static bus_dma_tag_t | ||||
acpi_pci_get_dma_tag(device_t bus, device_t child) | acpi_pci_get_dma_tag(device_t bus, device_t child) | ||||
{ | { | ||||
bus_dma_tag_t tag; | bus_dma_tag_t tag; | ||||
if (device_get_parent(child) == bus) { | if (device_get_parent(child) == bus) { | ||||
/* try iommu and return if it works */ | /* try iommu and return if it works */ | ||||
Show All 16 Lines |