X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=target%2Flinux%2Fgeneric%2Ffiles%2Finclude%2Flinux%2Fswitch.h;h=b53431e0a1b7af6e1ce2645d629ac03ee52ee8ad;hb=3dc6fbf96d6a5b8916cd80092c05222172fe8d0b;hp=bd4fae4a17ec40a306a9b2b87321d3ec6b36eb99;hpb=d2f8216c54b1908771ef674094b7009da2ca6ef4;p=openwrt-github%2F.git 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;