aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/cavium
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2015-12-10 13:19:30 +0000
committerAndrew Turner <andrew@FreeBSD.org>2015-12-10 13:19:30 +0000
commitc1d5e7a1f16f794718d04d34d309723be04e16ef (patch)
tree1ac6002ffef4e6cb8accd5e764b095d666701679 /sys/arm64/cavium
parentae9ef159291b48ffe40a66aeb8ed434dfc4bd10b (diff)
downloadsrc-c1d5e7a1f16f794718d04d34d309723be04e16ef.tar.gz
src-c1d5e7a1f16f794718d04d34d309723be04e16ef.zip
Notes
Diffstat (limited to 'sys/arm64/cavium')
-rw-r--r--sys/arm64/cavium/thunder_pcie.c11
-rw-r--r--sys/arm64/cavium/thunder_pcie_common.c48
-rw-r--r--sys/arm64/cavium/thunder_pcie_pem.c11
3 files changed, 12 insertions, 58 deletions
diff --git a/sys/arm64/cavium/thunder_pcie.c b/sys/arm64/cavium/thunder_pcie.c
index 1108d15f8b69..8abdacd371a8 100644
--- a/sys/arm64/cavium/thunder_pcie.c
+++ b/sys/arm64/cavium/thunder_pcie.c
@@ -571,11 +571,12 @@ static device_method_t thunder_pcie_methods[] = {
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
- DEVMETHOD(pcib_map_msi, thunder_common_map_msi),
- DEVMETHOD(pcib_alloc_msix, thunder_common_alloc_msix),
- DEVMETHOD(pcib_release_msix, thunder_common_release_msix),
- DEVMETHOD(pcib_alloc_msi, thunder_common_alloc_msi),
- DEVMETHOD(pcib_release_msi, thunder_common_release_msi),
+
+ DEVMETHOD(pcib_map_msi, arm_map_msi),
+ DEVMETHOD(pcib_alloc_msix, arm_alloc_msix),
+ DEVMETHOD(pcib_release_msix, arm_release_msix),
+ DEVMETHOD(pcib_alloc_msi, arm_alloc_msi),
+ DEVMETHOD(pcib_release_msi, arm_release_msi),
DEVMETHOD_END
};
diff --git a/sys/arm64/cavium/thunder_pcie_common.c b/sys/arm64/cavium/thunder_pcie_common.c
index e3e75f3f6f91..59c383fb93d4 100644
--- a/sys/arm64/cavium/thunder_pcie_common.c
+++ b/sys/arm64/cavium/thunder_pcie_common.c
@@ -42,54 +42,6 @@ __FBSDID("$FreeBSD$");
#include "thunder_pcie_common.h"
-
-int
-thunder_common_map_msi(device_t pcib, device_t child, int irq,
- uint64_t *addr, uint32_t *data)
-{
- int error;
-
- error = arm_map_msix(child, irq, addr, data);
- return (error);
-}
-
-int
-thunder_common_alloc_msix(device_t pcib, device_t child, int *irq)
-{
- int error;
-
- error = arm_alloc_msix(child, irq);
- return (error);
-}
-
-int
-thunder_common_release_msix(device_t pcib, device_t child, int irq)
-{
- int error;
-
- error = arm_release_msix(child, irq);
- return (error);
-}
-
-int
-thunder_common_alloc_msi(device_t pcib, device_t child, int count, int maxcount,
- int *irqs)
-{
- int error;
-
- error = arm_alloc_msi(child, count, irqs);
- return (error);
-}
-
-int
-thunder_common_release_msi(device_t pcib, device_t child, int count, int *irqs)
-{
- int error;
-
- error = arm_release_msi(child, count, irqs);
- return (error);
-}
-
uint32_t
range_addr_is_pci(struct pcie_range *ranges, uint64_t addr, uint64_t size)
{
diff --git a/sys/arm64/cavium/thunder_pcie_pem.c b/sys/arm64/cavium/thunder_pcie_pem.c
index f36057b93ff4..9ea3f7741cb4 100644
--- a/sys/arm64/cavium/thunder_pcie_pem.c
+++ b/sys/arm64/cavium/thunder_pcie_pem.c
@@ -165,11 +165,12 @@ static device_method_t thunder_pem_methods[] = {
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
- DEVMETHOD(pcib_map_msi, thunder_common_map_msi),
- DEVMETHOD(pcib_alloc_msix, thunder_common_alloc_msix),
- DEVMETHOD(pcib_release_msix, thunder_common_release_msix),
- DEVMETHOD(pcib_alloc_msi, thunder_common_alloc_msi),
- DEVMETHOD(pcib_release_msi, thunder_common_release_msi),
+
+ DEVMETHOD(pcib_map_msi, arm_map_msi),
+ DEVMETHOD(pcib_alloc_msix, arm_alloc_msix),
+ DEVMETHOD(pcib_release_msix, arm_release_msix),
+ DEVMETHOD(pcib_alloc_msi, arm_alloc_msi),
+ DEVMETHOD(pcib_release_msi, arm_release_msi),
DEVMETHOD_END
};