Modify

Opened 12 years ago

Closed 12 years ago

Last modified 4 years ago

#196 closed defect (fixed)

Basic documentation of the switch driver's /proc interface

Reported by: Pawel Foremski <pjf@…> Owned by: nbd
Priority: lowest Milestone: Barrier Breaker 14.07
Component: kernel Version: 2.0
Keywords: switch Cc: pjf@…

Description

Very trivial, but hopefully will save somebody 15 minutes of reading the source code.

--- target/linux/package/switch/src/switch-core.c      2006-01-07 15:40:58.000000000 +0100
+++ target/linux/package/switch/src/switch-core.c   2006-01-09 18:57:02.000000000 +0100
@@ -18,6 +18,18 @@
  * 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>

Attachments (0)

Change History (3)

comment:1 Changed 12 years ago by nbd

  • Status changed from new to assigned

comment:2 Changed 12 years ago by nbd

  • Resolution set to fixed
  • Status changed from assigned to closed

Added in [3223]

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.