git: 0f84feb9fb46 - main - felix: Add support for PHY interrupts
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Nov 2021 06:41:56 UTC
The branch main has been updated by wma:
URL: https://cgit.FreeBSD.org/src/commit/?id=0f84feb9fb4678c1ed2c5b12125d60b13977dac5
commit 0f84feb9fb4678c1ed2c5b12125d60b13977dac5
Author: Kornel Duleba <mindal@semihalf.com>
AuthorDate: 2021-10-26 14:28:19 +0000
Commit: Wojciech Macek <wma@FreeBSD.org>
CommitDate: 2021-11-24 06:40:37 +0000
felix: Add support for PHY interrupts
- Replace miibus with newly created miibus_fdt.
- Use generic passthrough resource allocation devmethods.
Obtained from: Semihalf
Sponsored by: Alstom Group
---
sys/dev/etherswitch/felix/felix.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/sys/dev/etherswitch/felix/felix.c b/sys/dev/etherswitch/felix/felix.c
index 3ccc4b766877..88a490fc3dab 100644
--- a/sys/dev/etherswitch/felix/felix.c
+++ b/sys/dev/etherswitch/felix/felix.c
@@ -110,6 +110,13 @@ static device_method_t felix_methods[] = {
/* bus interface */
DEVMETHOD(bus_add_child, device_add_child_ordered),
+ DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
+ DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
+ DEVMETHOD(bus_release_resource, bus_generic_release_resource),
+ DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
+ DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
+ DEVMETHOD(bus_adjust_resource, bus_generic_adjust_resource),
+ DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource),
/* etherswitch interface */
DEVMETHOD(etherswitch_getinfo, felix_getinfo),
@@ -139,7 +146,7 @@ DEFINE_CLASS_0(felix, felix_driver, felix_methods,
DRIVER_MODULE_ORDERED(felix, pci, felix_driver, felix_devclass,
NULL, NULL, SI_ORDER_ANY);
-DRIVER_MODULE(miibus, felix, miibus_driver, miibus_devclass,
+DRIVER_MODULE(miibus, felix, miibus_fdt_driver, miibus_fdt_devclass,
NULL, NULL);
DRIVER_MODULE(etherswitch, felix, etherswitch_driver, etherswitch_devclass,
NULL, NULL);