[Bug 211462] AR8327 Etherswitch led control patch

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 30 16:53:06 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211462

            Bug ID: 211462
           Summary: AR8327 Etherswitch led control patch
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: dnelson_1901 at yahoo.com

Created attachment 173123
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=173123&action=edit
userland and kernel patch

The attached patch extends the etherswitch code to support controlling the LEDs
associated with switch ports.  An etherswitchcfg "led" subcommand is added, and
led(4) device nodes are created for each led as well.  There is backend code
for the AR8327 switch, and support other switches should be easy to add.

Example usage: 

etherswitchcfg port1 led 1 on port2 led 1 on port3 led 1 blink port4 led 1 off
port5 led 1 default
echo 0 > /dev/led/arswitch0port1led1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list