Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149064676
D24943.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D24943.diff
View Options
Index: head/sys/dev/acpica/acpi_pci.c
===================================================================
--- head/sys/dev/acpica/acpi_pci.c
+++ head/sys/dev/acpica/acpi_pci.c
@@ -456,15 +456,15 @@
}
#ifdef ACPI_DMAR
-bus_dma_tag_t dmar_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
acpi_pci_get_dma_tag(device_t bus, device_t child)
{
bus_dma_tag_t tag;
if (device_get_parent(child) == bus) {
- /* try dmar and return if it works */
- tag = dmar_get_dma_tag(bus, child);
+ /* try iommu and return if it works */
+ tag = acpi_iommu_get_dma_tag(bus, child);
} else
tag = NULL;
if (tag == NULL)
Index: head/sys/dev/pci/pci.c
===================================================================
--- head/sys/dev/pci/pci.c
+++ head/sys/dev/pci/pci.c
@@ -5682,7 +5682,7 @@
}
#ifdef ACPI_DMAR
-bus_dma_tag_t dmar_get_dma_tag(device_t dev, device_t child);
+bus_dma_tag_t acpi_iommu_get_dma_tag(device_t dev, device_t child);
bus_dma_tag_t
pci_get_dma_tag(device_t bus, device_t dev)
{
@@ -5690,8 +5690,8 @@
struct pci_softc *sc;
if (device_get_parent(dev) == bus) {
- /* try dmar and return if it works */
- tag = dmar_get_dma_tag(bus, dev);
+ /* try iommu and return if it works */
+ tag = acpi_iommu_get_dma_tag(bus, dev);
} else
tag = NULL;
if (tag == NULL) {
Index: head/sys/x86/iommu/busdma_dmar.h
===================================================================
--- head/sys/x86/iommu/busdma_dmar.h
+++ head/sys/x86/iommu/busdma_dmar.h
@@ -62,6 +62,6 @@
extern struct bus_dma_impl bus_dma_dmar_impl;
-bus_dma_tag_t dmar_get_dma_tag(device_t dev, device_t child);
+bus_dma_tag_t acpi_iommu_get_dma_tag(device_t dev, device_t child);
#endif
Index: head/sys/x86/iommu/busdma_dmar.c
===================================================================
--- head/sys/x86/iommu/busdma_dmar.c
+++ head/sys/x86/iommu/busdma_dmar.c
@@ -269,7 +269,7 @@
}
bus_dma_tag_t
-dmar_get_dma_tag(device_t dev, device_t child)
+acpi_iommu_get_dma_tag(device_t dev, device_t child)
{
struct dmar_unit *dmar;
struct dmar_ctx *ctx;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 23, 2:24 AM (15 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30153481
Default Alt Text
D24943.diff (2 KB)
Attached To
Mode
D24943: Rename dmar to iommu
Attached
Detach File
Event Timeline
Log In to Comment