diff options
author | andrew <andrew@FreeBSD.org> | 2016-04-20 14:12:40 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-04-20 14:12:40 +0000 |
commit | afb6bf1779d9255622c56b34a8b430dd7b3ea462 (patch) | |
tree | 22d10522a8689bb7d288d51fe021ab4e96dbedbb /sys/arm64 | |
parent | cb592fde3d0e10ef4e3ec9b362332aa7fcbe742e (diff) | |
download | FreeBSD-src-afb6bf1779d9255622c56b34a8b430dd7b3ea462.zip FreeBSD-src-afb6bf1779d9255622c56b34a8b430dd7b3ea462.tar.gz |
Group the ThunderX PCIe PEM newbus methods to help find them.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/cavium/thunder_pcie_pem.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arm64/cavium/thunder_pcie_pem.c b/sys/arm64/cavium/thunder_pcie_pem.c index b9c4c87..e9e9c1a 100644 --- a/sys/arm64/cavium/thunder_pcie_pem.c +++ b/sys/arm64/cavium/thunder_pcie_pem.c @@ -161,9 +161,8 @@ static device_method_t thunder_pem_methods[] = { DEVMETHOD(device_probe, thunder_pem_probe), DEVMETHOD(device_attach, thunder_pem_attach), DEVMETHOD(device_detach, thunder_pem_detach), - DEVMETHOD(pcib_maxslots, thunder_pem_maxslots), - DEVMETHOD(pcib_read_config, thunder_pem_read_config), - DEVMETHOD(pcib_write_config, thunder_pem_write_config), + + /* Bus interface */ DEVMETHOD(bus_read_ivar, thunder_pem_read_ivar), DEVMETHOD(bus_write_ivar, thunder_pem_write_ivar), DEVMETHOD(bus_alloc_resource, thunder_pem_alloc_resource), @@ -174,6 +173,10 @@ static device_method_t thunder_pem_methods[] = { DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), + /* pcib interface */ + DEVMETHOD(pcib_maxslots, thunder_pem_maxslots), + DEVMETHOD(pcib_read_config, thunder_pem_read_config), + DEVMETHOD(pcib_write_config, thunder_pem_write_config), DEVMETHOD(pcib_map_msi, thunder_pem_map_msi), DEVMETHOD(pcib_alloc_msix, thunder_pem_alloc_msix), DEVMETHOD(pcib_release_msix, thunder_pem_release_msix), |