path: root/sys/sparc64/fhc/fhc_central.c
diff options
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_central.c
parent4d9d925bbcf782e9135b82a1a4a6d4a2694e0754 (diff)
- 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: svn path=/head/; revision=143826
Diffstat (limited to 'sys/sparc64/fhc/fhc_central.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sparc64/fhc/fhc_central.c b/sys/sparc64/fhc/fhc_central.c
index 1d698ea11bdc..a9487b459c0d 100644
--- a/sys/sparc64/fhc/fhc_central.c
+++ b/sys/sparc64/fhc/fhc_central.c
@@ -58,9 +58,10 @@ static device_method_t fhc_central_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),