update spca5xx (fix broken link)
[openwrt.git] / openwrt / target / linux / package / switch / src / switch-core.c
index 31a0250..8216646 100644 (file)
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
  * $Id: $
+ *
+ * Basic doc of driver's /proc interface:
+ * /proc/switch/<interface>/
+ *   registers:              read-only
+ *   counters:               read-only
+ *   reset:                  write causes hardware reset
+ *   enable_vlan:            "0", "1"
+ *   port/<port-number>/
+ *     enabled:              "0", "1"
+ *     media:                "AUTO", "100FD", "100HD", "10FD", "10HD"
+ *   vlan/<port-number>/
+ *     ports: same syntax as for nvram's vlan*ports (eg. "1 2 3 4 5*")
  */
 
 #include <linux/config.h>
@@ -445,7 +457,7 @@ static int __init switch_init()
 
 static void __exit switch_exit()
 {
-       remove_proc_entry("vlan", NULL);
+       remove_proc_entry("switch", NULL);
 }
 
 MODULE_AUTHOR("Felix Fietkau <openwrt@nbd.name>");
This page took 0.02866 seconds and 4 git commands to generate.