diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-09 14:19:09 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-04-09 14:19:09 +0000 |
commit | 3dc6fbf96d6a5b8916cd80092c05222172fe8d0b (patch) | |
tree | ffdec2659be05cb044abc270c55e4af7c6961f5f /target/linux/generic/files/include/linux | |
parent | d2f8216c54b1908771ef674094b7009da2ca6ef4 (diff) | |
download | upstream-3dc6fbf96d6a5b8916cd80092c05222172fe8d0b.tar.gz upstream-3dc6fbf96d6a5b8916cd80092c05222172fe8d0b.tar.bz2 upstream-3dc6fbf96d6a5b8916cd80092c05222172fe8d0b.zip |
[swconfig] allow loading port maps from OF
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36283 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/include/linux')
-rw-r--r-- | target/linux/generic/files/include/linux/switch.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/switch.h b/target/linux/generic/files/include/linux/switch.h index bd4fae4a17..b53431e0a1 100644 --- a/target/linux/generic/files/include/linux/switch.h +++ b/target/linux/generic/files/include/linux/switch.h @@ -98,6 +98,7 @@ struct switch_dev_ops { }; struct switch_dev { + struct device_node *of_node; const struct switch_dev_ops *ops; /* will be automatically filled */ char devname[IFNAMSIZ]; @@ -118,6 +119,7 @@ struct switch_dev { struct mutex sw_mutex; struct switch_port *portbuf; + struct switch_portmap *portmap; char buf[128]; @@ -131,6 +133,11 @@ struct switch_port { u32 flags; }; +struct switch_portmap { + u32 virt; + const char *s; +}; + struct switch_val { const struct switch_attr *attr; int port_vlan; |