summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/fhc
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-01-26 21:14:32 +0000
committermarius <marius@FreeBSD.org>2006-01-26 21:14:32 +0000
commit679181b556486a65077e78e700f00be0b4dce933 (patch)
treebf90ebae8a2609e4edc52b969ea260818a96fd02 /sys/sparc64/fhc
parent7ba1cf1d5431763a5b0bcdca837d494731aefd4b (diff)
downloadFreeBSD-src-679181b556486a65077e78e700f00be0b4dce933.zip
FreeBSD-src-679181b556486a65077e78e700f00be0b4dce933.tar.gz
- Register the generic implementations for the device shutdown, suspend
and resume methods so these events propagate through the device driver hierarchy. - In dma(4) enable the chaining of the DMA engine interrupt handler for the LANCE devices via a dma_setup_intr(). This was commented out before as I was unsure whether I'd use it but this is probably cleaner than fiddling with the DMA engine interrupt in the LANCE driver directly. - In ebus_setup_dinfo() free 'intrs' instead of 'reg' twice in case setting up a child fails due to routing one of its interrupts fails. [1] Found by: Coverity Prevent [1] MFC after: 3 days
Diffstat (limited to 'sys/sparc64/fhc')
-rw-r--r--sys/sparc64/fhc/fhc_central.c3
-rw-r--r--sys/sparc64/fhc/fhc_nexus.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/sparc64/fhc/fhc_central.c b/sys/sparc64/fhc/fhc_central.c
index 78a27e1..dfde113 100644
--- a/sys/sparc64/fhc/fhc_central.c
+++ b/sys/sparc64/fhc/fhc_central.c
@@ -52,6 +52,9 @@ static device_method_t fhc_central_methods[] = {
/* Device interface. */
DEVMETHOD(device_probe, fhc_central_probe),
DEVMETHOD(device_attach, fhc_central_attach),
+ DEVMETHOD(device_shutdown, bus_generic_shutdown),
+ DEVMETHOD(device_suspend, bus_generic_suspend),
+ DEVMETHOD(device_resume, bus_generic_resume),
/* Bus interface. */
DEVMETHOD(bus_print_child, fhc_print_child),
diff --git a/sys/sparc64/fhc/fhc_nexus.c b/sys/sparc64/fhc/fhc_nexus.c
index 705c5c3..0a04065 100644
--- a/sys/sparc64/fhc/fhc_nexus.c
+++ b/sys/sparc64/fhc/fhc_nexus.c
@@ -55,6 +55,9 @@ static device_method_t fhc_nexus_methods[] = {
/* Device interface. */
DEVMETHOD(device_probe, fhc_nexus_probe),
DEVMETHOD(device_attach, fhc_nexus_attach),
+ DEVMETHOD(device_shutdown, bus_generic_shutdown),
+ DEVMETHOD(device_suspend, bus_generic_suspend),
+ DEVMETHOD(device_resume, bus_generic_resume),
/* Bus interface. */
DEVMETHOD(bus_print_child, fhc_print_child),
OpenPOWER on IntegriCloud