aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc_nexus.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2005-03-19 00:50:28 +0000
committerMarius Strobl <marius@FreeBSD.org>2005-03-19 00:50:28 +0000
commit771997501fec5e297ef917537b0208dd1876ad82 (patch)
treea8263737ebda2578e97f8682019047e2064ec801 /sys/sparc64/fhc/fhc_nexus.c
parent4d9d925bbcf782e9135b82a1a4a6d4a2694e0754 (diff)
downloadsrc-771997501fec5e297ef917537b0208dd1876ad82.tar.gz
src-771997501fec5e297ef917537b0208dd1876ad82.zip
- Add a device interface method for bus_get_resource_list() and use
bus_generic_rl_release_resource() for the bus_release_resource() method instead of a local copy. - Correctly handle pass-through allocations in fhc_alloc_resource(). - In case the board model can't be determined just print "unknown model" so the physical slot number is reported in any case. - Add support for blinking the 'Cycling' LED of boards on a fhc(4) hanging of off the nexus (i.e. all boards except the clock board) via led(4). All boards have at least 3 controllable status LEDs, 'Power', 'Failure' and 'Cycling'. While the 'Cycling' LED is suitable for signaling from the OS the others are better off being controlled by the firmware. The device name for the 'Cycling' LED of each board is /dev/led/boardX where X is the physical slot number of the board. [1] Obtained from: OpenBSD [1] Tested by: joerg [1]
Notes
Notes: svn path=/head/; revision=143826
Diffstat (limited to 'sys/sparc64/fhc/fhc_nexus.c')
-rw-r--r--sys/sparc64/fhc/fhc_nexus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sparc64/fhc/fhc_nexus.c b/sys/sparc64/fhc/fhc_nexus.c
index 0ed97513278e..dd09d116a0d3 100644
--- a/sys/sparc64/fhc/fhc_nexus.c
+++ b/sys/sparc64/fhc/fhc_nexus.c
@@ -61,9 +61,10 @@ static device_method_t fhc_nexus_methods[] = {
DEVMETHOD(bus_setup_intr, fhc_setup_intr),
DEVMETHOD(bus_teardown_intr, fhc_teardown_intr),
DEVMETHOD(bus_alloc_resource, fhc_alloc_resource),
- DEVMETHOD(bus_release_resource, fhc_release_resource),
+ DEVMETHOD(bus_release_resource, bus_generic_rl_release_resource),
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
+ DEVMETHOD(bus_get_resource_list, fhc_get_resource_list),
/* ofw_bus interface */
DEVMETHOD(ofw_bus_get_compat, fhc_get_compat),