diff options
author | marius <marius@FreeBSD.org> | 2006-01-26 21:14:32 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2006-01-26 21:14:32 +0000 |
commit | 679181b556486a65077e78e700f00be0b4dce933 (patch) | |
tree | bf90ebae8a2609e4edc52b969ea260818a96fd02 /sys/sparc64/pci/psycho.c | |
parent | 7ba1cf1d5431763a5b0bcdca837d494731aefd4b (diff) | |
download | FreeBSD-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/pci/psycho.c')
-rw-r--r-- | sys/sparc64/pci/psycho.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/pci/psycho.c b/sys/sparc64/pci/psycho.c index 322a058..d79ed71 100644 --- a/sys/sparc64/pci/psycho.c +++ b/sys/sparc64/pci/psycho.c @@ -124,6 +124,9 @@ static device_method_t psycho_methods[] = { /* Device interface */ DEVMETHOD(device_probe, psycho_probe), DEVMETHOD(device_attach, psycho_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, bus_generic_print_child), |